From dc4d01590fbb33bf42fe0046b40f8a0e0bd11ee5 Mon Sep 17 00:00:00 2001 From: Justin Grote <15258962+JustinGrote@users.noreply.github.com.> Date: Wed, 14 May 2025 17:51:08 -0700 Subject: [PATCH 1/7] Initial Devcontainer --- .devcontainer/devcontainer.json | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000000..c724a8b064 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,27 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node +{ + "name": "PowerShell Extension", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm", + "features": { + "ghcr.io/devcontainers/features/dotnet:2": {}, + "ghcr.io/devcontainers/features/powershell:1": { + "version": "latest" + }, + "ghcr.io/devcontainers/features/git:1": {} + }, + "postCreateCommand": "git clone https://github.com/PowerShell/PowerShellEditorServices.git /workspaces/PowerShellEditorServices" + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "yarn install", + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} From a676d7997bad35cb5f211e5e1e8860d893da5e47 Mon Sep 17 00:00:00 2001 From: Justin Grote <15258962+JustinGrote@users.noreply.github.com.> Date: Thu, 15 May 2025 01:08:02 +0000 Subject: [PATCH 2/7] Switch to Dockerfile and dotnet image --- .devcontainer/Dockerfile | 14 ++++++++++++++ .devcontainer/devcontainer.json | 14 ++++++++------ 2 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 .devcontainer/Dockerfile diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000000..25a3d91ddb --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,14 @@ +# It's easier to restore node/typescript than dotnet, which is why we use this as the base +FROM mcr.microsoft.com/devcontainers/dotnet:9.0 + +# Install VSCode which includes the library prereqs to run vscode-test +RUN <