Closed halkn closed 3 years ago
Hi, gbrlsnchs. Thank you this plugin.
This PR fix apply_edit when textDocument/codeAction.
textDocument/codeAction
textDocument/codeAction can return either Command[] or CodeAction[]. If it is a CodeAction, it can have either an edit, a command or both. Edits should be executed first.
See also: https://github.com/golang/tools/blob/master/gopls/doc/vim.md#neovim-imports https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_codeAction
Thank you very much for fixing this! :smiley:
Hi, gbrlsnchs. Thank you this plugin.
This PR fix apply_edit when
textDocument/codeAction
.textDocument/codeAction
can return either Command[] or CodeAction[]. If it is a CodeAction, it can have either an edit, a command or both. Edits should be executed first.See also: https://github.com/golang/tools/blob/master/gopls/doc/vim.md#neovim-imports https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_codeAction