Sends cwd info for runnables and code lenses

This commit is contained in:
Roberto Vidal 2019-04-13 19:45:21 +02:00
parent 3507bcb97a
commit 7c7cfc5f04
8 changed files with 38 additions and 5 deletions

View file

@ -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(