Skip to content

Commit 5a29645

Browse files
authored
Fix over-prompting for subset of services (#4470)
1 parent d0a2744 commit 5a29645

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/commands/compose/compose.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ async function compose(context: IActionContext, commands: ('up' | 'down' | 'upSu
6666
if (!terminalCommand.args?.length) {
6767
// Add the service list if needed
6868
terminalCommand.command = await addServicesOrProfilesIfNeeded(context, folder, terminalCommand.command, preselectedServices, preselectedProfiles);
69-
} else {
69+
} else if (command === 'upSubset') {
70+
// If there are arguments, it means we're using a default command (based on the logic in selectCommandTemplate.ts)
71+
// So, we only want to add profile/service list for the upSubset command
7072
terminalCommand = await addDefaultCommandServicesOrProfilesIfNeeded(context, folder, terminalCommand, preselectedServices, preselectedProfiles);
7173
}
7274

0 commit comments

Comments
 (0)