Skip to content

VSCode document selector is not working when one project name is subset of other #41724

@Apoorva-GA

Description

@Apoorva-GA

VSCode document selector is not working when one project name is subset of other.

The glob pattern that we use to match is $projectroot/**/* which is use to differentiate between two projects in a workspace.

let clientOptions = {
        documentSelector: [{ scheme: 'file', language: 'gauge', pattern: `${folder.uri.fsPath}/**/*` }]
}

The above glob pattern seems to work with shell commands but not in VSCode

All the requests are being sent to both the language servers starting with the similar name.

Steps to Reproduce:

  1. Create a project with name test.
  2. Create an other project with name testone.
  3. Add both to a workspace.
  • VSCode Version: 1.19.2
  • OS Version: 10.13.2 (mac)

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugfile-globFile glob engineverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions