From a05dee86b3441b2b75371f05292195c35266b18c Mon Sep 17 00:00:00 2001 From: Eleanor Boyd Date: Fri, 15 Dec 2023 12:46:15 -0800 Subject: [PATCH] add logging for when testing is already running and causes new runs to be canceled (#22653) This logging will provide greater visibility for users as the discovery or execution process immediately exits since the process interprets there is already a similar process is going. This can inform users or help spot bugs --- src/client/testing/testController/workspaceTestAdapter.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/testing/testController/workspaceTestAdapter.ts b/src/client/testing/testController/workspaceTestAdapter.ts index 35a5b7a24418..5fe69dfe3d69 100644 --- a/src/client/testing/testController/workspaceTestAdapter.ts +++ b/src/client/testing/testController/workspaceTestAdapter.ts @@ -47,6 +47,7 @@ export class WorkspaceTestAdapter { debugLauncher?: ITestDebugLauncher, ): Promise { if (this.executing) { + traceError('Test execution already in progress, not starting a new one.'); return this.executing.promise; } @@ -119,6 +120,7 @@ export class WorkspaceTestAdapter { // Discovery is expensive. If it is already running, use the existing promise. if (this.discovering) { + traceError('Test discovery already in progress, not starting a new one.'); return this.discovering.promise; }