LuaLS / LuaLS/lua-language-server
@see annotation surrounds unknown symbols with tilde "~" (strikethrough)
還沒有人認領這個 Issue。
- 主要語言
- Lua
- 星號
- 4.4k
- 分支
- 442
- PR 合併指標
- 30 天內沒有已合併 PR
描述
### How are you using the lua-language-server?
Nvim
### Which OS are you using?
MacOS
### What is the issue affecting?
Hover
### Expected Behaviour
code should be able to use `@see` annotations that don't necessarily map to a known symbol.
### Actual Behaviour
unknown symbols are rendered as "strikethrough": https://github.com/LuaLS/lua-language-server/blob/8c32d8f95f28f8bc064533031898abfb7dea58b0/script/core/hover/description.lua#L144
### Reproduction steps
1. add a `@see bogus` annotation
2. hover the annotation in any LSP client
### Additional Notes
_No response_
### Log File
_No response_
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 script/core/hover/description.lua 第 144 行附近開始,然後使用錯誤的 @see 註解重現此問題,並在 LSP 用戶端中將游標停留在其上。確認對無法解析的 @see 符號的處理,並驗證完成後的行為不再將未知符號呈現為帶刪除線的形式。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- lua
- 領域
- devtools
- Issue 類型
- 缺陷
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100