Skip to content

Commit 56a4674

Browse files
docs: add sdk callback to README.md (#693)
1 parent 8be7064 commit 56a4674

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

README.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,15 @@ Right now the language server supports the following actions:
6161
- window/showMessage
6262

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

0 commit comments

Comments
 (0)