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.
40 lines
968 B
JSON
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"
|
|
}
|