Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 778 Bytes

server.md

File metadata and controls

34 lines (22 loc) · 778 Bytes

$ cat ~/.sbt/1.0/server/0845deda85cb41abdb9f/token.json

initialize

{ "jsonrpc": "2.0", "id": 1, "method": "initialize", "params": { "initializationOptions": { "token": "************" } } }

sbt/exec

{ "jsonrpc": "2.0", "id": 1, "method": "sbt/exec", "params": { "commandLine": "compile" } }

sbt/setting

{ "jsonrpc": "2.0", "id": 1, "method": "sbt/setting", "params": { "setting": "root/name" } }

Here's an example of a bad query:

{ "jsonrpc": "2.0", "id": 1, "method": "sbt/setting", "params": { "setting": "name" } }
Content-Length: 104
Content-Type: application/vscode-jsonrpc; charset=utf-8

{"jsonrpc":"2.0","id":"1","error":{"code":-32602,"message":"Not a valid project ID: name\nname\n    ^"}}