Skip to content

Commit

Permalink
docs: add sdk callback to README.md (#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiandoetsch authored Oct 9, 2024
1 parent 8be7064 commit 56a4674
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,15 @@ Right now the language server supports the following actions:
- window/showMessage

### Custom additions to Language Server Protocol (server -> client)
- Diagnostics Overview (tabbed tree view)
- method: `$/snyk.diagnosticsOverview`
- payload:
- SDKs callback to retrieve configured SDKs from the client
- method: `workspace/snyk.sdks`
- payload: WorkspaceFolder
- response:
```json5
{
"product": "oss", // or "code" or "iac"
"html": "<html>...</html>", // the html to display the overview tabs/tree
}
[{
"type": "java", // or python or go
"path": "/path/to/sdk" // JAVA_HOME for java, GOROOT for Go, Python executable for Python
}]
```
- Folder Config Notification
- method: `$/snyk.folderConfigs`
Expand Down

0 comments on commit 56a4674

Please sign in to comment.