Skip to content

Specific files.exclude breaks file scanning workspace.library #160

@TIMONz1535

Description

@TIMONz1535

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 microsoft/vscode#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions