Update tasks.json
Former-commit-id: 3dc52edc74606c31c80e2e1ffd0d5fbc74d47123 Former-commit-id: 982303e2a48fe5f7ea64d85bf480ce3df77d54bc
This commit is contained in:
parent
a51a0d4962
commit
caf89d8532
1 changed files with 95 additions and 38 deletions
135
.vscode/tasks.json
vendored
135
.vscode/tasks.json
vendored
|
@ -6,97 +6,154 @@
|
||||||
// ${fileExtname}: the current opened file's extension
|
// ${fileExtname}: the current opened file's extension
|
||||||
// ${cwd}: the current working directory of the spawned process
|
// ${cwd}: the current working directory of the spawned process
|
||||||
{
|
{
|
||||||
"version": "0.1.0",
|
"version": "2.0.0",
|
||||||
"command": "cargo",
|
"command": "cargo",
|
||||||
"isShellCommand": true,
|
|
||||||
"suppressTaskName": true,
|
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"taskName": "build",
|
"label": "build",
|
||||||
"args": [ "build", "-v" ],
|
"type": "shell",
|
||||||
"isBuildCommand": true,
|
"args": [
|
||||||
"showOutput": "always",
|
"build",
|
||||||
|
"-v"
|
||||||
|
],
|
||||||
"problemMatcher": [
|
"problemMatcher": [
|
||||||
{
|
{
|
||||||
"owner": "rust",
|
"owner": "rust",
|
||||||
"fileLocation": [ "relative", "${workspaceRoot}" ],
|
"fileLocation": [
|
||||||
|
"relative",
|
||||||
|
"${workspaceRoot}"
|
||||||
|
],
|
||||||
"pattern": {
|
"pattern": {
|
||||||
"regexp": "^(.*):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$",
|
"regexp": "^(.*):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$",
|
||||||
"file": 1, "line": 2, "column": 3, "endLine": 4, "endColumn": 5, "severity": 6, "message": 7
|
"file": 1,
|
||||||
|
"line": 2,
|
||||||
|
"column": 3,
|
||||||
|
"endLine": 4,
|
||||||
|
"endColumn": 5,
|
||||||
|
"severity": 6,
|
||||||
|
"message": 7
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"group": "build"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"taskName": "clean",
|
"label": "clean",
|
||||||
"args": [ "clean" ],
|
"type": "shell",
|
||||||
"showOutput": "never"
|
"args": [
|
||||||
|
"clean"
|
||||||
|
],
|
||||||
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"taskName": "run",
|
"label": "run",
|
||||||
"args": [ "run", "-v" ],
|
"type": "shell",
|
||||||
"showOutput": "always",
|
"args": [
|
||||||
"isBuildCommand": true,
|
"run",
|
||||||
|
"-v"
|
||||||
|
],
|
||||||
"problemMatcher": [
|
"problemMatcher": [
|
||||||
{
|
{
|
||||||
"owner": "rust",
|
"owner": "rust",
|
||||||
"fileLocation": [ "relative", "${workspaceRoot}" ],
|
"fileLocation": [
|
||||||
|
"relative",
|
||||||
|
"${workspaceRoot}"
|
||||||
|
],
|
||||||
"pattern": {
|
"pattern": {
|
||||||
"regexp": "^(.*):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$",
|
"regexp": "^(.*):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$",
|
||||||
"file": 1, "line": 2, "column": 3, "endLine": 4, "endColumn": 5, "severity": 6, "message": 7
|
"file": 1,
|
||||||
|
"line": 2,
|
||||||
|
"column": 3,
|
||||||
|
"endLine": 4,
|
||||||
|
"endColumn": 5,
|
||||||
|
"severity": 6,
|
||||||
|
"message": 7
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"group": "build"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"taskName": "test",
|
"label": "test",
|
||||||
"args": [ "test" ],
|
"type": "shell",
|
||||||
"showOutput": "always",
|
"args": [
|
||||||
"isTestCommand": true,
|
"test"
|
||||||
|
],
|
||||||
"problemMatcher": [
|
"problemMatcher": [
|
||||||
{
|
{
|
||||||
"owner": "rust",
|
"owner": "rust",
|
||||||
"fileLocation": [ "relative", "${workspaceRoot}" ],
|
"fileLocation": [
|
||||||
|
"relative",
|
||||||
|
"${workspaceRoot}"
|
||||||
|
],
|
||||||
"pattern": {
|
"pattern": {
|
||||||
"regexp": "^(.*):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$",
|
"regexp": "^(.*):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$",
|
||||||
"file": 1, "line": 2, "column": 3, "endLine": 4, "endColumn": 5, "severity": 6, "message": 7
|
"file": 1,
|
||||||
|
"line": 2,
|
||||||
|
"column": 3,
|
||||||
|
"endLine": 4,
|
||||||
|
"endColumn": 5,
|
||||||
|
"severity": 6,
|
||||||
|
"message": 7
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"owner": "rust",
|
"owner": "rust",
|
||||||
"fileLocation": [ "relative", "${workspaceRoot}" ],
|
"fileLocation": [
|
||||||
|
"relative",
|
||||||
|
"${workspaceRoot}"
|
||||||
|
],
|
||||||
"severity": "error",
|
"severity": "error",
|
||||||
"pattern": {
|
"pattern": {
|
||||||
"regexp": "^.*panicked\\s+at\\s+'(.*)',\\s+(.*):(\\d+)$",
|
"regexp": "^.*panicked\\s+at\\s+'(.*)',\\s+(.*):(\\d+)$",
|
||||||
"message": 1, "file": 2, "line": 3
|
"message": 1,
|
||||||
|
"file": 2,
|
||||||
|
"line": 3
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"group": "test"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"taskName": "bench",
|
"label": "bench",
|
||||||
"args": [ "bench" ],
|
"type": "shell",
|
||||||
"showOutput": "always",
|
"args": [
|
||||||
"isTestCommand": true,
|
"bench"
|
||||||
|
],
|
||||||
"problemMatcher": [
|
"problemMatcher": [
|
||||||
{
|
{
|
||||||
"owner": "rust",
|
"owner": "rust",
|
||||||
"fileLocation": [ "relative", "${workspaceRoot}" ],
|
"fileLocation": [
|
||||||
|
"relative",
|
||||||
|
"${workspaceRoot}"
|
||||||
|
],
|
||||||
"pattern": {
|
"pattern": {
|
||||||
"regexp": "^(.*):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$",
|
"regexp": "^(.*):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$",
|
||||||
"file": 1, "line": 2, "column": 3, "endLine": 4, "endColumn": 5, "severity": 6, "message": 7
|
"file": 1,
|
||||||
|
"line": 2,
|
||||||
|
"column": 3,
|
||||||
|
"endLine": 4,
|
||||||
|
"endColumn": 5,
|
||||||
|
"severity": 6,
|
||||||
|
"message": 7
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"owner": "rust",
|
"owner": "rust",
|
||||||
"fileLocation": [ "relative", "${workspaceRoot}" ],
|
"fileLocation": [
|
||||||
|
"relative",
|
||||||
|
"${workspaceRoot}"
|
||||||
|
],
|
||||||
"severity": "error",
|
"severity": "error",
|
||||||
"pattern": {
|
"pattern": {
|
||||||
"regexp": "^.*panicked\\s+at\\s+'(.*)',\\s+(.*):(\\d+)$",
|
"regexp": "^.*panicked\\s+at\\s+'(.*)',\\s+(.*):(\\d+)$",
|
||||||
"message": 1, "file": 2, "line": 3
|
"message": 1,
|
||||||
|
"file": 2,
|
||||||
|
"line": 3
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"group": "test"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Reference in a new issue