Skip to content

Commit c240d8b

Browse files
authored
Add quotes around path (#1)
The quotes around the path variable allows the command to work with paths with whitespace.
1 parent f1304e8 commit c240d8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/run.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ class RunManager {
2828
currentTerminal.show()
2929

3030
// If file is a processing project file
31-
const cmd = `${getProcessingCommand()} --sketch=${dirname(
31+
const cmd = `${getProcessingCommand()} --sketch="${dirname(
3232
editor.document.fileName,
33-
)} --run`
33+
)}" --run`
3434

3535
currentTerminal.sendText(cmd)
3636
}

0 commit comments

Comments
 (0)