From 6e15b8395e729f59d3cd7358365ed967900fcf84 Mon Sep 17 00:00:00 2001 From: Vladimir Sheremet Date: Wed, 27 Mar 2024 19:33:01 +0100 Subject: [PATCH] fix: ignore dot folders by default --- src/api/pkg.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/pkg.ts b/src/api/pkg.ts index 20d4c7e..b4b11a8 100644 --- a/src/api/pkg.ts +++ b/src/api/pkg.ts @@ -75,7 +75,7 @@ function resolveVitestConfig(showWarning: boolean, configOrWorkspaceFile: vscode } export async function resolveVitestPackages(showWarning: boolean): Promise { - const vitestWorkspaces = await vscode.workspace.findFiles(workspaceGlob, '**/node_modules/**') + const vitestWorkspaces = await vscode.workspace.findFiles(workspaceGlob, '**/{node_modules,.*}/**') if (vitestWorkspaces.length) { // if there is a workspace config, use it as root @@ -90,7 +90,7 @@ export async function resolveVitestPackages(showWarning: boolean): Promise>((acc, config) => { const dir = dirname(config.fsPath) -- 2.51.2