mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Sends cwd info for runnables and code lenses
This commit is contained in:
parent
3507bcb97a
commit
7c7cfc5f04
8 changed files with 38 additions and 5 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue