From 7c7cfc5f04c51ed1e31b6a3091efc3941b3383c2 Mon Sep 17 00:00:00 2001 From: Roberto Vidal Date: Sat, 13 Apr 2019 19:45:21 +0200 Subject: Sends cwd info for runnables and code lenses --- editors/code/src/commands/runnables.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'editors/code/src/commands') 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 { bin: string; args: string[]; env: { [index: string]: string }; + cwd?: string; } class RunnableQuickPick implements vscode.QuickPickItem { @@ -49,7 +50,7 @@ function createTask(spec: Runnable): vscode.Task { }; const execOption: vscode.ShellExecutionOptions = { - cwd: '.', + cwd: spec.cwd || '.', env: definition.env }; const exec = new vscode.ShellExecution( -- cgit v1.2.3