2019-11-12 16:00:05 +00:00
|
|
|
// Available variables which can be used inside of strings.
|
|
|
|
// ${workspaceRoot}: the root folder of the team
|
|
|
|
// ${file}: the current opened file
|
|
|
|
// ${fileBasename}: the current opened file's basename
|
|
|
|
// ${fileDirname}: the current opened file's dirname
|
|
|
|
// ${fileExtname}: the current opened file's extension
|
|
|
|
// ${cwd}: the current working directory of the spawned process
|
|
|
|
{
|
2021-06-05 16:45:05 +01:00
|
|
|
"version": "2.0.0",
|
2019-11-12 16:00:05 +00:00
|
|
|
"command": "cargo",
|
|
|
|
"tasks": [
|
|
|
|
{
|
2021-06-05 16:45:05 +01:00
|
|
|
"label": "build",
|
|
|
|
"type": "shell",
|
|
|
|
"args": [
|
|
|
|
"build",
|
|
|
|
"-v"
|
|
|
|
],
|
2019-11-12 16:00:05 +00:00
|
|
|
"problemMatcher": [
|
|
|
|
{
|
|
|
|
"owner": "rust",
|
2021-06-05 16:45:05 +01:00
|
|
|
"fileLocation": [
|
|
|
|
"relative",
|
|
|
|
"${workspaceRoot}"
|
|
|
|
],
|
2019-11-12 16:00:05 +00:00
|
|
|
"pattern": {
|
|
|
|
"regexp": "^(.*):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$",
|
2021-06-05 16:45:05 +01:00
|
|
|
"file": 1,
|
|
|
|
"line": 2,
|
|
|
|
"column": 3,
|
|
|
|
"endLine": 4,
|
|
|
|
"endColumn": 5,
|
|
|
|
"severity": 6,
|
|
|
|
"message": 7
|
2019-11-12 16:00:05 +00:00
|
|
|
}
|
|
|
|
}
|
2021-06-05 16:45:05 +01:00
|
|
|
],
|
|
|
|
"group": "build"
|
2019-11-12 16:00:05 +00:00
|
|
|
},
|
|
|
|
{
|
2021-06-05 16:45:05 +01:00
|
|
|
"label": "clean",
|
|
|
|
"type": "shell",
|
|
|
|
"args": [
|
|
|
|
"clean"
|
|
|
|
],
|
|
|
|
"problemMatcher": []
|
2019-11-12 16:00:05 +00:00
|
|
|
},
|
|
|
|
{
|
2021-06-05 16:45:05 +01:00
|
|
|
"label": "run",
|
|
|
|
"type": "shell",
|
|
|
|
"args": [
|
|
|
|
"run",
|
|
|
|
"-v"
|
|
|
|
],
|
2019-11-12 16:00:05 +00:00
|
|
|
"problemMatcher": [
|
|
|
|
{
|
|
|
|
"owner": "rust",
|
2021-06-05 16:45:05 +01:00
|
|
|
"fileLocation": [
|
|
|
|
"relative",
|
|
|
|
"${workspaceRoot}"
|
|
|
|
],
|
2019-11-12 16:00:05 +00:00
|
|
|
"pattern": {
|
|
|
|
"regexp": "^(.*):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$",
|
2021-06-05 16:45:05 +01:00
|
|
|
"file": 1,
|
|
|
|
"line": 2,
|
|
|
|
"column": 3,
|
|
|
|
"endLine": 4,
|
|
|
|
"endColumn": 5,
|
|
|
|
"severity": 6,
|
|
|
|
"message": 7
|
2019-11-12 16:00:05 +00:00
|
|
|
}
|
|
|
|
}
|
2021-06-05 16:45:05 +01:00
|
|
|
],
|
|
|
|
"group": "build"
|
2019-11-12 16:00:05 +00:00
|
|
|
},
|
|
|
|
{
|
2021-06-05 16:45:05 +01:00
|
|
|
"label": "test",
|
|
|
|
"type": "shell",
|
|
|
|
"args": [
|
|
|
|
"test"
|
|
|
|
],
|
2019-11-12 16:00:05 +00:00
|
|
|
"problemMatcher": [
|
|
|
|
{
|
|
|
|
"owner": "rust",
|
2021-06-05 16:45:05 +01:00
|
|
|
"fileLocation": [
|
|
|
|
"relative",
|
|
|
|
"${workspaceRoot}"
|
|
|
|
],
|
2019-11-12 16:00:05 +00:00
|
|
|
"pattern": {
|
|
|
|
"regexp": "^(.*):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$",
|
2021-06-05 16:45:05 +01:00
|
|
|
"file": 1,
|
|
|
|
"line": 2,
|
|
|
|
"column": 3,
|
|
|
|
"endLine": 4,
|
|
|
|
"endColumn": 5,
|
|
|
|
"severity": 6,
|
|
|
|
"message": 7
|
2019-11-12 16:00:05 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"owner": "rust",
|
2021-06-05 16:45:05 +01:00
|
|
|
"fileLocation": [
|
|
|
|
"relative",
|
|
|
|
"${workspaceRoot}"
|
|
|
|
],
|
2019-11-12 16:00:05 +00:00
|
|
|
"severity": "error",
|
|
|
|
"pattern": {
|
|
|
|
"regexp": "^.*panicked\\s+at\\s+'(.*)',\\s+(.*):(\\d+)$",
|
2021-06-05 16:45:05 +01:00
|
|
|
"message": 1,
|
|
|
|
"file": 2,
|
|
|
|
"line": 3
|
2019-11-12 16:00:05 +00:00
|
|
|
}
|
|
|
|
}
|
2021-06-05 16:45:05 +01:00
|
|
|
],
|
|
|
|
"group": "test"
|
2019-11-12 16:00:05 +00:00
|
|
|
},
|
|
|
|
{
|
2021-06-05 16:45:05 +01:00
|
|
|
"label": "bench",
|
|
|
|
"type": "shell",
|
|
|
|
"args": [
|
|
|
|
"bench"
|
|
|
|
],
|
2019-11-12 16:00:05 +00:00
|
|
|
"problemMatcher": [
|
|
|
|
{
|
|
|
|
"owner": "rust",
|
2021-06-05 16:45:05 +01:00
|
|
|
"fileLocation": [
|
|
|
|
"relative",
|
|
|
|
"${workspaceRoot}"
|
|
|
|
],
|
2019-11-12 16:00:05 +00:00
|
|
|
"pattern": {
|
|
|
|
"regexp": "^(.*):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$",
|
2021-06-05 16:45:05 +01:00
|
|
|
"file": 1,
|
|
|
|
"line": 2,
|
|
|
|
"column": 3,
|
|
|
|
"endLine": 4,
|
|
|
|
"endColumn": 5,
|
|
|
|
"severity": 6,
|
|
|
|
"message": 7
|
2019-11-12 16:00:05 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"owner": "rust",
|
2021-06-05 16:45:05 +01:00
|
|
|
"fileLocation": [
|
|
|
|
"relative",
|
|
|
|
"${workspaceRoot}"
|
|
|
|
],
|
2019-11-12 16:00:05 +00:00
|
|
|
"severity": "error",
|
|
|
|
"pattern": {
|
|
|
|
"regexp": "^.*panicked\\s+at\\s+'(.*)',\\s+(.*):(\\d+)$",
|
2021-06-05 16:45:05 +01:00
|
|
|
"message": 1,
|
|
|
|
"file": 2,
|
|
|
|
"line": 3
|
2019-11-12 16:00:05 +00:00
|
|
|
}
|
|
|
|
}
|
2021-06-05 16:45:05 +01:00
|
|
|
],
|
|
|
|
"group": "test"
|
2019-11-12 16:00:05 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|