diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/QuickAccessContents.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/QuickAccessContents.java index 9dc9336f3c2..48d742a6547 100644 --- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/QuickAccessContents.java +++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/QuickAccessContents.java @@ -540,6 +540,14 @@ public IStatus runInUIThread(IProgressMonitor monitor) { QuickAccessEntry.MATCH_PERFECT))); } res.addAll(entriesPerProvider.values()); + + // if one category provides the same single entry like "previous", we can avoid + // showing the duplicate second list + if (res.size() >= 2 && res.get(0).size() == 1 && res.get(1).size() == 1 + && (res.get(0).get(0).element.equals(res.get(1).get(0).element))) { + res.remove(1); + } + return (List[]) res.toArray(new List[res.size()]); } diff --git a/bundles/org.eclipse.ui.workbench/META-INF/MANIFEST.MF b/bundles/org.eclipse.ui.workbench/META-INF/MANIFEST.MF index 91879e7d370..cf0b5f8680f 100644 --- a/bundles/org.eclipse.ui.workbench/META-INF/MANIFEST.MF +++ b/bundles/org.eclipse.ui.workbench/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.ui.workbench; singleton:=true -Bundle-Version: 3.131.0.lgc20240523-1900 +Bundle-Version: 3.131.0.lgc20240729-1900 Bundle-Activator: org.eclipse.ui.internal.WorkbenchPlugin Bundle-ActivationPolicy: lazy Bundle-Vendor: %providerName