Skip to content

Handle symbol rename requests in the language server #47

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

Merged
merged 4 commits into from
Feb 13, 2021
Merged

Conversation

dfreeman
Copy link
Member

@dfreeman dfreeman commented Feb 9, 2021

This PR enables the language server to handle requests to rename symbols, including component names, @arg and object field names, and block parameters.

As part of this, I also discovered some inconsistencies in how we handle publishing diagnostics, since renames can impact correctness in files that didn't themselves change, so I fixed that as well as part of this PR.

As mentioned in #46, I brought over (the equivalent of) the tsserver-plugin tests for symbol renaming into the language server test suite.

@dfreeman dfreeman added the enhancement New feature or request label Feb 9, 2021
@dfreeman dfreeman requested a review from jamescdavis February 9, 2021 22:57
@dfreeman dfreeman merged commit 6d63b0b into master Feb 13, 2021
@dfreeman dfreeman deleted the renames branch February 13, 2021 14:04
@jamescdavis
Copy link
Member

I missed this PR, but it looks good. When working in vim, I rarely have more than one document open so hadn't encountered those issues. 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants