Skip to content

User should be alerted somehow if ${workspaceFolder:foo} in .code-workspace references unknown folder name #246284

Closed as not planned
@debonte

Description

@debonte

Given a .code-workspace file like this:

{
	"folders": [
		{
			"path": "root1",
			"name": "name1"
		},
		{
			"path": "root2",
			"name": "name2"
		}
	],
	"settings": {
		"python.analysis.include": ["${workspaceFolder:invalid_name}/**"]
	 }
}

VS Code could show a diagnostic on workspaceFolder:invalid_name. It's easy to make a typo here and be confused about why it's not working as expected.

Originally filed as microsoft/pylance-release#6146, but this seems like it could be generally useful (not Pylance-specific).

Metadata

Metadata

Assignees

No one assigned

    Labels

    configVS Code configuration, set up issuesfeature-requestRequest for new features or functionalityworkbench-multirootMulti-root (multiple folders) issues

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions