Skip to content

Commit 75226fc

Browse files
author
Shyim
committed
Add class name autocompletion to new service definition
1 parent 21f9b22 commit 75226fc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/fr/adrienbrault/idea/symfony2plugin/completion/xml/XmlGotoCompletionRegistrar.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,12 @@ public void getLookupElements(@NotNull GotoCompletionProviderLookupArguments arg
192192
.create(ServiceUtil.getServiceNameForClass(getProject(), aClass))
193193
.withIcon(Symfony2Icons.SERVICE);
194194

195+
LookupElementBuilder lookupElementWithClassName = LookupElementBuilder
196+
.create(aClass)
197+
.withIcon(Symfony2Icons.SERVICE);
198+
195199
arguments.getResultSet().addElement(lookupElement);
200+
arguments.getResultSet().addElement(lookupElementWithClassName);
196201
}
197202
}
198203
}

0 commit comments

Comments
 (0)