Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix renaming for Zed #4203

Merged
merged 1 commit into from
Feb 3, 2025
Merged

Conversation

GearsDatapacks
Copy link
Member

Fixes #4201
This PR fixes LS renaming for Zed by using the Range response for the prepareRename request, as opposed to the DefaultBehaviour response, which Zed does not seem to support. I don't think there's any way to unit test this, but I have tested an confirmed that this now works in Zed. It could be worth testing in other editors (Neovim, Helix) as I only have the Language Server set up for Zed and VSCode.

Copy link
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

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

Thank you!!!

@lpil lpil merged commit 86addee into gleam-lang:main Feb 3, 2025
12 checks passed
@GearsDatapacks GearsDatapacks deleted the fix-prepare-rename branch February 3, 2025 20:53
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LS rename doesn't work in Zed
2 participants