From 5a29645ad64881c3a7264d2b647e29e54fd04e1d Mon Sep 17 00:00:00 2001 From: "Brandon Waterloo [MSFT]" <36966225+bwateratmsft@users.noreply.github.com> Date: Wed, 15 Jan 2025 13:26:53 -0500 Subject: [PATCH] Fix over-prompting for subset of services (#4470) --- src/commands/compose/compose.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/compose/compose.ts b/src/commands/compose/compose.ts index c6efb57298..b85ce40047 100644 --- a/src/commands/compose/compose.ts +++ b/src/commands/compose/compose.ts @@ -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); }