From 51788122d97c393e900d8cf9d852d0d5c9f5d6e3 Mon Sep 17 00:00:00 2001 From: Dave Jansen Date: Tue, 7 Dec 2021 10:43:16 +0900 Subject: [PATCH] Re-add missing devcontainer.json (made a Git oopsie yesterday) --- .devcontainer/devcontainer.json | 51 +++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..3823ec2 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,51 @@ +// 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.205.2/containers/dotnet +{ + "name": "Stardew Valley Mod Devcontainer", + "build": { + "dockerfile": "Dockerfile", + "args": { + // Update 'VARIANT' to pick a .NET Core version: 3.1, 5.0, 6.0 + // Append -bullseye or -focal to pin to an OS version. + "VARIANT": "5.0", + // Options + "NODE_VERSION": "lts/*" + } + }, + + "remoteEnv": { + "LOCAL_WORKSPACE_FOLDER": "/workspaces/${localWorkspaceFolderBasename}" + }, + + // For SELinux enabled systems (ie. Fedora) we need to mount the volume with the :Z option + // See https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label + "workspaceMount": "", + "runArgs": [ + "--volume=${localWorkspaceFolder}:/workspaces/${localWorkspaceFolderBasename}:Z", + "--volume=${localWorkspaceFolder}/_gamedirref:/workspaces/stardew-valley-game:z" + ], + + // Set *default* container specific settings.json values on container create. + "settings": { + "omnisharp.useGlobalMono": "always" + }, + + // Add the IDs of extensions you want installed when the container is created. + "extensions": [ + "ms-dotnettools.csharp", + "jchannon.csharpextensions", + "ms-vscode.mono-debug" + ], + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [5000, 5001], + + // Use 'postCreateCommand' to run commands after the container is created. + "postCreateCommand": "dotnet restore src", + + // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. + "remoteUser": "vscode", + "features": { + "git": "latest" + } +}