-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtasks.json
106 lines (105 loc) · 3.88 KB
/
tasks.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
// 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
{
"version": "0.1.0",
"command": "cargo",
"isShellCommand": true,
"suppressTaskName": true,
"tasks": [
{
"taskName": "build",
"args": [ "build", "-v" ],
"isBuildCommand": true,
"showOutput": "always",
"problemMatcher": [
{
"owner": "rust",
"fileLocation": [ "relative", "${workspaceRoot}" ],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$",
"file": 1, "line": 2, "column": 3, "endLine": 4, "endColumn": 5, "severity": 6, "message": 7
}
}
]
},
{
"taskName": "clean",
"args": [ "clean" ],
"showOutput": "never"
},
{
"taskName": "run",
"args": [ "run", "-v" ],
"showOutput": "always",
"presentation": {
"reveal": "never",
},
"isBuildCommand": true,
"problemMatcher": [
{
"owner": "rust",
"fileLocation": [ "relative", "${workspaceRoot}" ],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$",
"file": 1, "line": 2, "column": 3, "endLine": 4, "endColumn": 5, "severity": 6, "message": 7
}
}
]
},
{
"taskName": "test",
"args": [ "test" ],
"showOutput": "always",
"isTestCommand": true,
"problemMatcher": [
{
"owner": "rust",
"fileLocation": [ "relative", "${workspaceRoot}" ],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$",
"file": 1, "line": 2, "column": 3, "endLine": 4, "endColumn": 5, "severity": 6, "message": 7
}
},
{
"owner": "rust",
"fileLocation": [ "relative", "${workspaceRoot}" ],
"severity": "error",
"pattern": {
"regexp": "^.*panicked\\s+at\\s+'(.*)',\\s+(.*):(\\d+)$",
"message": 1, "file": 2, "line": 3
}
}
]
},
{
"taskName": "bench",
"args": [ "bench" ],
"showOutput": "always",
"isTestCommand": true,
"problemMatcher": [
{
"owner": "rust",
"fileLocation": [ "relative", "${workspaceRoot}" ],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$",
"file": 1, "line": 2, "column": 3, "endLine": 4, "endColumn": 5, "severity": 6, "message": 7
}
},
{
"owner": "rust",
"fileLocation": [ "relative", "${workspaceRoot}" ],
"severity": "error",
"pattern": {
"regexp": "^.*panicked\\s+at\\s+'(.*)',\\s+(.*):(\\d+)$",
"message": 1, "file": 2, "line": 3
}
}
]
}
]
}