Specific files.exclude breaks file scanning workspace.library
還沒有人認領這個 Issue。
- 主要語言
- TypeScript
- 星號
- 215
- 分支
- 62
- PR 合併指標
- 30 天內沒有已合併 PR
描述
### 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
```jsonc
"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
1. Setup Multi-root Workspaces project https://code.visualstudio.com/docs/editor/multi-root-workspaces
for example our file located in `proj/data/game/.vscode`
```jsonc
// 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
}
],
```
2. Setup `Lua.workspace.library` for correct Multi-root Workspaces file scanning
```jsonc
"Lua.workspace.library": [
"../../data/game",
"../../data/scripts",
"../../system_data/game",
"../../system_data/scripts",
".vscode/library" // some meta definitions in `proj/data/game/.vscode`
],
```
3. Everything works fine. Then setup editor's files mask
```jsonc
"files.exclude": {
"**/?*.[!l]*": true,
"**/?*.l[!u]*": true,
"**/?*.lu[!a]*": true,
"**/?*.lua?*": true
},
```
4. Now some annotations are missing or the files just haven't been loaded.
### Additional Notes
_No response_
### Log
_No response_
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
Reproduce the Windows multi-root workspace scenario using the shown files.exclude and Lua.workspace.library settings. Start by tracing the VS Code extension's workspace file-scanning path and compare results with and without files.exclude. Done means all configured library paths are scanned consistently and the missing annotations or unloaded files no longer occur.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- lua, typescript, vscode
- 領域
- tooling
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100