From b9f7e7e2d0e02270b6056c8127be1d0929352717 Mon Sep 17 00:00:00 2001 From: jasonviviano <83607984+jasonviviano@users.noreply.github.com> Date: Tue, 12 Mar 2024 13:37:06 -0400 Subject: [PATCH] Fixed outdated rad extension installation (#1082) Signed-off-by: jasonviviano <83607984+jasonviviano@users.noreply.github.com> Co-authored-by: Aaron Crawfis --- .devcontainer/devcontainer.json | 3 +-- .devcontainer/on-create.sh | 19 ------------------- 2 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 .devcontainer/on-create.sh diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 028ff1f0e..cf4b6b45a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -14,7 +14,6 @@ "settings": { "terminal.integrated.defaultProfile.linux": "bash" }, - "onCreateCommand": "bash ./.devcontainer/on-create.sh", "postCreateCommand": "bash .devcontainer/post-create.sh", "customizations": { "codespaces": { @@ -31,7 +30,7 @@ "settings": {}, "extensions": [ "GitHub.copilot", - "/tmp/rad-vscode-bicep.vsix" + "ms-azuretools.rad-vscode-bicep" ] } }, diff --git a/.devcontainer/on-create.sh b/.devcontainer/on-create.sh deleted file mode 100644 index 51a216c2f..000000000 --- a/.devcontainer/on-create.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -## Get branch Rad Bicep version number -CURRENT_BRANCH=$(git branch --show-current) - -if [ "$CURRENT_BRANCH" = "edge" ]; then - RADIUS_VERSION=edge -else - ## If CURRENT_BRANCH matches a regex of the form "v0.20", set RADIUS_VERSION to the matching string minus the "v" - if [[ "$CURRENT_BRANCH" =~ ^v[0-9]+\.[0-9]+$ ]]; then - RADIUS_VERSION=${CURRENT_BRANCH:1} - else - ## Otherwise, set RADIUS_VERSION to "edge" - RADIUS_VERSION=edge - fi -fi - -## Download Bicep extension -curl https://get.radapp.dev/tools/vscode-extensibility/$RADIUS_VERSION/rad-vscode-bicep.vsix --output /tmp/rad-vscode-bicep.vsix