LuaLS / LuaLS/vscode-lua

Specific files.exclude breaks file scanning workspace.library

オープン
#160 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
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
  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
	// 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
		}
	],
  1. Setup Lua.workspace.library for 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`
		],
  1. Everything works fine. Then setup editor's files mask
		"files.exclude": {
			"**/?*.[!l]*": true,
			"**/?*.l[!u]*": true,
			"**/?*.lu[!a]*": true,
			"**/?*.lua?*": true
		},
  1. Now some annotations are missing or the files just haven't been loaded.
Additional Notes

No response

Log

No response

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。