22 "version" : " 2.0.0" ,
33 "tasks" : [
44 {
5- "label" : " Bazel Build (Debug)" ,
5+ "label" : " Bazel Run (Debug)" ,
66 "type" : " shell" ,
77 "command" : " bazel run ${relativeFileDirname}:${fileBasenameNoExtension} -c dbg --spawn_strategy=local" ,
88 "group" : " build"
99 },
10+ {
11+ "label" : " Bazel Build (Debug)" ,
12+ "type" : " shell" ,
13+ "command" : " bazel build ${relativeFileDirname}:${fileBasenameNoExtension} -c dbg" ,
14+ "group" : " build"
15+ },
1016 {
1117 "label" : " Bazel Build" ,
1218 "type" : " shell" ,
2632 "group" : " build"
2733 },
2834 {
29- "label" : " C/C++: gcc-11 Aktive Datei kompilieren " ,
35+ "label" : " Bazel Refresh Compile Commands " ,
3036 "type" : " shell" ,
31- "command" : " /opt/homebrew/bin/gcc-11" ,
32- "args" : [
33- " -fdiagnostics-color=always" ,
34- " -g" ,
35- " ${file}" ,
36- " -o" ,
37- " ${fileDirname}/${fileBasenameNoExtension}"
38- ],
39- "options" : {
40- "cwd" : " ${fileDirname}"
41- },
42- "problemMatcher" : [
43- " $gcc"
44- ],
45- "group" : {
46- "kind" : " build" ,
47- "isDefault" : true
48- },
37+ "command" : " bazel run //:refresh_compile_commands"
4938 },
5039 {
40+ "label" : " Bazel Coverage HTML" ,
5141 "type" : " shell" ,
52- "label" : " C: clang build active file" ,
53- "command" : " /usr/bin/clang" ,
54- "args" : [
55- " -std=c11" ,
56- " -stdlib=libstdc++" ,
57- " -g" ,
58- " ${file}" ,
59- " -o" ,
60- " ${fileDirname}/${fileBasenameNoExtension}"
61- ],
62- "options" : {
63- "cwd" : " ${workspaceFolder}"
64- },
65- "problemMatcher" : [
66- " $gcc"
67- ],
68- "group" : {
69- "kind" : " build" ,
70- "isDefault" : true
71- }
42+ "command" : " bazel run //:coverage_html"
7243 },
7344 {
45+ "label" : " Bazel Format" ,
7446 "type" : " shell" ,
75- "label" : " C++: clang++ build active file" ,
76- "command" : " /usr/bin/clang++" ,
77- "args" : [
78- " -std=c++17" ,
79- " -stdlib=libc++" ,
80- " -g" ,
81- " ${file}" ,
82- " -o" ,
83- " ${fileDirname}/${fileBasenameNoExtension}"
84- ],
85- "options" : {
86- "cwd" : " ${workspaceFolder}"
87- },
88- "problemMatcher" : [
89- " $gcc"
90- ],
91- "group" : {
92- "kind" : " build" ,
93- "isDefault" : true
94- }
47+ "command" : " bazel run //tools/format:format"
9548 }
9649 ]
9750}
0 commit comments