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