Specific files.exclude breaks file scanning workspace.library
まだ誰も着手していません。
- 主要言語
- 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
"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
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
示されている files.exclude と Lua.workspace.library の設定を使用して、Windows のマルチルート Workspace のシナリオを再現します。まず、VS Code 拡張機能の Workspace ファイルスキャンの経路を追跡し、files.exclude の有無による結果を比較します。設定されたすべてのライブラリパスが一貫してスキャンされ、アノテーションの欠落やファイルが読み込まれない問題が発生しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- lua, typescript, vscode
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100