Skip to content

Commit

Permalink
Merge pull request #41 from dpuyosa/master
Browse files Browse the repository at this point in the history
Allows compile/run files in a path with spaces
  • Loading branch information
kosz78 committed Mar 2, 2017
2 parents 011683c + 0c21832 commit 8c88f70
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 8c88f70

Please sign in to comment.