You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@fbricon I think linkedediting range should be used when user do a rename to provide inline rename.
When user process a rename, we should try to consume linked editing range at first (if language server have the proper capability) and if cannot we consume prepare rename.
vscode activate linked editing range on each cursor changes.
We could do that, but it means that we need to implement a debounce mechanism to avoid consuming linked editing range too many and have horrible performance.
For me linked editing range is the same thing as inline rename.
@SCWells72 it seems typescript language server supports linked editing range (this feature is the same with HTML IJ support when you update a start tag element, it update the end tag element). For typescript case I suppose it provides the capability to rename variable in inline mode.
@angelozerr I'll be happy to take a look at this one at some point, but (for me, at least) I'd put it behind JS debugger integration and a few other things I have on my local list.
Activity
feat: Support for textDocument/linkedEditingRange
feat: Support for textDocument/linkedEditingRange
feat: Support for textDocument/linkedEditingRange
feat: Support for textDocument/linkedEditingRange
angelozerr commentedon Apr 24, 2024
@fbricon I think linkedediting range should be used when user do a rename to provide inline rename.
When user process a rename, we should try to consume linked editing range at first (if language server have the proper capability) and if cannot we consume prepare rename.
What do you think about this idea?
fbricon commentedon Apr 24, 2024
those 2 are triggered differently. So it's not a question of trying one before the other. We should not try to add a fallback mechanism IMO
angelozerr commentedon Apr 24, 2024
vscode activate linked editing range on each cursor changes.
We could do that, but it means that we need to implement a debounce mechanism to avoid consuming linked editing range too many and have horrible performance.
For me linked editing range is the same thing as inline rename.
angelozerr commentedon Dec 11, 2024
@SCWells72 it seems typescript language server supports linked editing range (this feature is the same with HTML IJ support when you update a start tag element, it update the end tag element). For typescript case I suppose it provides the capability to rename variable in inline mode.
I had started to implement the feature with my old branch https://github.com/angelozerr/lsp4ij/tree/textDocument_linkedEditingRange
@SCWells72 are you interested to implement from scratch this feature?
SCWells72 commentedon Dec 11, 2024
@angelozerr I'll be happy to take a look at this one at some point, but (for me, at least) I'd put it behind JS debugger integration and a few other things I have on my local list.