Skip to content

Commit

Permalink
Merge pull request #1 from pragmagic/master
Browse files Browse the repository at this point in the history
Fix passing arguments to nimpretty (pragmagic#154)
  • Loading branch information
wiltonlazary authored Aug 2, 2020
2 parents dbff0e8 + 989d9b5 commit e3ad354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nimFormatting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class NimFormattingProvider implements vscode.DocumentFormattingEditProvi
} else {
let file = getDirtyFile(document);
let config = vscode.workspace.getConfiguration('nim');
let res = cp.spawnSync(getNimPrettyExecPath(), ['--backup:OFF --indent:' + config['nimprettyIndent'] + ' --maxLineLen:' + config['nimprettyMaxLineLen'], file], { cwd: vscode.workspace.rootPath });
let res = cp.spawnSync(getNimPrettyExecPath(), ['--backup:OFF', '--indent:' + config['nimprettyIndent'], '--maxLineLen:' + config['nimprettyMaxLineLen'], file], { cwd: vscode.workspace.rootPath });

if (res.status !== 0) {
reject(res.error);
Expand Down

0 comments on commit e3ad354

Please sign in to comment.