From 1c40f2e35dec66d7110fbf6d023690ecb2d6d8ae Mon Sep 17 00:00:00 2001 From: Chad Boyce Date: Sat, 9 Dec 2023 02:56:24 +0000 Subject: [PATCH] updated to match PR #18 --- .devcontainer/codespaces/devcontainer.json | 27 ++++++++++------------ .devcontainer/devcontainer.json | 23 +++++++++--------- 2 files changed, 24 insertions(+), 26 deletions(-) diff --git a/.devcontainer/codespaces/devcontainer.json b/.devcontainer/codespaces/devcontainer.json index 0902c12..7233020 100644 --- a/.devcontainer/codespaces/devcontainer.json +++ b/.devcontainer/codespaces/devcontainer.json @@ -4,31 +4,28 @@ "name": "devcontainer-codespaces", "dockerFile": "${localWorkspaceFolder}/src/Dockerfile", "context": "${localWorkspaceFolder}/src", - // run arguments passed to docker "runArgs": [ - "--security-opt", "label=disable" + "--security-opt", + "label=disable" ], - "containerEnv": { - // extensions to preload before other extensions + // extensions to preload before other extensions "PRELOAD_EXTENSIONS": "arrterian.nix-env-selector" }, - - // disable command overriding and updating remote user ID + // disable command overriding and updating remote user ID "overrideCommand": false, "userEnvProbe": "loginShell", "updateRemoteUserUID": false, - // build development environment on creation, make sure you already have shell.nix "onCreateCommand": "nix-shell --command 'echo done building nix dev environment'", - - // Add the IDs of extensions you want installed when the container is created. - "extensions": [ - // select nix environment - "arrterian.nix-env-selector" - ], - + "customizations": { + "vscode": { + "extensions": [ + "arrterian.nix-env-selector", + ] + } + }, // Use 'forwardPorts' to make a list of ports inside the container available locally. "forwardPorts": [] -} +} \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index f224d27..990fe65 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -5,17 +5,18 @@ "dockerComposeFile": "docker-compose.yml", "service": "dev", "workspaceFolder": "/workspace", - "userEnvProbe": "loginShell", "updateRemoteUserUID": false, - "onCreateCommand": "nix-shell --command 'echo done building nix dev environment'", - - "extensions": [ - "arrterian.nix-env-selector", - "jnoortheen.nix-ide", - "fsevenm.run-it-on", - "ms-azuretools.vscode-docker", - "yzhang.markdown-all-in-one" - ] -} + "customizations": { + "vscode": { + "extensions": [ + "arrterian.nix-env-selector", + "jnoortheen.nix-ide", + "fsevenm.run-it-on", + "ms-azuretools.vscode-docker", + "yzhang.markdown-all-in-one" + ] + } + } +} \ No newline at end of file