-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement renaming symbols via LSP and tsserver #1519
Comments
This would be super handy to have. Any plans still @w0rp ? I would prefer to just use ale than have another lang server plugin that supports this. |
The plan is to just eventually implement it somehow. |
LanguageClient-neovim implements this feature. It's a subject to some 'code sharing'. |
It sure does. It's not ALE. I'll implement this eventually, or someone else can try. |
May we get the feature by low price by passing LSP connection to LanguageClient-neovim functions? Raw ugly but possible working idea. |
Sure, I already implemented support so that other tools can give diagnostics to ALE, for ALE to render. See |
I have an old commit that adds support for the lsp and tsserver renaming protocols and (most likely not working) support for performing the actual renaming in vim. I can open a work in progress PR (I most likely won't have a ton of time to work on this for a while...) or someone is welcome to use my commit as a basis to finish it off. |
Thank you for sharing that. Someone might pick it up and finish the job. 👍 |
I tried getting this to work a while back but it doesn't seem to rename anything: This is such a critical IDE feature, it would be nice to get this in |
I made rename work for TypeScript by continuing off of @mwilliammyers's work (thanks!). It's on my fork on the feature/renaming-symbols branch. Here's the link to the main commit. I also merged Since I changed the message structure in Also, the way the buffer contents get replaced seems hackish as hell - I'd appreciate if somebody could suggest a better way to do it :) |
|
LSP and tsserver support operations for renaming things, and ALE should support these operations.
The text was updated successfully, but these errors were encountered: