Skip to content

Commit 7023b74

Browse files
committed
vscode: adding IDE tasks
making it easier to have consistent build and test across machines with vscode editor Signed-off-by: Vincent Batts <[email protected]>
1 parent 6fec2c6 commit 7023b74

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

.vscode/tasks.json

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
// Available variables which can be used inside of strings.
2+
// ${workspaceRoot}: the root folder of the team
3+
// ${file}: the current opened file
4+
// ${fileBasename}: the current opened file's basename
5+
// ${fileDirname}: the current opened file's dirname
6+
// ${fileExtname}: the current opened file's extension
7+
// ${cwd}: the current working directory of the spawned process
8+
9+
{
10+
// See https://go.microsoft.com/fwlink/?LinkId=733558
11+
// for the documentation about the tasks.json format
12+
"version": "2.0.0",
13+
"tasks": [
14+
{
15+
"taskName": "build",
16+
"type": "shell",
17+
"command": "time go build .",
18+
"problemMatcher": [
19+
"$go"
20+
],
21+
"group": {
22+
"kind": "build",
23+
"isDefault": true
24+
},
25+
"presentation": {
26+
"echo": true,
27+
"reveal": "silent",
28+
"focus": true,
29+
"panel": "shared"
30+
}
31+
},
32+
{
33+
"taskName": "build.arches",
34+
"type": "shell",
35+
"command": "make build.arches",
36+
"problemMatcher": [
37+
"$go"
38+
],
39+
"group": "build",
40+
"presentation": {
41+
"echo": true,
42+
"reveal": "always",
43+
"focus": true,
44+
"panel": "shared"
45+
}
46+
},
47+
{
48+
"taskName": "test",
49+
"command": "time go test -v .",
50+
"type": "shell",
51+
"group": {
52+
"kind": "test",
53+
"isDefault": true
54+
},
55+
"problemMatcher": [
56+
"$go"
57+
],
58+
"presentation": {
59+
"echo": true,
60+
"reveal": "always",
61+
"focus": true,
62+
"panel": "shared"
63+
}
64+
}
65+
]
66+
}

0 commit comments

Comments
 (0)