From 5a52882537fb53c5046ee0fb012bbe4e5f3eadcf Mon Sep 17 00:00:00 2001 From: Sougandh S Date: Mon, 17 Aug 2026 13:43:50 +0530 Subject: [PATCH] Fix Quick Group Launch enabled for prototype selections --- .../ui/launchConfigurations/QuickGroupLaunch.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/QuickGroupLaunch.java b/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/QuickGroupLaunch.java index 1901ad797ba..6ae5af20031 100644 --- a/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/QuickGroupLaunch.java +++ b/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/QuickGroupLaunch.java @@ -81,7 +81,7 @@ protected void performAction() { IStructuredSelection selection = getStructuredSelection(); for (Object selected : selection) { - if (selected instanceof ILaunchConfiguration launchConfig) { + if (selected instanceof ILaunchConfiguration launchConfig && !launchConfig.isPrototype()) { GroupLaunchElement element = new GroupLaunchElement(); element.index = input.size(); element.enabled = true; @@ -116,7 +116,15 @@ protected void performAction() { */ @Override protected boolean updateSelection(IStructuredSelection selection) { - return selection.size() > 1; + if (selection.size() <= 1) { + return false; + } + for (Object selected : selection) { + if (selected instanceof ILaunchConfiguration launchConfig && launchConfig.isPrototype()) { + return false; + } + } + return true; } @Override