Highlights and inlay hints randomly get offset
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 30/100
Direção de pesquisa
The payload names no files or tests, so start by reproducing: open a long Java file in Zed with this extension, make edits, and check whether highlights and parameter inlay hints drift further down the file, as the screenshots show. The reporter says a save refreshes the positions, so compare the positions the language server sends after an edit with the ones Zed renders. Done means the offset stops appearing after edits without a save, with a reproduction and a note on whether the cause is in the extension, Zed, or JDTLS.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
I don't know if this is a bug with the extension, Zed or JDTLS, but it has been happening for months so I figured I might as well report it and hopefully one of you guys here can find where the actual issue is.
Like the issue title says, there is a disconnect between the positions where highlights and inlay hints should be in the code and where Zed displays them.
Here is a screenshot of the parameter name inlay hints to show what I mean:
And what it should look like:
And here for highlights (I have the cursor inside lastName here):
I haven't figured out what it is that triggers this; it just happens every now and then when I edit the code in a file. It also does not happen across the entire file; it starts at some point and then gradually gets worse the further down the file I go from there. If I make any change to the file and save it, the LSP will refresh the information and everything ends up in the right spot again (i.e. the offset issue disappears).
This is quite annoying, although not vital since it disappears after doing an edit and saving.
Zed: v1.6.3+stable.306.601ecb3ee5c16940191818ee7f244837abf6983c (Zed)
OS: Windows 10.0.26100
Memory: 31.7 GiB
Architecture: x86_64
- Linguagem predominante
- Rust
- Estrelas
- 225
- Forks
- 47
- Merge médio
- 3h
- PRs com merge (30d)
- 5
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de zed-extensions/java
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
zed-extensions/java#325 · 1 comentário ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
zed-extensions/java#133 · 1 comentário ·
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 45/100
zed-extensions/java#324 · 1 comentário ·
-
language-server
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
zed-extensions/java#246 · 4 comentários ·
-
language-server
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 18/100
zed-extensions/java#233 · 16 comentários ·
Todas as issues de zed-extensions/java
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
nervosnetwork/fiber#1723 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 69/100
Mantenedores costumam responder em até 1 dia
-
needs triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 71/100
pbakaus/impeccable#1314 ·
Mantenedores costumam responder em até 1 dia
-
marmite skill: `curl ... | sh` is the first install method, bypassing review and integrity checksAberta
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 78/100
rochacbruno/marmite#565 ·