feat: define problem matcher for panics in VS Code
Now in VS Code "go to next error" (`F8`) will bring you to the source of a panic.
This commit is contained in:
parent
a4966c9282
commit
7bc60f512e
@ -1512,6 +1512,18 @@
|
|||||||
"endColumn": 6
|
"endColumn": 6
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "rust-panic",
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"regexp": "^thread '.*' panicked at '(.*)', (.*):(\\d*):(\\d*)$",
|
||||||
|
"message": 1,
|
||||||
|
"file": 2,
|
||||||
|
"line": 3,
|
||||||
|
"column": 4
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"languages": [
|
"languages": [
|
||||||
@ -1561,6 +1573,16 @@
|
|||||||
],
|
],
|
||||||
"pattern": "$rustc-json"
|
"pattern": "$rustc-json"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "rust-panic",
|
||||||
|
"owner": "rust-panic",
|
||||||
|
"source": "panic",
|
||||||
|
"fileLocation": [
|
||||||
|
"autoDetect",
|
||||||
|
"${workspaceRoot}"
|
||||||
|
],
|
||||||
|
"pattern": "$rust-panic"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "rustc-watch",
|
"name": "rustc-watch",
|
||||||
"owner": "rustc",
|
"owner": "rustc",
|
||||||
|
@ -128,7 +128,7 @@ export async function buildCargoTask(
|
|||||||
name,
|
name,
|
||||||
TASK_SOURCE,
|
TASK_SOURCE,
|
||||||
exec,
|
exec,
|
||||||
["$rustc"]
|
["$rustc", "$rust-panic"]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user