mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
Fix: IDEA-67827 (Smarter completion of tags)
This commit is contained in:
@@ -290,7 +290,8 @@ public class XmlTagInsertHandler implements InsertHandler<LookupElement> {
|
||||
template.addTextSegment(tag instanceof HtmlTag ? ">" : "/>");
|
||||
}
|
||||
else {
|
||||
if (needAlLeastOneAttribute(tag) && WebEditorOptions.getInstance().isAutomaticallyStartAttribute() && tag.getAttributes().length == 0) {
|
||||
if (needAlLeastOneAttribute(tag) && WebEditorOptions.getInstance().isAutomaticallyStartAttribute() && tag.getAttributes().length == 0
|
||||
&& template.getSegmentsCount() == 0) {
|
||||
completeAttribute(template);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user