Files
visor/.vscode/settings.json
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

40 lines
968 B
JSON

{
"files.associations": {
".clangd": "yaml"
},
"clangd.arguments": [
"--enable-config"
],
"go.toolsEnvVars": {
"GOPACKAGESDRIVER": "${workspaceFolder}/tools/gopackagesdriver.sh"
},
"gopls": {
"build.workspaceFiles": [
"**/BUILD",
"**/*.{bzl,bazel}"
],
"build.directoryFilters": [
"-bazel-bin",
"-bazel-out",
"-bazel-testlogs",
"-bazel-gvisor"
],
"formatting.local": "gvisor.dev/gvisor",
"ui.codelenses": {
"gc_details": false,
"regenerate_cgo": false,
"generate": false,
"test": false,
"tidy": false,
"upgrade_dependency": false,
"vendor": false
}
},
"go.enableCodeLens": {
"runtest": false
},
"go.useLanguageServer": true,
"go.lintOnSave": "off",
"go.vetOnSave": "off"
}