LuaLS / LuaLS/lua-language-server
WorkspaceUpdate and diagnostic changes
還沒有人認領這個 Issue。
- 主要語言
- Lua
- 星號
- 4.4k
- 分支
- 442
- PR 合併指標
- 30 天內沒有已合併 PR
描述
How are you using the lua-language-server?
Other
Which OS are you using?
Linux
What is the issue affecting?
Diagnostics/Syntax Checking
Expected Behaviour
Lua language server sends textDocument/publishDiagnostics with error but at the same time gives description
This error happens only when sending workspace/didChangeConfiguration every two seconds with new annotations for lua, working without frequent configuration changes works ok
- After some time this notification disappears, does server support frequent configuration changes?
- Is there any sync between updating workspace.library and diagnostic checks?
- Are there any ways how debug where the problem comes from?
Actual Behaviour
No error with undefined global appear
Reproduction steps
Actually, we wrote our own extension for VScode and use language server binary to run in separate subprocess
Additional Notes
No response
Log File
No response
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
未指定檔案或測試。首先,在傳送不斷變化的 Lua 註解時每兩秒傳送一次 workspace/didChangeConfiguration,以重現此問題;然後追蹤 workspace.library 的更新如何與 textDocument/publishDiagnostics 互動。完成的標準是確定同步或設定行為,並恢復 undefined-global 診斷,或記錄受支援的行為。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- lua
- 領域
- devtools
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100