go/gopls/doc
Francesco Renzi 6e9046bfcd gopls/doc: fix imports function for Neovim LSP
The documented Lua function for supporting imports with Neovim native
LSP support does work for imports, but also runs any other code action
available in the current range. For example, if the function was to run
with the user's cursor on an empty struct being initialized, the code
action for filling that struct would also run.
This change restricts the desired actions to only be organizeImports.

Fixes golang/go#47181

Change-Id: Ie4eb5961cb4405091477b79175acc7052ff16d4c
Reviewed-on: https://go-review.googlesource.com/c/tools/+/334749
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Trust: Hyang-Ah Hana Kim <hyangah@gmail.com>
Trust: Robert Findley <rfindley@google.com>
2021-07-15 13:35:41 +00:00
..
design gopls/doc: clean up and slightly reorganize documentation 2021-01-14 06:55:38 +00:00
advanced.md gopls/doc: include instructions for compiling generic code 2021-06-23 15:16:55 +00:00
analyzers.md go/analysis/passes/fieldalignment: clarify reported diagnostics in docs 2021-04-27 20:55:22 +00:00
command-line.md gopls/doc: clean up and slightly reorganize documentation 2021-01-14 06:55:38 +00:00
commands.md internal/lsp/command: minor clean-up of StartDebugging description 2021-06-11 16:06:07 +00:00
contributing.md tools/gopls: small fixes to contributing.md 2021-06-25 15:05:05 +00:00
daemon.md gopls/doc: clarify how to set remote.listen.timeout 2021-03-08 14:22:49 +00:00
emacs.md Update emacs.md - add .dir-locals.el example 2021-03-19 04:40:15 +00:00
features.md gopls/doc: clean up and slightly reorganize documentation 2021-01-14 06:55:38 +00:00
generate.go internal/lsp/command: add missing doc and support for result parameters 2021-06-11 15:30:39 +00:00
generate_test.go gopls/doc: generate JSON too, store as composite literal 2020-12-03 20:21:02 +00:00
semantictokens.md gopls/doc: Document how gopls generates semantic tokens. 2021-07-08 16:22:39 +00:00
settings.md internal/lsp/source: move diagnosticsDelay out of experimental 2021-07-08 19:56:33 +00:00
subl.md gopls/doc: add vetted examples for Sublime Text 2021-07-13 20:15:39 +00:00
troubleshooting.md gopls: merge README and user.md 2021-01-21 18:28:06 +00:00
vim.md gopls/doc: fix imports function for Neovim LSP 2021-07-15 13:35:41 +00:00
workspace.md gopls/doc: fix broken link 2021-04-26 16:33:22 +00:00