From cfa85ad9fd59e7988beb8a1ce829f0ea7a8a73ca Mon Sep 17 00:00:00 2001 From: Shawn Melton <11204251+wsmelton@users.noreply.github.com> Date: Sun, 30 May 2021 14:01:53 -0500 Subject: [PATCH] adding devcontainer --- .devcontainer/devcontainer.json | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..f43fd44f --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,28 @@ +// 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.180.0/containers/powershell +{ + "name": "tss", + "image": "mcr.microsoft.com/powershell:latest", + // Set *default* container specific settings.json values on container create. + "settings": { + "terminal.integrated.profiles.linux": { + "pwsh": { + "path": "pwsh", + "icon": "terminal-powershell" + } + }, + "terminal.integrated.defaultProfile.linux": "pwsh" + }, + // Add the IDs of extensions you want installed when the container is created. + "extensions": [ + "ms-vscode.powershell", + "usernamehw.errorlens", + "streetsidesoftware.code-spell-checker", + "github.vscode-pull-request-github", + "oderwat.indent-rainbow", + "2gua.rainbow-brackets", + "vscode-icons-team.vscode-icons" + ], + // Uncomment the next line to run commands after the container is created. This gets run in bash which is why we call `pwsh`. + "postCreateCommand": "apt-get update && apt-get install -y git && /opt/microsoft/powershell/7/pwsh -c Install-Module Pester,PSScriptAnalyzer -Force" +} \ No newline at end of file