Updating the document uri for the lsp server #1931
-
Is there a way to specify the document uri for the lsp server to look for?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @Lemour-sudo, is there some option in your language client to insert a middleware? For example, the vscode-languageclient library allows to insert middleware for all requests/responses. In there you could rewrite the |
Beta Was this translation helpful? Give feedback.
Hey @Lemour-sudo,
is there some option in your language client to insert a middleware? For example, the vscode-languageclient library allows to insert middleware for all requests/responses. In there you could rewrite the
uri
. Ideally, the language server itself should adhere to the LSP (which uses actual URIs with schemas), whereas the client implementation (i.e. middleware) should take care of any deviations from the protocol. That way, you get the most amount of portability out of your language server.