mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
prefer non-qualified xml completion variants (IDEA-115355)
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package com.intellij.psi.impl.source.xml;
|
||||
|
||||
import com.intellij.codeInsight.completion.PrioritizedLookupElement;
|
||||
import com.intellij.codeInsight.completion.XmlTagInsertHandler;
|
||||
import com.intellij.codeInsight.lookup.LookupElement;
|
||||
import com.intellij.codeInsight.lookup.LookupElementBuilder;
|
||||
@@ -69,11 +70,10 @@ public class DefaultXmlTagNameProvider implements XmlTagNameProvider {
|
||||
lookupElement = lookupElement.withIcon(((PsiPresentableMetaData)descriptor).getIcon());
|
||||
}
|
||||
if (xmlExtension.useXmlTagInsertHandler()) {
|
||||
elements.add(lookupElement.withInsertHandler(XmlTagInsertHandler.INSTANCE));
|
||||
}
|
||||
else {
|
||||
elements.add(lookupElement);
|
||||
lookupElement = lookupElement.withInsertHandler(XmlTagInsertHandler.INSTANCE);
|
||||
}
|
||||
|
||||
elements.add(PrioritizedLookupElement.withPriority(lookupElement, separator > 0 ? 0 : 1));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user