-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gopls/internal/server: avoid VS Code lightbulb
VS Code has a complex and undocumented logic for presenting Code Actions of various kinds in the user interface. This CL documents the empirically observed behavior at CodeActionKind. Previously, users found that "nearly always available" code actions such as "Inline call to f" were a distracting source of lightbulb icons in the UI. This change suppresses non-diagnostic-associated Code Actions (such as "Inline call") when the CodeAction request does not have TriggerKind=Invoked. (Invoked means the CodeAction request was caused by opening a menu, as opposed to mere cursor motion.) Also, rename BundleQuickFixes et al using "lazy" instead of "quick" as QuickFix has a different special meaning and lazy fixes do not necesarily have kind "quickfix" (though all currently do). Fixes golang/go#65167 Update golang/go#40438 Change-Id: I83563e1bb476e56a8404443d7e48b7c240bfa2e0 Reviewed-on: https://go-review.googlesource.com/c/tools/+/587555 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Robert Findley <[email protected]>
- Loading branch information
Showing
6 changed files
with
109 additions
and
33 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
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