Exclude .vscode-test folder from npm task detection

Part of #88328
This commit is contained in:
Alex Ross 2020-01-09 10:36:35 +01:00
parent e9bb8b306c
commit acb595b158

View file

@ -144,7 +144,7 @@ async function detectNpmScripts(): Promise<Task[]> {
for (const folder of folders) {
if (isAutoDetectionEnabled(folder)) {
let relativePattern = new RelativePattern(folder, '**/package.json');
let paths = await workspace.findFiles(relativePattern, '**/node_modules/**');
let paths = await workspace.findFiles(relativePattern, '**/{node_modules,.vscode-test}/**');
for (const path of paths) {
if (!isExcluded(folder, path) && !visitedPackageJsonFiles.has(path.fsPath)) {
let tasks = await provideNpmScriptsForFolder(path);