Skip to content

Commit 7f21a55

Browse files
author
Elaheh Rashedi
authored
remove quote from folder path (#9249)
1 parent 85c9b30 commit 7f21a55

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Extension/src/LanguageServer/cppBuildTaskProvider.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,11 @@ class CustomBuildTaskTerminal implements Pseudoterminal {
362362
// Do build.
363363
let command: string = util.resolveVariables(this.command);
364364
let activeCommand: string = command;
365+
366+
// Create the exe folder path if it doesn't exists.
367+
const exePath: string | undefined = util.resolveVariables(util.findExePathInArgs(this.args));
368+
util.createDirIfNotExistsSync(exePath);
369+
365370
this.args.forEach((value, index) => {
366371
value = util.normalizeArg(util.resolveVariables(value));
367372
activeCommand = activeCommand + " " + value;
@@ -396,10 +401,6 @@ class CustomBuildTaskTerminal implements Pseudoterminal {
396401

397402
this.writeEmitter.fire(activeCommand + this.endOfLine);
398403

399-
// Create the exe folder path if it doesn't exists.
400-
const exePath: string | undefined = util.findExePathInArgs(this.args);
401-
util.createDirIfNotExistsSync(exePath);
402-
403404
let child: cp.ChildProcess | undefined;
404405
try {
405406
child = cp.spawn(command, this.args, this.options ? this.options : {});

0 commit comments

Comments
 (0)