[mod] samples

This commit is contained in:
Andy Bunce 2025-08-01 23:14:52 +01:00
parent 2f54b3370e
commit 6e88dd1509
22 changed files with 1048 additions and 142 deletions

View 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": {}
}
}
}
}

View 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"
}
}
}
}