File tree Expand file tree Collapse file tree
Extension/src/LanguageServer Expand file tree Collapse file tree Original file line number Diff line number Diff 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 : { } ) ;
You can’t perform that action at this time.
0 commit comments