Skip to content

Commit 390e6d4

Browse files
committed
fix: dont update tests in an opened file twice if file is saved
1 parent 43440d8 commit 390e6d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vscode-client/testcontrollermanager.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,8 @@ export class TestControllerManager {
875875
}
876876

877877
private refreshUri(uri?: vscode.Uri, reason?: string) {
878+
if (vscode.workspace.textDocuments.find((d) => d.uri.toString() === uri?.toString())) return;
879+
878880
this.outputChannel.appendLine(`refresh uri ${uri ? uri.toString() : "unknown"} because: ${reason ?? "unknown"}`);
879881

880882
if (uri) {

0 commit comments

Comments
 (0)