diff --git a/editors/code/package.json b/editors/code/package.json index ca00da9f36..0457317423 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -1512,6 +1512,18 @@ "endColumn": 6 } ] + }, + { + "name": "rust-panic", + "patterns": [ + { + "regexp": "^thread '.*' panicked at '(.*)', (.*):(\\d*):(\\d*)$", + "message": 1, + "file": 2, + "line": 3, + "column": 4 + } + ] } ], "languages": [ @@ -1561,6 +1573,16 @@ ], "pattern": "$rustc-json" }, + { + "name": "rust-panic", + "owner": "rust-panic", + "source": "panic", + "fileLocation": [ + "autoDetect", + "${workspaceRoot}" + ], + "pattern": "$rust-panic" + }, { "name": "rustc-watch", "owner": "rustc", diff --git a/editors/code/src/tasks.ts b/editors/code/src/tasks.ts index e6239deeb2..d6509d9aa6 100644 --- a/editors/code/src/tasks.ts +++ b/editors/code/src/tasks.ts @@ -128,7 +128,7 @@ export async function buildCargoTask( name, TASK_SOURCE, exec, - ["$rustc"] + ["$rustc", "$rust-panic"] ); }