File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -362,6 +362,11 @@ class CustomBuildTaskTerminal implements Pseudoterminal {
362
362
// Do build.
363
363
let command : string = util . resolveVariables ( this . command ) ;
364
364
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
+
365
370
this . args . forEach ( ( value , index ) => {
366
371
value = util . normalizeArg ( util . resolveVariables ( value ) ) ;
367
372
activeCommand = activeCommand + " " + value ;
@@ -396,10 +401,6 @@ class CustomBuildTaskTerminal implements Pseudoterminal {
396
401
397
402
this . writeEmitter . fire ( activeCommand + this . endOfLine ) ;
398
403
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
-
403
404
let child : cp . ChildProcess | undefined ;
404
405
try {
405
406
child = cp . spawn ( command , this . args , this . options ? this . options : { } ) ;
You can’t perform that action at this time.
0 commit comments