Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add middleware to intercept textDocument/publishDiagnostics #322

Merged
merged 1 commit into from
Apr 6, 2018

Commits on Apr 5, 2018

  1. 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>
    rcjsuen committed Apr 5, 2018
    Configuration menu
    Copy the full SHA
    4c78f62 View commit details
    Browse the repository at this point in the history