You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When csharp-language-server is used with vscode-languageclient then client crashes with error Unhandled method client/registerCapability. If I read code right culprit is in following two lines
Those do send client/registerCapability to client immediately before emitting initialize result.
According to Lsp initialize request
In addition the server is not allowed to send any requests or notifications to the client until it has responded with an InitializeResult, with the exception that during the initialize request the server is allowed to send the notifications window/showMessage, window/logMessage and telemetry/event as well as the window/showMessageRequest request to the client
When csharp-language-server is used with vscode-languageclient then client crashes with error
Unhandled method client/registerCapability
. If I read code right culprit is in following two linescsharp-language-server/src/CSharpLanguageServer/Server.fs
Lines 583 to 584 in 520ef35
client/registerCapability
to client immediately before emitting initialize result.According to Lsp
initialize
requesthttps://microsoft.github.io/language-server-protocol/specification#initialize
In order to register dynamic capabilities
initialized
notification should be used instead:https://microsoft.github.io/language-server-protocol/specification#initialized
And the vscode-languageclient code that starts listening on client/registerCapability only after successful initialization (first and last lines are relevant) https://github.com/microsoft/vscode-languageserver-node/blob/d9eeaf626fd9362eec69fe63322d15760f6794d1/client/src/common/client.ts#L3402-L3430
The text was updated successfully, but these errors were encountered: