File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 26
26
"type" : " shell" ,
27
27
"command" : " tools/vscode/refresh_compdb.sh" ,
28
28
"problemMatcher" : []
29
+ },
30
+ {
31
+ "label" : " Refresh Compilation Database Exclude Contrib" ,
32
+ "type" : " shell" ,
33
+ "command" : " EXCLUDE_CONTRIB=true tools/vscode/refresh_compdb.sh" ,
34
+ "problemMatcher" : []
29
35
}
30
36
]
31
37
}
Original file line number Diff line number Diff line change 5
5
bazel_or_isk=bazelisk
6
6
command -v bazelisk & > /dev/null || bazel_or_isk=bazel
7
7
8
+ [[ -z " ${EXCLUDE_CONTRIB} " ]] || opts=" --exclude_contrib"
9
+
8
10
# Setting TEST_TMPDIR here so the compdb headers won't be overwritten by another bazel run
9
- TEST_TMPDIR=${BUILD_DIR:-/ tmp} /envoy-compdb tools/gen_compilation_database.py --vscode --bazel=$bazel_or_isk --exclude_contrib
11
+ TEST_TMPDIR=${BUILD_DIR:-/ tmp} /envoy-compdb tools/gen_compilation_database.py --vscode --bazel=$bazel_or_isk ${opts}
10
12
11
13
# Kill clangd to reload the compilation database
12
14
pkill clangd || :
You can’t perform that action at this time.
0 commit comments