Skip to content

Commit

Permalink
fix(commands): change to current directory before executing new command
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Lieben committed Feb 3, 2017
1 parent 362c16a commit 0c566e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/aureliaCLICommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ export default class AureliaCliCommands {
}

private static async runCommandInTerminal(args: string[]): Promise<void> {

try {
fs.accessSync(path.join(vscode.workspace.rootPath, 'aurelia_project/aurelia.json'));
} catch (e) {
Expand All @@ -96,6 +95,7 @@ export default class AureliaCliCommands {

let terminal = vscode.window.createTerminal('aurelia-cli');
terminal.show(true);
terminal.sendText(`cd ${vscode.workspace.rootPath}`, true);
terminal.sendText('au ' + args.join(' '), true);
}
}

0 comments on commit 0c566e7

Please sign in to comment.