4teapo / zed-luau

A Zed extension adding Luau support.
MIT License
15 stars 0 forks source link

Can't rename symbols #2

Open someoneyouspite opened 2 months ago

someoneyouspite commented 2 months ago

I am unable to rename symbols at all with both F2 and editor: rename. I am able to:

I am using the Arch Linux distribution of Zed.

kohltastrophe commented 1 month ago

This happens on MacOS Sonoma 14.5 (23F79) as well. The language server and zed both have no relevant logs with any information to help with debugging.

4teapo commented 1 month ago

This is caused by an incompatibility between luau-lsp and Zed: Zed only allows symbol renaming if the language server has the LSP capability textDocument/prepareRename, which luau-lsp doesn't have. I will probably file a PR to Zed to fix this soon.