-
Notifications
You must be signed in to change notification settings - Fork 48
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
Add support for textDocument/linkedEditingRange
#32
Comments
It depends if tsserver return events with edits to do such as
It will be easy to do IMO, I pretty sure feature isn't LSP complainant so I don't think any plugin will support that separately, it is more like sorting imports |
I think it was made to be complainant with this https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_linkedEditingRange lsp specification (it even has same names) Edit: export interface LinkedEditingRangesBody {
ranges: TextSpan[];
wordPattern?: string;
} so if we would have entered characters we would have information on how to change it in any other place |
Oh nice I don't know that request. I think it's doable but with custom handler or contribution to neovim core. Because nvim don't have multi cursor it need some gluecode involving probably some custom state and autocommand to generate edits in linked ranges |
Typescript 5.1 has new feature called linked cursors. I don't know if
nvim
(or any plugin) supports such thing but maybe in the future it will so we could implement handling of this method in this plugin, but I think this is low priorityThe text was updated successfully, but these errors were encountered: