mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Add custom cargo runners
This commit is contained in:
parent
c544f9a137
commit
a43a9103bc
6 changed files with 72 additions and 55 deletions
|
@ -394,7 +394,7 @@ export function run(ctx: Ctx): Cmd {
|
|||
|
||||
item.detail = 'rerun';
|
||||
prevRunnable = item;
|
||||
const task = createTask(item.runnable);
|
||||
const task = await createTask(item.runnable, ctx.config);
|
||||
return await vscode.tasks.executeTask(task);
|
||||
};
|
||||
}
|
||||
|
@ -404,7 +404,7 @@ export function runSingle(ctx: Ctx): Cmd {
|
|||
const editor = ctx.activeRustEditor;
|
||||
if (!editor) return;
|
||||
|
||||
const task = createTask(runnable);
|
||||
const task = await createTask(runnable, ctx.config);
|
||||
task.group = vscode.TaskGroup.Build;
|
||||
task.presentationOptions = {
|
||||
reveal: vscode.TaskRevealKind.Always,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue