From c659196e4f1b6ba04893196eafc924adca3f8bf3 Mon Sep 17 00:00:00 2001 From: Zixuan Chen Date: Mon, 21 Mar 2022 12:17:50 +0800 Subject: [PATCH] fix: load test in visible text editors --- src/extension.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/extension.ts b/src/extension.ts index 4eb8ad15..9e483e95 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -33,6 +33,10 @@ export function activate(context: vscode.ExtensionContext) { true ); + vscode.window.visibleTextEditors.forEach((x) => + discoverTestFromDoc(ctrl, x.document) + ); + context.subscriptions.push( ctrl, vscode.commands.registerCommand("vitest-explorer.configureTest", () => {