-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add middleware to intercept diagnostics from the server
Clients may want to inspect diagnostics received from the server before letting VS Code handle and display them. It is not possible to use onNotification because the existing handler will be replaced. Thus, we need to introduce a new middleware for the language client to route the server's textDocument/publishDiagnostics notification to. This will allow the client can do what it needs to do before then forwarding it off to VS Code. Signed-off-by: Remy Suen <remy.suen@gmail.com>
- Loading branch information
Showing
3 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters