LuaLS / LuaLS/lua-language-server
editor.codeActionsOnSave with extension slows down file saving in VS Code
还没有人认领这个 Issue。
- 主要语言
- Lua
- 星标
- 4.4k
- 派生
- 442
- PR 合并指标
- 30 天内没有已合并 PR
描述
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Windows 11 Pro 22H2 22621.2134
What is the issue affecting?
Other
Expected Behaviour
I have a huge lua file with a ~3k lines in a big workspace folder with ~1k lua files.
I expect that the file is saved instantly, as it was before when I used Windows 10.
Actual Behaviour
But a week ago I switched to Windows 11 and now I noticed that saving the file takes about 2 seconds.
When the lua-language-server extension is disabled in VS Code, the file is saved instantly.
I tried to set Workspace Event - None and disable Diagnostics but it didn't help
Reproduction steps
- Change large lua file
- Press Ctrl+S
- Wait 2 seconds before the extension allows VS Code to save the file to disk
Additional Notes
I found a stall message
File saving "sv_player.lua": Getting the code action from "'Lua'"
([configure] (command:workbench.action.openSettings?%5B%22editor.codeActionsOnSave%22%5D)).
Log File
No response
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
未指定源文件或测试。使用所描述的大型 Lua 文件和 workspace 在 Visual Studio Code 中重现延迟,然后跟踪扩展对 editor.codeActionsOnSave 的处理以及卡在 "Getting the code action" 的情况。完成的标准是:启用扩展后保存不再产生报告中的延迟,并且该场景有回归测试覆盖。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- lua, vscode
- 领域
- devtools, performance
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100