LuaLS / LuaLS/lua-language-server

WorkspaceUpdate and diagnostic changes

未关闭
#2,948 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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
image

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

  1. After some time this notification disappears, does server support frequent configuration changes?
  2. Is there any sync between updating workspace.library and diagnostic checks?
  3. 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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

未指定文件或测试。首先,在发送不断变化的 Lua 注解的同时每两秒发送一次 workspace/didChangeConfiguration,以重现该问题;然后跟踪 workspace.library 的更新如何与 textDocument/publishDiagnostics 交互。完成的标准是确定同步或配置行为,并恢复 undefined-global 诊断,或记录受支持的行为。

由索引模型根据 Issue 内容生成。

评估

技术栈
lua
领域
devtools
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。