Open alxlg opened 1 year ago
Hi, I'm trying to make this LSP working with KDE's editor Kate.
I think the configuration for Kate should be the following (with example token and port):
{ "servers": { "markdown": { "command": ["logseqlsp", "-t=1234567890", "-p=12315"], "root": "", "url": "https://github.com/WhiskeyJack96/logseqlsp/", "highlightingModeRegex": "^Markdown$" } } }
When I open a Markdown file, Kate connects to logseqlsp and it connects to Logseq HTTP server, but in Kate's console I get this error and no LSP functionality is enabled:
sonrpc2 handler: notification "textDocument/didOpen" handling error: jsonrpc2: code -32601 message: method not supported: textDocument/didOpen
I searched it with Google what this textDocument/didOpen method is and I found the following spec:
textDocument/didOpen
Client support for textDocument/didOpen, textDocument/didChange and textDocument/didClose notifications is mandatory in the protocol and clients can not opt out supporting them.
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/
Is it possible that logseqlsp still doesn't support this method?
It doesn't! that said I'll try and get some form of support up so that kate works! planned for next release!
@WhiskeyJack96 awesome, thank you!
Hi, I'm trying to make this LSP working with KDE's editor Kate.
I think the configuration for Kate should be the following (with example token and port):
When I open a Markdown file, Kate connects to logseqlsp and it connects to Logseq HTTP server, but in Kate's console I get this error and no LSP functionality is enabled:
sonrpc2 handler: notification "textDocument/didOpen" handling error: jsonrpc2: code -32601 message: method not supported: textDocument/didOpen
I searched it with Google what this
textDocument/didOpen
method is and I found the following spec:https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/
Is it possible that logseqlsp still doesn't support this method?