mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 01:17:27 +00:00
Merge #9001
9001: minor: explicitly set the focus to false r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
8c80a21772
1 changed files with 4 additions and 0 deletions
|
@ -142,7 +142,11 @@ export async function createTask(runnable: ra.Runnable, config: Config): Promise
|
|||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
||||
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;
|
||||
// Sadly, this doesn't prevent focus stealing if the terminal is currently
|
||||
// hidden, and will become revealed due to task exucution.
|
||||
cargoTask.presentationOptions.focus = false;
|
||||
|
||||
return cargoTask;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue