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.
-
I want to override the behavior for
Initialize
feature on the server and was able to do it overriding thelsp_initialize
ofLanguageProtocol
like belowIn the protocol I could see that we could use
InitializeError
to 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