mirror of
https://github.com/hanzoai/visor.git
synced 2026-09-24 17:04:14 +00:00
- Adds a gen_compile_commands.py script to generate a `compile_commands.json` for clangd, similar to Linux's `scripts/clang-tools/gen_compile_commands.py` - Configures the dev container to generate the database before the editor is opened - Adds `clangd` vscode extension to the dev container (and installs `clangd` in the default image) - Updates CONTRIBUTING.md with instructions for generating a `compile_commands.json` database when *not* using a dev container Also switches to a less confusing link for the Dev Containers extension.
27 lines
783 B
JSON
27 lines
783 B
JSON
{
|
|
"dockerFile": "images/default/Dockerfile",
|
|
"overrideCommand": true,
|
|
"postStartCommand": "tools/devcontainer-init.sh",
|
|
"waitFor": "postStartCommand",
|
|
"mounts": [
|
|
"source=/var/run/docker.sock,target=/var/run/docker-host.sock,type=bind"
|
|
],
|
|
"runArgs": [
|
|
"--cap-add=SYS_PTRACE",
|
|
"--security-opt",
|
|
"seccomp=unconfined"
|
|
],
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"bazelbuild.vscode-bazel",
|
|
"golang.go",
|
|
"llvm-vs-code-extensions.vscode-clangd"
|
|
],
|
|
"settings": {
|
|
"go.goroot": "${workspaceFolder}/bazel-${workspaceFolderBasename}/external/rules_go++go_sdk+main___download_0/"
|
|
}
|
|
}
|
|
}
|
|
}
|