mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Switch to ShellExecution instead of full Task
This commit is contained in:
parent
a43a9103bc
commit
647b126da5
2 changed files with 46 additions and 42 deletions
|
@ -116,7 +116,8 @@ export async function createTask(runnable: ra.Runnable, config: Config): Promise
|
|||
env: Object.assign({}, process.env as { [key: string]: string }, { "RUST_BACKTRACE": "short" }),
|
||||
};
|
||||
|
||||
const cargoTask = await tasks.buildCargoTask(definition, runnable.label, args, config.cargoRunner);
|
||||
const target = vscode.workspace.workspaceFolders![0]; // safe, see main activate()
|
||||
const cargoTask = await tasks.buildCargoTask(target, definition, runnable.label, args, config.cargoRunner, true);
|
||||
cargoTask.presentationOptions.clear = true;
|
||||
|
||||
return cargoTask;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue