Files
visor/.devcontainer.json
T
Ryan El Kochta beddb0f0ef make clangd work out of the box
- 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.
2026-07-28 17:28:28 -07:00

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/"
}
}
}
}