-
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/golang: show package attributes on hover
When hovering over a package name in a package declaration, show language version and GODEBUG values that differ from the toolchain default. Also, for consistency with other hover content, show the package declaration as the 'signature' of both a package name and an import. Finally, to help differentiate this information, introduce hlines in the hover output between logical sections. This is similar to what is done by other LSP servers such as tsserver. Fixes golang/go#68900 Change-Id: I5013bb9fb4086c71cc3565fd67993764cad69237 Reviewed-on: https://go-review.googlesource.com/c/tools/+/626276 Reviewed-by: Alan Donovan <adonovan@google.com> Auto-Submit: Robert Findley <rfindley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
- Loading branch information
Showing
20 changed files
with
480 additions
and
55 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
Oops, something went wrong.