forked from standardrb/standard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove incorrect textDocument/diagnostic request handler
The parameters for this request only include a textDocument, which is a TextDocumentIdentifier, an identifier? and a previousResultId?. The TextDocumentIdentifer only has a uri property, which is of type DocumentUri. According to the LSP spec: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_diagnostic this request does not include the contents of the file (which is what the handler was expecting). I have simply made the handling of this request a no-op, since diagnostics are already sent to the client in textDocument/didChange. Note: This also fixes formatting problems related to Neovim 0.10 described in standardrb#575
- Loading branch information
Showing
2 changed files
with
5 additions
and
34 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