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 menu item for "Browse gopls feature documentation" #3498

Open
adonovan opened this issue Aug 20, 2024 · 0 comments
Open

Add menu item for "Browse gopls feature documentation" #3498

adonovan opened this issue Aug 20, 2024 · 0 comments
Assignees
Milestone

Comments

@adonovan
Copy link
Member

adonovan commented Aug 20, 2024

The gopls.doc.features code action (requires gopls at tip) opens the gopls manual in a browser. However, this code action appears only when the "command-." key is pressed to open a menu of miscellaneous code actions. It should be a more prominent command in the UI: directly available in the command palette and the toplevel context menu.

xtools$ gopls codeaction ./gopls/main.go 
command	"Browse gopls feature documentation" [gopls.doc.features]
command	"Browse documentation for package main" [source.doc]
xtools$ gopls codeaction -exec -kind=gopls ./gopls/main.go 
(opens browser)

Also: we observed that this code action didn't appear at all for one user (@hyangah). We should investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants