forked from golang/tools
-
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.
internal/lsp: more careful error handling for semantic tokens
The implementation now returns fewer errors to the client. The LSP specification restricts errors to 'exceptions', so gopls no longer returns errors if parsing or typechecking fails. Also, some internal routines that always returned nil errors no longer return errors at all. The logging for the errors that //line directives induce was too verbose, and has been turned off. (Many LSP requests will fail if there are //line directives.) Fixes golang/go#46176 Change-Id: I18b2cb164b55174f4edbc31e1376da7a8c505a1b Reviewed-on: https://go-review.googlesource.com/c/tools/+/319249 Run-TryBot: Peter Weinberger <[email protected]> gopls-CI: kokoro <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Rebecca Stambler <[email protected]> Trust: Peter Weinberger <[email protected]>
- Loading branch information
Showing
2 changed files
with
23 additions
and
26 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