Review usage of workspaceContains activationEvent
roblourens opened this issue · 0 comments
Hi, I'm reaching out to let you know that we are fixing a bug with the workspaceContains
VS Code extension activationEvent that could change the activation behavior for your extension.
Here's the issue: This event is supposed to start a search in the user's workspace with the given glob pattern, and activate the extension if it finds a match. A pattern like *.txt
should find a file in the root of the workspace matching *.txt
, but it should not search the entire workspace. A pattern like **/*.txt
should recursively search the entire workspace. We discovered that VS Code is incorrectly applying the **
pattern to every workspaceContains pattern that includes a *
.
Since this may impact the startup performance of VS Code, we need to scope these searches correctly. Once we fix this, a pattern like *.txt
will only match a .txt file in the root of the workspace.
The change will be in VS Code Insiders in early January. It will be released with 1.53 in early February. Please see microsoft/vscode#110510 for more details and let me know if you have any questions.