mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
RUBY-25247 sort help commands in run anything dialog
This makes it easier to quickly scan the help list and find a specific command. GitOrigin-RevId: f8bb4129e2032e8f54d81277f15eed0bb867b121
This commit is contained in:
committed by
intellij-monorepo-bot
parent
876dd0d8b2
commit
7d310b15ed
+2
@@ -9,6 +9,7 @@ import com.intellij.util.containers.ContainerUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.stream.Collectors;
|
||||
@@ -59,6 +60,7 @@ public class RunAnythingHelpGroup<P extends RunAnythingProvider> extends RunAnyt
|
||||
.stream()
|
||||
.map(provider -> provider.getHelpItem(dataContext))
|
||||
.filter(Objects::nonNull)
|
||||
.sorted(Comparator.comparing(RunAnythingItem::getCommand))
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user