Skip to content

Commit

Permalink
Allows compile/run files ina path with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
dpuyosa committed Mar 1, 2017
1 parent 011683c commit 0c21832
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nimMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,18 +188,18 @@ function runFile() {
terminal.show(true);
if (editor.document.isUntitled) {
terminal.sendText('nim ' + vscode.workspace.getConfiguration('nim')['buildCommand'] +
' -r ' + getDirtyFile(editor.document), true);
' -r "' + getDirtyFile(editor.document)+'"', true);
} else {
if (editor.document.isDirty) {
editor.document.save().then((success: boolean) => {
if (success) {
terminal.sendText('nim ' + vscode.workspace.getConfiguration('nim')['buildCommand'] +
' -r ' + editor.document.fileName, true);
' -r "' + editor.document.fileName+'"', true);
}
});
} else {
terminal.sendText('nim ' + vscode.workspace.getConfiguration('nim')['buildCommand'] +
' -r ' + editor.document.fileName, true);
' -r "' + editor.document.fileName+'"', true);
}
}
}
Expand Down

0 comments on commit 0c21832

Please sign in to comment.