Skip to content

Commit 0865c4d

Browse files
committed
Fix Windows path handling to capture terminal output during sketch execution
1 parent 80643b5 commit 0865c4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/src/setupCommands.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ 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}"`;
53+
path = `& "${path}" 2>&1 | Out-String `;
5454
}
5555

5656
// Send the command to the terminal
5757
terminal.sendText(
58-
`${path} cli --sketch="${dirname(resource.fsPath)}" --run`,
58+
`${path} cli --sketch="${dirname(resource.fsPath)}" --run `,
5959
true
6060
);
6161
});

0 commit comments

Comments
 (0)