diff options
| author | bors <bors@rust-lang.org> | 2023-07-03 02:40:35 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-07-03 02:40:35 +0000 |
| commit | e17559598596bc91fed7854dbeaebdf7fddd566a (patch) | |
| tree | 272976dd42e97f7f47335e35e7beefa98fc05bb6 /editors/code/src/tasks.ts | |
| parent | ff485b63bfd9a44ab2a0dbe88dcf58b79496f1ac (diff) | |
| parent | 832a64e290ce97e6ae9fce3743dc2f38c4088ccd (diff) | |
| download | rust-e17559598596bc91fed7854dbeaebdf7fddd566a.tar.gz rust-e17559598596bc91fed7854dbeaebdf7fddd566a.zip | |
Auto merge of #15186 - matklad:panic, r=HKalbasi
feat: don't add panics to error jump list by default
To re-enable this, use
"rust-analyzer.runnables.problemMatcher": [
"$rustc",
"$rust-panic"
],
setting.
closes: #14977
Diffstat (limited to 'editors/code/src/tasks.ts')
| -rw-r--r-- | editors/code/src/tasks.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/editors/code/src/tasks.ts b/editors/code/src/tasks.ts index d6509d9aa6e..efb889dc797 100644 --- a/editors/code/src/tasks.ts +++ b/editors/code/src/tasks.ts @@ -46,6 +46,7 @@ class CargoTaskProvider implements vscode.TaskProvider { { type: TASK_TYPE, command: def.command }, `cargo ${def.command}`, [def.command], + this.config.problemMatcher, this.config.cargoRunner ); vscodeTask.group = def.group; @@ -70,6 +71,7 @@ class CargoTaskProvider implements vscode.TaskProvider { definition, task.name, args, + this.config.problemMatcher, this.config.cargoRunner ); } @@ -83,6 +85,7 @@ export async function buildCargoTask( definition: CargoTaskDefinition, name: string, args: string[], + problemMatcher: string[], customRunner?: string, throwOnError: boolean = false ): Promise<vscode.Task> { @@ -128,7 +131,7 @@ export async function buildCargoTask( name, TASK_SOURCE, exec, - ["$rustc", "$rust-panic"] + problemMatcher ); } |
