Skip to content

Commit

Permalink
Fix over-prompting for subset of services (#4470)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwateratmsft authored Jan 15, 2025
1 parent d0a2744 commit 5a29645
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands/compose/compose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ async function compose(context: IActionContext, commands: ('up' | 'down' | 'upSu
if (!terminalCommand.args?.length) {
// Add the service list if needed
terminalCommand.command = await addServicesOrProfilesIfNeeded(context, folder, terminalCommand.command, preselectedServices, preselectedProfiles);
} else {
} else if (command === 'upSubset') {
// If there are arguments, it means we're using a default command (based on the logic in selectCommandTemplate.ts)
// So, we only want to add profile/service list for the upSubset command
terminalCommand = await addDefaultCommandServicesOrProfilesIfNeeded(context, folder, terminalCommand, preselectedServices, preselectedProfiles);
}

Expand Down

0 comments on commit 5a29645

Please sign in to comment.