From 6db31beaf029bb2b572416e132dffb75b207a07b Mon Sep 17 00:00:00 2001 From: Andreea Isac Date: Tue, 30 Nov 2021 10:22:39 -0800 Subject: [PATCH] Get back and follow up on last 3 commits. --- src/test/fakeSuite/extension.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/fakeSuite/extension.test.ts b/src/test/fakeSuite/extension.test.ts index a94d628..64270a0 100644 --- a/src/test/fakeSuite/extension.test.ts +++ b/src/test/fakeSuite/extension.test.ts @@ -149,7 +149,8 @@ suite('Fake dryrun parsing', /*async*/() => { // Run a preconfigure script to include our tests fake compilers path so that we always find gcc/gpp/clang/...etc... // from this extension repository instead of a real installation which may vary from system to system. - configuration.setPreConfigureScript(path.join(vscode.workspace.rootPath || "./", ".vscode/preconfigure_nonwin.sh")); + const rootPath: string = vscode.workspace.workspaceFolders ? vscode.workspace.workspaceFolders[0].uri.path : "./"; + configuration.setPreConfigureScript(path.posix.join(rootPath, ".vscode/preconfigure_nonwin.sh")); await make.preConfigure(make.TriggeredBy.tests); configuration.prepareConfigurationsQuickPick();