@see annotation is not renamed on refactor
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Reproduce it first: write a Lua file with a ---@class definition and a ---@see annotation pointing at that class, then try renaming the class from both the definition and the ---@see reference. The issue does not name the source files, so you will need to locate the rename handling yourself. Done means renaming the class also updates the ---@see reference, and renaming from the ---@see reference no longer returns "The Element can't be renamed".
Written by the indexing model from the issue text.
Description
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Linux
What is the issue affecting?
Annotations
Expected Behaviour
I'm trying to rename a class through the ---@see annotation, but I am unable to. Also renaming through the original class doesn't update the ---@see class
Actual Behaviour
It just renames the original class, without updating any of the ---@see annotations. Also get a "The Element can't be renamed"
Reproduction steps
- Create a
---@seeannotation to a class - Try to rename the class
- The
---@seeannotation is not updated
Additional Notes
https://github.com/user-attachments/assets/df1ce125-e9ba-4480-8047-66f43400e305
As can be seen, can't rename the class through the ---@see annotation, and renaming the class doesn't update the ---@see annotation
Log File
no response
- Dominant language
- Lua
- Stars
- 4.4k
- Forks
- 452
- Avg merge
- 15d 6h
- Merged PRs (30d)
- 4
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from LuaLS/lua-language-server
-
Witch 2Open
Difficulty 1/5 Under an hour Newbie friendliness 91/100
LuaLS/lua-language-server#3482 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
LuaLS/lua-language-server#3481 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 87/100
LuaLS/lua-language-server#3480 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
LuaLS/lua-language-server#1776 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
LuaLS/lua-language-server#3478 · 1 comment ·
All issues in LuaLS/lua-language-server
Similar issues
-
guide
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
fitzforge/polestar#672 · 1 comment ·
Maintainers usually reply within 1 day
-
code health memtx mvcc
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
wifi: 40 MHz HE/VHT htmodes unusable — validator only accepts HE40±/VHT40±, which OpenWrt 24.10 ignores (silent 20 MHz)Possibly taken @rslater-cs claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
jangala-dev/devicecode-lua#344 · 1 assignee ·