File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -50,14 +50,16 @@ export function setupCommands(context: ExtensionContext) {
5050 let path = state . selectedVersion . path ;
5151 if ( process . platform === "win32" ) {
5252 // on windows we need to escape spaces
53- path = `& "${ path } " 2>&1 | Out-String ` ;
53+ path = `& "${ path } "` ;
5454 }
5555
56- // Send the command to the terminal
57- terminal . sendText (
58- `${ path } cli --sketch="${ dirname ( resource . fsPath ) } " --run ` ,
59- true
60- ) ;
56+ let cmd = `${ path } --sketch="${ dirname ( resource . fsPath ) } " --run` ;
57+ if ( process . platform === "win32" ) {
58+ // on windows we need to pipe stderr to stdout and convert to string
59+ cmd += `2>&1 | Out-String` ;
60+ }
61+
62+ terminal . sendText ( cmd , true ) ;
6163 } ) ;
6264
6365 const stopSketch = commands . registerCommand ( 'processing.sketch.stop' , ( ) => {
You can’t perform that action at this time.
0 commit comments