From 388aaca9cb29df9f6ad8b426a927614a0103c636 Mon Sep 17 00:00:00 2001 From: Techatrix Date: Tue, 10 Dec 2024 18:51:47 +0100 Subject: [PATCH] don't open every zig file in the workspace just to look for tests --- src/zigTestRunnerProvider.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/zigTestRunnerProvider.ts b/src/zigTestRunnerProvider.ts index 2c0af84..683dd18 100644 --- a/src/zigTestRunnerProvider.ts +++ b/src/zigTestRunnerProvider.ts @@ -32,7 +32,6 @@ export default class ZigTestRunnerProvider { this.debugTests.bind(this), false, ); - void this.findAndRegisterTests(); } public activate(subscriptions: vscode.Disposable[]) { @@ -68,16 +67,6 @@ export default class ZigTestRunnerProvider { }); } - private async findAndRegisterTests() { - const files = await vscode.workspace.findFiles("**/*.zig"); - for (const file of files) { - try { - const doc = await vscode.workspace.openTextDocument(file); - this._updateTestItems(doc); - } catch {} - } - } - private _updateTestItems(textDocument: vscode.TextDocument) { if (textDocument.languageId !== "zig") return;