Skip to content

Commit 319d697

Browse files
committed
Update Codespaces settings
1 parent 70f9bc8 commit 319d697

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# [Choice] Go version: 1, 1.16, 1.17
2-
ARG VARIANT="1.18"
2+
ARG VARIANT="1.20"
33
FROM mcr.microsoft.com/vscode/devcontainers/go:0-${VARIANT}
44

55
# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10

.devcontainer/devcontainer.json

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"build": {
44
"dockerfile": "Dockerfile",
55
"args": {
6-
"VARIANT": "1.19",
6+
"VARIANT": "1.20",
77
"NODE_VERSION": "lts/*"
88
}
99
},
@@ -12,20 +12,24 @@
1212
"--security-opt",
1313
"seccomp=unconfined"
1414
],
15-
"settings": {
16-
"go.toolsManagement.checkForUpdates": "local",
17-
"go.useLanguageServer": true,
18-
"go.gopath": "/go",
19-
"go.goroot": "/usr/local/go"
15+
"customizations": {
16+
"vscode": {
17+
"settings": {
18+
"go.toolsManagement.checkForUpdates": "local",
19+
"go.useLanguageServer": true,
20+
"go.gopath": "/go",
21+
"go.goroot": "/usr/local/go"
22+
},
23+
"extensions": [
24+
"golang.Go",
25+
"dracula-theme.theme-dracula"
26+
]
27+
}
2028
},
2129
"features": {
2230
// https://github.com/microsoft/vscode-dev-containers/tree/main/containers/docker-from-docker#using-bind-mounts-when-working-with-docker-inside-the-container
2331
"docker-in-docker": "20.10"
2432
},
25-
"extensions": [
26-
"golang.Go",
27-
"dracula-theme.theme-dracula"
28-
],
2933
// "forwardPorts": [],
3034
"postCreateCommand": "go version ; go install honnef.co/go/tools/cmd/staticcheck@latest; go install github.com/go-task/task/v3/cmd/task@latest",
3135
"remoteUser": "vscode"

0 commit comments

Comments
 (0)