x/tools/gopls: "Browse gopls feature documentation" has higher priority than "Add import" #72742
Labels
Documentation
Issues describing a change to documentation.
gopls
Issues related to the Go language server, gopls.
ToolProposal
Issues describing a requested change to a Go tool or command-line program.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
gopls version
go env
What did you do?
Open
main.go
below. Notefmt
package is not imported.Move the cursor to the top of
fmt
keyword.Open the code actions panel to use
Add import
functionality ofgopls
.What did you see happen?
Browse gopls feature documentation
has higher priority thanAdd import
.What did you expect to see?
I believe, in older versions,
Add import
had higher priority. (Maybe related or not related: golang/vscode-go #3498)So
At least I want to change the order to make
Add import
the top action. Unintentionally selectingBrowse gopls feature documentation
opens a new window, which is very annoying (in terms of context switching etc.)If possible, I want even to disable
Browse gopls feature documentation
completely. I never use it.Editor and settings
I'm using Vim and
coc.nvim
plugin and set up the vanillagopls
in:CocConfig
as suggested by thecoc.nvim
team:(I don't use plugins like
vim-go
orcoc-go
.)Logs
Using the debug mode of
coc.nvim
(this and this), I captured the output ofgopls
when I opened the code actions panel (textDocument/codeAction
).We can see
Browse gopls feature documentation
is returned as the first element of the array.Request
Response
The text was updated successfully, but these errors were encountered: