[mod] samples
This commit is contained in:
parent
2f54b3370e
commit
6e88dd1509
22 changed files with 1048 additions and 142 deletions
14
samples/hover/client.json
Normal file
14
samples/hover/client.json
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"jsonrpc": "2.0",
|
||||
"id": 2,
|
||||
"method": "textDocument/hover",
|
||||
"params": {
|
||||
"textDocument": {
|
||||
"uri": "file:///session1.json"
|
||||
},
|
||||
"position": {
|
||||
"line": 2,
|
||||
"character": 22
|
||||
}
|
||||
}
|
||||
}
|
||||
68
samples/initialize/client.json
Normal file
68
samples/initialize/client.json
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
{
|
||||
"jsonrpc": "2.0",
|
||||
"id": 1,
|
||||
"method": "initialize",
|
||||
"params": {
|
||||
"processId": null,
|
||||
"clientInfo": {
|
||||
"name": "@codemirror/lsp-client"
|
||||
},
|
||||
"rootUri": null,
|
||||
"capabilities": {
|
||||
"general": {
|
||||
"markdown": {
|
||||
"parser": "marked"
|
||||
}
|
||||
},
|
||||
"textDocument": {
|
||||
"completion": {
|
||||
"completionItem": {
|
||||
"snippetSupport": true,
|
||||
"documentationFormat": [
|
||||
"plaintext",
|
||||
"markdown"
|
||||
],
|
||||
"insertReplaceSupport": false
|
||||
},
|
||||
"completionList": {
|
||||
"itemDefaults": [
|
||||
"commitCharacters",
|
||||
"editRange",
|
||||
"insertTextFormat"
|
||||
]
|
||||
},
|
||||
"completionItemKind": {
|
||||
"valueSet": []
|
||||
},
|
||||
"contextSupport": true
|
||||
},
|
||||
"hover": {
|
||||
"contentFormat": [
|
||||
"markdown",
|
||||
"plaintext"
|
||||
]
|
||||
},
|
||||
"formatting": {},
|
||||
"rename": {},
|
||||
"signatureHelp": {
|
||||
"contextSupport": true,
|
||||
"signatureInformation": {
|
||||
"documentationFormat": [
|
||||
"markdown",
|
||||
"plaintext"
|
||||
],
|
||||
"parameterInformation": {
|
||||
"labelOffsetSupport": true
|
||||
},
|
||||
"activeParameterSupport": true
|
||||
}
|
||||
},
|
||||
"definition": {},
|
||||
"declaration": {},
|
||||
"implementation": {},
|
||||
"typeDefinition": {},
|
||||
"references": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
32
samples/initialize/server.json
Normal file
32
samples/initialize/server.json
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
"jsonrpc": "2.0",
|
||||
"id": 1,
|
||||
"result": {
|
||||
"capabilities": {
|
||||
"textDocumentSync": 2,
|
||||
"completionProvider": {
|
||||
"resolveProvider": false,
|
||||
"triggerCharacters": [
|
||||
"\"",
|
||||
":"
|
||||
],
|
||||
"documentSelector": [
|
||||
{
|
||||
"language": "xquery"
|
||||
}
|
||||
]
|
||||
},
|
||||
"hoverProvider": true,
|
||||
"documentSymbolProvider": true,
|
||||
"documentRangeFormattingProvider": false,
|
||||
"colorProvider": {},
|
||||
"foldingRangeProvider": true,
|
||||
"selectionRangeProvider": true,
|
||||
"documentLinkProvider": {},
|
||||
"serverInfo": {
|
||||
"name": "My Custom Language Server",
|
||||
"version": "1.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
2
samples/test.xq
Normal file
2
samples/test.xq
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"hover/client.json"
|
||||
=>json:doc({"format":"w3"})
|
||||
Loading…
Add table
Add a link
Reference in a new issue