Error handler unable to intercept and suppress error notification
#1 608 ouverte le 3 févr. 2025
Métriques du dépôt
- Stars
- (1 776 étoiles)
- Métriques de merge PR
- (Métriques PR en attente)
Description
I am developing a language server with an external dependency so I want to start/stop it myself. Unfortunately, if the dependency goes missing then the "Connection to server got closed. Server will not be restarted." message will appear if this.$state === ClientState.Stopping because I can't use the this._clientOptions.errorHandler to try to suppress it. Now when the dependency comes back the language server will restart even though the notification claimed that it "will not be restarted".
Essentially, I do not want the vscode-languageclient to popup any errors about the server being dead because I want to control everything myself but I can't avoid this particular notification (there may be others I have not encountered yet...?) because of this if statement.