From 1446d3c942a2fce05c5749c45cc6f29ada704b03 Mon Sep 17 00:00:00 2001 From: Tony Grosinger Date: Tue, 6 Dec 2022 08:35:43 -0800 Subject: [PATCH] Add a devcontainer definition Utilizes the Dockerfile created in the previous commit. --- .devcontainer/devcontainer.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..21d0ec5 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,24 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: +// https://github.com/microsoft/vscode-dev-containers/tree/v0.241.1/containers/go +{ + "build": { + "dockerfile": "../Dockerfile", + "target": "dev" + }, + // Configure tool-specific properties. + "customizations": { + // Configure properties specific to VS Code. + "vscode": { + // Set *default* container specific settings.json values on container create. + "settings": { + "go.toolsManagement.checkForUpdates": "local", + "go.useLanguageServer": true, + "go.gopath": "/go" + }, + // Add the IDs of extensions you want installed when the container is created. + "extensions": [ + "golang.Go" + ] + } + } +} \ No newline at end of file