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
// Ensure we have a connection before we force the document sync.
constconnection=awaitthis.$start();
Then while it awaits this.start() which is probably already a resolved promise, the code is interrupted, and the stop function is called, so the state changes to stopping.
However in this case from our POV, it is not an error, because it was trying to send a notification while the server is stopping, and the state was stopping/stopped. I think maybe there should be a guard to check the state before raising the error so that the state is up to date.
The text was updated successfully, but these errors were encountered:
We are working on an LS for Odoo, and we have encountered an error that happens due to change in state.
Let me describe the scenario:
onDidChangeConfiguration
that based on some condition closes the client withawait client.stop(15000)
.sendNotification
with thedidChangeConfiguration
Notification to be sent to the server.vscode-languageserver-node/client/src/common/client.ts
Lines 984 to 987 in d810d51
$start
here:vscode-languageserver-node/client/src/common/client.ts
Lines 999 to 1000 in d810d51
this.start()
which is probably already a resolved promise, the code is interrupted, and the stop function is called, so the state changes tostopping
.vscode-languageserver-node/client/src/common/client.ts
Lines 1755 to 1765 in d810d51
this.activeConnection()
it returns undefined, which then throws an error.vscode-languageserver-node/client/src/common/client.ts
Lines 1232 to 1234 in d810d51
The text was updated successfully, but these errors were encountered: