Skip to content

Commit

Permalink
tests: rebuild tests on open only if the project is configured
Browse files Browse the repository at this point in the history
fixes #155
  • Loading branch information
ylatuya committed Oct 9, 2023
1 parent 6e7427c commit 8075b4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ export async function activate(ctx: vscode.ExtensionContext) {
watcher.onDidChange(changeHandler);
watcher.onDidCreate(changeHandler);
ctx.subscriptions.push(watcher);
await rebuildTests(controller);
await genEnvFile(buildDir);

// Refresh if the extension configuration is changed.
Expand Down Expand Up @@ -207,6 +206,8 @@ export async function activate(ctx: vscode.ExtensionContext) {
break;
}
}
} else {
await rebuildTests(controller);
}

const downloadLanguageServer = extensionConfiguration(SettingsKey.downloadLanguageServer);
Expand Down

0 comments on commit 8075b4b

Please sign in to comment.