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
{{ message }}
Repository navigation
LanguageClient.sendNotification fails due to change in state due to stopping client. #1616
// 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.
Activity
dbaeumer commentedon Feb 20, 2025
Thanks for the analysis. Needs some thinking...