Skip to content

Commit

Permalink
fix: load test in visible text editors
Browse files Browse the repository at this point in the history
  • Loading branch information
zxch3n committed Mar 21, 2022
1 parent 8e162e6 commit c659196
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down

0 comments on commit c659196

Please sign in to comment.