Hacker News new | ask | show | jobs
by manfredve 34 days ago
Have you found a good replacement for that in other editors?

I hate it when I try to refactor or rename something in VSCode, which can be done deterministically, but it tries to use AI for it, which can mess things up.

1 comments

It's not that easy. LSP does not have a standard way to expose things not specified. So, at best you need an LSP server exposing more + the LSP client to also understand it [2].

The best that comes to mind is nvim-jdtls [0].

Maybe at some point the LSP spec could be extended with more refactoring, or maybe there could be a open rewrite LSP server [1].

I wouldn't expect intellij to release a LSP server with all the refactoring tools, though.

[0]: https://codeberg.org/mfussenegger/nvim-jdtls

[1]: https://docs.openrewrite.org/

[2]: https://microsoft.github.io/language-server-protocol/specifi...