Skip to content

Commit 7ee3a49

Browse files
chore: update devcontainer to go1.20
1 parent 1b83c35 commit 7ee3a49

File tree

1 file changed

+46
-53
lines changed

1 file changed

+46
-53
lines changed

.devcontainer/devcontainer.json

+46-53
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@
88
// Update the VARIANT arg to pick a version of Go: 1, 1.16, 1.17
99
// Append -bullseye or -buster to pin to an OS version.
1010
// Use -bullseye variants on local arm64/Apple Silicon.
11-
"VARIANT": "1.19-bullseye",
11+
"VARIANT": "1.20-bullseye",
1212

1313
// Options:
14-
1514
"POSH_THEME": "/workspaces/oh-my-posh/themes/jandedobbeleer.omp.json",
1615

1716
// Override me with your own timezone:
@@ -26,59 +25,53 @@
2625
},
2726
"runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"],
2827

29-
// Set *default* container specific settings.json values on container create.
30-
"settings": {
31-
"go.toolsManagement.checkForUpdates": "local",
32-
"go.useLanguageServer": true,
33-
"go.gopath": "/go",
34-
"go.goroot": "/usr/local/go",
35-
"terminal.integrated.profiles.linux": {
36-
"bash": {
37-
"path": "bash"
38-
},
39-
"zsh": {
40-
"path": "zsh"
41-
},
42-
"fish": {
43-
"path": "fish"
28+
"customizations": {
29+
"vscode": {
30+
"settings": {
31+
"go.toolsManagement.checkForUpdates": "local",
32+
"go.useLanguageServer": true,
33+
"go.gopath": "/go",
34+
"go.goroot": "/usr/local/go",
35+
"terminal.integrated.profiles.linux": {
36+
"bash": {
37+
"path": "bash"
38+
},
39+
"zsh": {
40+
"path": "zsh"
41+
},
42+
"fish": {
43+
"path": "fish"
44+
},
45+
"tmux": {
46+
"path": "tmux",
47+
"icon": "terminal-tmux"
48+
},
49+
"pwsh": {
50+
"path": "pwsh",
51+
"icon": "terminal-powershell"
52+
}
53+
},
54+
"terminal.integrated.defaultProfile.linux": "pwsh",
55+
"terminal.integrated.defaultProfile.windows": "pwsh",
56+
"terminal.integrated.defaultProfile.osx": "pwsh",
57+
"tasks.statusbar.default.hide": true
4458
},
45-
"tmux": {
46-
"path": "tmux",
47-
"icon": "terminal-tmux"
48-
},
49-
"pwsh": {
50-
"path": "pwsh",
51-
"icon": "terminal-powershell"
52-
}
53-
},
54-
"terminal.integrated.defaultProfile.linux": "pwsh",
55-
"terminal.integrated.defaultProfile.windows": "pwsh",
56-
"terminal.integrated.defaultProfile.osx": "pwsh",
57-
"tasks.statusbar.default.hide": true
59+
"extensions": [
60+
"actboy168.tasks",
61+
"eamodio.gitlens",
62+
"bungcip.better-toml",
63+
"davidanson.vscode-markdownlint",
64+
"editorconfig.editorconfig",
65+
"esbenp.prettier-vscode",
66+
"github.vscode-pull-request-github",
67+
"golang.go",
68+
"ms-vscode.powershell",
69+
"redhat.vscode-yaml",
70+
"yzhang.markdown-all-in-one",
71+
"ms-azuretools.vscode-azurefunctions"
72+
]
73+
}
5874
},
59-
60-
// Add the IDs of extensions you want installed when the container is created.
61-
"extensions": [
62-
"actboy168.tasks",
63-
"eamodio.gitlens",
64-
"bungcip.better-toml",
65-
"davidanson.vscode-markdownlint",
66-
"editorconfig.editorconfig",
67-
"esbenp.prettier-vscode",
68-
"github.vscode-pull-request-github",
69-
"golang.go",
70-
"ms-vscode.powershell",
71-
"redhat.vscode-yaml",
72-
"yzhang.markdown-all-in-one",
73-
"ms-azuretools.vscode-azurefunctions"
74-
],
75-
76-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
77-
// "forwardPorts": [3000],
78-
79-
// Use 'postCreateCommand' to run commands after the container is created.
80-
// "postCreateCommand": "go version",
81-
8275
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
8376
"remoteUser": "vscode"
8477
}

0 commit comments

Comments
 (0)