Highlights and inlay hints randomly get offset
還沒有人認領這個 Issue。
評估
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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
- 主要語言
- Rust
- 星號
- 225
- 分支
- 47
- 平均合併
- 3 小時
- 30 天內合併 PR
- 5
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
zed-extensions/java 的其他 Issue
-
難度 1/5 1 小時以內 新手友好度 88/100
zed-extensions/java#325 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 62/100
zed-extensions/java#133 · 1 則留言 ·
-
Debugger cannot display source for JDK/dependency classes (jdt:// frame URIs, sourceReference: 0)未關閉
難度 4/5 3-5 天 新手友好度 54/100
zed-extensions/java#326 · 1 則留言 ·
-
難度 3/5 1-2 天 新手友好度 45/100
zed-extensions/java#324 · 1 則留言 ·
-
language-server
難度 4/5 3-5 天 新手友好度 25/100
zed-extensions/java#246 · 4 則留言 ·
查看 zed-extensions/java 的全部 Issue
相似的 Issue
-
rust_analyzer flycheck: no CLI way to enable clippy from `check.overrideCommand`可能已有人在做 @TrapsterDK 今天認領。 未關閉needs-triage
難度 2/5 1-3 小時 新手友好度 77/100
bazelbuild/rules_rust#4392 ·
維護者通常 2 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 73/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
🐞 bug 🧩 bevy_gantz_egui
難度 2/5 1-3 小時 新手友好度 82/100
nannou-org/gantz#500 ·
維護者通常 1 天內回覆
-
enhancement
難度 2/5 1-3 小時 新手友好度 68/100
metasequoiaime/msime#10989 ·
維護者通常 1 天內回覆