3 ms·
... Including refactoring?
by IlliOnato 5y ago
... Including refactoring?
- ByteJockey 5y agoBy refactor do you mean rename across the project, or extracting a chunk of code out into a function/method? Rename across the project is introduced by lsps. As for renaming, I don't use it particularly often, but it's documented in microsoft's code action documentation[0] to include: Extract method, Extract function, Extract variable, Extract interface from class (some of those might be language/server dependent). The neovim framework[1] at least does provide a wrapper for the code action. VSCode gets most of its capabilities outside text editing from language servers. So the rule of thumb is that if VSCode has it, vim/neovim/emacs usually have it these days. [0] https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_codeAction https://microsoft.github.io/language-server-protocol/specifi... [1]https://neovim.io/doc/user/lsp.html https://neovim.io/doc/user/lsp.html