Skip to content

Commit fda2956

Browse files
FrankLiu4138claude
andcommitted
fix(upgrade): always call checkOrPromptToEnableAppModExtension after install/update
Consolidate the install path — both fresh install and version upgrade now go through the same checkOrPromptToEnableAppModExtension flow. Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
1 parent 7cd5518 commit fda2956

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.squire/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Ignore everything in .squire/ except this file
2+
*
3+
!.gitignore

src/upgrade/utility.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,11 @@ export async function checkOrInstallAppModExtensionForUpgrade(
169169
installedVersion,
170170
minRequiredVersion: Upgrade.MIN_APPMOD_VERSION,
171171
});
172-
await commands.executeCommand("workbench.extensions.installExtension", ExtensionName.APP_MODERNIZATION_FOR_JAVA);
173-
} else {
174-
await commands.executeCommand("workbench.extensions.installExtension", ExtensionName.APP_MODERNIZATION_FOR_JAVA);
175-
await checkOrPromptToEnableAppModExtension("upgrade");
176172
}
177173

174+
await commands.executeCommand("workbench.extensions.installExtension", ExtensionName.APP_MODERNIZATION_FOR_JAVA);
175+
await checkOrPromptToEnableAppModExtension("upgrade");
176+
178177
// Verify gotoAgentMode command is available after install/update
179178
await waitForCommand(Commands.GOTO_AGENT_MODE);
180179
}

0 commit comments

Comments
 (0)