Replies: 1 comment
-
|
Currently Pygls' return signature for Either way I think you could return the from lsprotocol import types
class CustomeProtocol(LanguageProtocol):
def lsp_initialize(config):
...
return types.InitializeError(retry=False)Or maybe you could let the server start anyway, store the error, and report it with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to override the behavior for
Initializefeature on the server and was able to do it overriding thelsp_initializeofLanguageProtocollike belowIn the protocol I could see that we could use
InitializeErrorto update client on server initialization failure. But I can't find a way to return this error along with the results. Is there a way to do it?Beta Was this translation helpful? Give feedback.
All reactions