From 4a73b0666f74e9d792b2b1134ad58ed5334f8c2a Mon Sep 17 00:00:00 2001 From: Rowan Marchant-Williams Date: Thu, 5 Jun 2025 23:33:26 +0100 Subject: [PATCH] Update stale env var on non debug test run --- src/Components/TestExplorer.fs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Components/TestExplorer.fs b/src/Components/TestExplorer.fs index a9929121..24857432 100644 --- a/src/Components/TestExplorer.fs +++ b/src/Components/TestExplorer.fs @@ -578,7 +578,12 @@ module DotnetCli = childEnv |> box |> Some Process.execWithCancel "dotnet" (ResizeArray(args)) env tryLaunchDebugger cancellationToken - | NoDebug -> Process.execWithCancel "dotnet" (ResizeArray(args)) None ignore cancellationToken + | NoDebug -> + let env = + let staleOverrides = {| VSTEST_HOST_DEBUG = 0 |} + staleOverrides |> box |> Some + + Process.execWithCancel "dotnet" (ResizeArray(args)) env ignore cancellationToken type TrxPath = string