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) {
50
50
let path = state . selectedVersion . path ;
51
51
if ( process . platform === "win32" ) {
52
52
// on windows we need to escape spaces
53
- path = `& "${ path } " 2>&1 | Out-String ` ;
53
+ path = `& "${ path } "` ;
54
54
}
55
55
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 ) ;
61
63
} ) ;
62
64
63
65
const stopSketch = commands . registerCommand ( 'processing.sketch.stop' , ( ) => {
You can’t perform that action at this time.
0 commit comments