Specific files.exclude breaks file scanning workspace.library
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- lua, typescript, vscode
- 领域
- tooling
调研方向
使用所示的 files.exclude 和 Lua.workspace.library 设置复现 Windows 多根 Workspace 场景。首先跟踪 VS Code 扩展的 Workspace 文件扫描路径,并比较有无 files.exclude 时的结果。当所有已配置的库路径都能一致地完成扫描,且不再出现缺少注解或文件未加载的情况时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Which OS are you using?
Windows
Expected Behaviour
When I specify the complicated mask of editor's files.exclude ugh... because there is no other way https://github.com/microsoft/vscode/issues/869
"files.exclude": {
"**/?*.[!l]*": true,
"**/?*.l[!u]*": true,
"**/?*.lu[!a]*": true,
"**/?*.lua?*": true
},
I expect to exclude all files from the VS Code project except .lua, so this should not affect the plugin in any way.
Actual Behaviour
I see that LuaLS file scanning is starting to work incorrectly, it may selectively skip my libraries from Lua.workspace.library list.
Reproduction steps
- Setup Multi-root Workspaces project https://code.visualstudio.com/docs/editor/multi-root-workspaces
for example our file located inproj/data/game/.vscode
// relative to proj/data/game/.vscode
"folders": [
{
"path": ".." // proj/data/game
},
{
"path": "../../scripts" // proj/data/scripts
},
{
"name": "system_data/game",
"path": "../../../system_data/game" // proj/system_data/game
},
{
"name": "system_data/scripts",
"path": "../../../system_data/scripts" // proj/system_data/scripts
}
],
- Setup
Lua.workspace.libraryfor correct Multi-root Workspaces file scanning
"Lua.workspace.library": [
"../../data/game",
"../../data/scripts",
"../../system_data/game",
"../../system_data/scripts",
".vscode/library" // some meta definitions in `proj/data/game/.vscode`
],
- Everything works fine. Then setup editor's files mask
"files.exclude": {
"**/?*.[!l]*": true,
"**/?*.l[!u]*": true,
"**/?*.lu[!a]*": true,
"**/?*.lua?*": true
},
- Now some annotations are missing or the files just haven't been loaded.
Additional Notes
No response
Log
No response
- 主要语言
- TypeScript
- 星标
- 216
- 派生
- 63
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
LuaLS/vscode-lua 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 48/100
LuaLS/vscode-lua#189 ·
-
难度 5/5 一周以上 新手友好度 42/100
LuaLS/vscode-lua#186 ·
-
难度 3/5 1-2 天 新手友好度 35/100
LuaLS/vscode-lua#175 ·
-
难度 2/5 1-3 小时 新手友好度 58/100
LuaLS/vscode-lua#172 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
LuaLS/vscode-lua#170 · 1 条评论 ·
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
维护者通常 1 天内回复
-
needs-area
难度 2/5 1-3 小时 新手友好度 68/100
Azure/typespec-azure#5936 ·
维护者通常 1 天内回复
-
难度 2/5 半天 新手友好度 72/100
vercel-labs/scriptc#2910 ·
维护者通常 1 天内回复
-
automation missing-model model-sync provider:fireworks-ai
难度 2/5 1-3 小时 新手友好度 72/100
anomalyco/models.dev#12458 ·
维护者通常 1 天内回复