From 3276427b5dadb4400f35cb159c86196d95dd5d67 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Mon, 28 Feb 2022 13:39:14 -0800 Subject: [PATCH] Fix Pester `Test/Debug` code lenses to now change directory We're passing the full path of the test file to the invocation script, so we do not need to (nor should we, as it could be difficult to workaround) change the location before running the tests. This just means not passing a value for `cwd` in the launch configuration. --- src/features/PesterTests.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/features/PesterTests.ts b/src/features/PesterTests.ts index 0486c7323a..32cc795a0b 100644 --- a/src/features/PesterTests.ts +++ b/src/features/PesterTests.ts @@ -91,11 +91,7 @@ export class PesterTestsFeature implements vscode.Disposable { ], internalConsoleOptions: "neverOpen", noDebug: (launchType === LaunchType.Run), - createTemporaryIntegratedConsole: settings.debugging.createTemporaryIntegratedConsole, - cwd: - currentDocument.isUntitled - ? vscode.workspace.rootPath - : path.dirname(currentDocument.fileName), + createTemporaryIntegratedConsole: settings.debugging.createTemporaryIntegratedConsole }; if (lineNum) {