From 19efeb1b12fcdbd4df3e378ea8faaacdb8fde2cb Mon Sep 17 00:00:00 2001 From: Daniel Espendiller Date: Mon, 20 May 2024 14:52:56 +0200 Subject: [PATCH] reduce "search everywhere" route target to be unique --- .../RouteUrlMatcherSymbolContributor.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/java/fr/adrienbrault/idea/symfony2plugin/navigation/RouteUrlMatcherSymbolContributor.java b/src/main/java/fr/adrienbrault/idea/symfony2plugin/navigation/RouteUrlMatcherSymbolContributor.java index e1c753b1e..e1a62a090 100644 --- a/src/main/java/fr/adrienbrault/idea/symfony2plugin/navigation/RouteUrlMatcherSymbolContributor.java +++ b/src/main/java/fr/adrienbrault/idea/symfony2plugin/navigation/RouteUrlMatcherSymbolContributor.java @@ -17,6 +17,9 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; +import java.util.HashSet; +import java.util.Set; + /** * @author Daniel Espendiller */ @@ -46,6 +49,8 @@ public void processElementsWithName(@NotNull String name, @NotNull Processor targets = new HashSet<>(); + for (Pair entry : RouteHelper.getMethodsForPathWithPlaceholderMatchRoutes(project, name)) { Route route = entry.getFirst(); @@ -54,8 +59,14 @@ public void processElementsWithName(@NotNull String name, @NotNull Processor