File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ phases:
26
26
- |
27
27
if [ "${TARGET_EXTENSION}" = "amazonq" ]; then
28
28
extension_name="amazonwebservices.amazon-q-vscode"
29
- beta_version="1.44 .0"
29
+ beta_version="@1.43 .0"
30
30
elif [ "${TARGET_EXTENSION}" = "toolkit" ]; then
31
31
extension_name="amazonwebservices.aws-toolkit-vscode"
32
- beta_version="3.43 .0"
32
+ beta_version="@3.42 .0"
33
33
else
34
34
echo checkmarketplace: "Unknown TARGET_EXTENSION: ${TARGET_EXTENSION}"
35
35
exit 1
@@ -38,16 +38,14 @@ phases:
38
38
- |
39
39
if [ "$STAGE" != "prod" ]; then
40
40
echo "checkmarketplace: Non-production stage detected. Installing beta version "${beta_version}"."
41
- code_command="code-insiders"
42
41
else
43
- code_command="code"
44
42
beta_version=""
45
43
fi
46
44
# keep reinstalling the extension until the desired version is updated. Otherwise fail on codebuild timeout (1 hour).
47
45
- |
48
46
while true; do
49
- $code_command --uninstall-extension "${extension_name}" --no-sandbox --user-data-dir /tmp/vscode
50
- $code_command --install-extension "${extension_name}${beta_version}" --no-sandbox --user-data-dir /tmp/vscode
47
+ code --uninstall-extension "${extension_name}" --no-sandbox --user-data-dir /tmp/vscode
48
+ code --install-extension "${extension_name}${beta_version}" --no-sandbox --user-data-dir /tmp/vscode
51
49
cur_version=$(code --list-extensions --show-versions --no-sandbox --user-data-dir /tmp/vscode | grep ${extension_name} | cut -d'@' -f2)
52
50
if [ "${cur_version}" = "${VERSION}" ]; then
53
51
echo "checkmarketplace: Extension ${extension_name} is updated to version '${cur_version}.'"
You can’t perform that action at this time.
0 commit comments