File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,11 +9,29 @@ conjunction with [bazel-stack-vscode](https://marketplace.visualstudio.com/items
99
1010This extension provides a command ` Bazel/C++: Generate Compilation Database `
1111(` bsv.cc.compdb.generate ` ) that produces a file
12- ` ${workspaceDIrectory}/compile_commmands.json ` .
12+ ` ${workspaceDirectory}/compile_commmands.json ` that assists with Intellisense
13+ for Bazel/C++ repositories.
1314
1415To setup, edit your workspace settings (search for ` bsv.cc.compdb.targets ` ) and
1516configure a list of bazel labels for the ` cc_binary ` or ` cc_library ` targets
1617you'd like to be indexed. The tool will then produce a command set for the
1718transitive closure of those top-level targets.
1819
19- Works best in conjuction with < https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-clangd > .
20+ This can be added to your ` .vscode/settings.json ` and checked-in to VCS as
21+ follows:
22+
23+ ``` json
24+ {
25+ ...
26+ "bsv.cc.compdb.targets" : [
27+ " //app/foo:foo_binary" ,
28+ " //app/bar:bar_binary" ,
29+ " //app/baz:baz_binary" ,
30+ ]
31+ }
32+ ```
33+
34+ Works best in conjuction with
35+ < https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-clangd > .
36+
37+ This feature was derived from < https://github.com/grailbio/bazel-compilation-database > .
You can’t perform that action at this time.
0 commit comments