Skip to content

Support for textDocument/linkedEditingRange #23

Closed

Activity

  1. added
    enhancement
    on Apr 12, 2023
  2. moved this to 🏗 In progress in IDE Cloudaptorson Apr 14, 2024
  3. self-assigned this
    on Apr 14, 2024
  4. added 4 commits that reference this issue on Apr 15, 2024
    1dd31bd
    ef546f3
    7adf031
    4a559e0
  5. angelozerr commented on Apr 24, 2024

    @angelozerr
    ContributorAuthor

    @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?

  6. fbricon commented on Apr 24, 2024

    @fbricon
    Contributor

    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

  7. angelozerr commented on Apr 24, 2024

    @angelozerr
    ContributorAuthor

    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.

  8. moved this from 🏗 In progress to No status in IDE Cloudaptorson Apr 24, 2024
  9. angelozerr commented on Dec 11, 2024

    @angelozerr
    ContributorAuthor

    @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?

  10. SCWells72 commented on Dec 11, 2024

    @SCWells72
    Contributor

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions