From 0c21832a46e8dbd68eb6f9317d7f5e8204764c5e Mon Sep 17 00:00:00 2001 From: dpuyosa Date: Wed, 1 Mar 2017 17:31:28 +0100 Subject: [PATCH] Allows compile/run files ina path with spaces --- src/nimMain.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nimMain.ts b/src/nimMain.ts index 1714a6a..42956ff 100644 --- a/src/nimMain.ts +++ b/src/nimMain.ts @@ -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); } } }