aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorRoberto Vidal <[email protected]>2019-04-13 18:45:21 +0100
committerRoberto Vidal <[email protected]>2019-04-14 09:04:38 +0100
commit7c7cfc5f04c51ed1e31b6a3091efc3941b3383c2 (patch)
tree0bc4d2f3afefb504509676388016da52598fe1dd /editors
parent3507bcb97aaaafba10d55c101bd295f3ab4fed4f (diff)
Sends cwd info for runnables and code lenses
Diffstat (limited to 'editors')
-rw-r--r--editors/code/src/commands/runnables.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/editors/code/src/commands/runnables.ts b/editors/code/src/commands/runnables.ts
index 3589edcee..c4df24c79 100644
--- a/editors/code/src/commands/runnables.ts
+++ b/editors/code/src/commands/runnables.ts
@@ -17,6 +17,7 @@ interface Runnable {
17 bin: string; 17 bin: string;
18 args: string[]; 18 args: string[];
19 env: { [index: string]: string }; 19 env: { [index: string]: string };
20 cwd?: string;
20} 21}
21 22
22class RunnableQuickPick implements vscode.QuickPickItem { 23class RunnableQuickPick implements vscode.QuickPickItem {
@@ -49,7 +50,7 @@ function createTask(spec: Runnable): vscode.Task {
49 }; 50 };
50 51
51 const execOption: vscode.ShellExecutionOptions = { 52 const execOption: vscode.ShellExecutionOptions = {
52 cwd: '.', 53 cwd: spec.cwd || '.',
53 env: definition.env 54 env: definition.env
54 }; 55 };
55 const exec = new vscode.ShellExecution( 56 const exec = new vscode.ShellExecution(