Skip to content

Commit

Permalink
Update devcontainer.json, improve default extensions/settings (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
KCarretto authored Sep 6, 2023
1 parent 6ed6428 commit 89096f6
Showing 1 changed file with 36 additions and 17 deletions.
53 changes: 36 additions & 17 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,42 @@
"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],

// Set *default* container specific settings.json values on container create.
"settings": {
// GO
"go.toolsManagement.checkForUpdates": "local",
"go.useLanguageServer": true,
"go.gopath": "/go",
"go.goroot": "/usr/local/go",

// Misc
"trailing-spaces.trimOnSave": true
},
"customizations": {
"vscode": {
"settings": {
// GO
"go.toolsManagement.checkForUpdates": "local",
"go.useLanguageServer": true,
"go.gopath": "/go",
"go.goroot": "/usr/local/go",

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"golang.Go",
"graphql.vscode-graphql",
"rust-lang.rust-analyzer"
],
// Formatting
"editor.formatOnSave": true,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,

// Misc
"vsicons.dontShowNewVersionMessage": true,
"workbench.iconTheme": "vscode-icons",
"git.autofetch": true
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"DavidAnson.vscode-markdownlint",
"golang.Go",
"graphql.vscode-graphql",
"GraphQL.vscode-graphql-syntax",
"HashiCorp.terraform",
"rust-lang.rust-analyzer",
"sourcegraph.sourcegraph",
"vscode-icons-team.vscode-icons",
"xaver.clang-format",
"zxh404.vscode-proto3"
]
}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"appPort": [
Expand All @@ -48,4 +67,4 @@
"mounts": [
"source=realm-bashhistory,target=/commandhistory,type=volume"
]
}
}

0 comments on commit 89096f6

Please sign in to comment.