Skip to content
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

Rename LSP action #1811

Merged
merged 4 commits into from
Feb 9, 2024
Merged

Rename LSP action #1811

merged 4 commits into from
Feb 9, 2024

Conversation

jneem
Copy link
Member

@jneem jneem commented Feb 8, 2024

Adds a "rename" action for the LSP. The current behavior is that it renames exactly the same locations that are returned by "references"; I think this is probably the most predictable behavior, but we can tweak it if it turns out not to be.

Fixes #1776

@jneem jneem requested review from yannham and vkleen February 8, 2024 18:14
@github-actions github-actions bot temporarily deployed to pull request February 8, 2024 18:18 Inactive
@github-actions github-actions bot temporarily deployed to pull request February 8, 2024 18:58 Inactive
Copy link
Member

@yannham yannham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! It's almost scary that it's smart enough to rename siblings in a merge but it's probably the right semantics (otherwise you wouldn't use rename but just edit the field if you don't want to touch others).

@jneem jneem enabled auto-merge February 9, 2024 16:08
@github-actions github-actions bot temporarily deployed to pull request February 9, 2024 16:08 Inactive
@github-actions github-actions bot temporarily deployed to pull request February 9, 2024 16:45 Inactive
@jneem jneem added this pull request to the merge queue Feb 9, 2024
Merged via the queue into master with commit 839a118 Feb 9, 2024
5 checks passed
@jneem jneem deleted the rename branch February 9, 2024 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[LSP] Support symbol rename
2 participants