devcontainer: Add Golang extension automatically

When using devcontainers in VSCode, install the Go extension
automatically in the container.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
Paweł Gronowski 2024-03-01 14:50:36 +01:00
parent 137a9d6a4c
commit 12dea3fa9e
No known key found for this signature in database
GPG key ID: B85EFCFE26DEF92A

View file

@ -9,5 +9,13 @@
"workspaceMount": "source=${localWorkspaceFolder},target=/go/src/github.com/docker/docker,type=bind,consistency=cached",
"remoteUser": "root",
"runArgs": ["--privileged"]
"runArgs": ["--privileged"],
"customizations": {
"vscode": {
"extensions": [
"golang.go"
]
}
}
}