Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

@see annotation is not renamed on refactor

Aberta
#3,470 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
35/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
lua
Domínio
tooling

Direção de pesquisa

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".

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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
  1. Create a ---@see annotation to a class
  2. Try to rename the class
  3. The ---@see annotation 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

Linguagem predominante
Lua
Estrelas
4.4k
Forks
446
Merge médio
8d 9h
PRs com merge (30d)
1

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de LuaLS/lua-language-server

Todas as issues de LuaLS/lua-language-server

Issues semelhantes

Mais issues de Lua

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.