gbrlsnchs / telescope-lsp-handlers.nvim

MIT License
87 stars 9 forks source link

Fix apply edit when codeAction is selected. #2

Closed halkn closed 3 years ago

halkn commented 3 years ago

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

gbrlsnchs commented 3 years ago

Thank you very much for fixing this! :smiley: