diff --git a/src/main/java/de/espend/idea/vuejs/linemarker/TemplateComponentLineMarker.java b/src/main/java/de/espend/idea/vuejs/linemarker/TemplateComponentLineMarker.java index 6d688a9..3f20611 100644 --- a/src/main/java/de/espend/idea/vuejs/linemarker/TemplateComponentLineMarker.java +++ b/src/main/java/de/espend/idea/vuejs/linemarker/TemplateComponentLineMarker.java @@ -41,6 +41,12 @@ public void collectSlowLineMarkers(@NotNull List psiElemen // // if (psiElement.getNode().getElementType() == XmlTokenType.XML_NAME && psiElement.getParent() instanceof XmlTag xmlTag) { + PsiElement prevSibling = psiElement.getPrevSibling(); + if (prevSibling.getNode().getElementType() == XmlTokenType.XML_END_TAG_START) { + continue; + } + + if (components == null) { components = VueJsUtil.getLocalFileScopeComponents(containingFile); } @@ -48,7 +54,7 @@ public void collectSlowLineMarkers(@NotNull List psiElemen String componentTag = xmlTag.getName(); if (components.containsKey(componentTag)) { NavigationGutterIconBuilder builder = NavigationGutterIconBuilder.create(VueJsIcons.VUE_JS_TOOLBOX) - .setTooltipText("Vue.js Toolbox: Navigate to Vue.js file") + .setTooltipText("Vue.js Toolbox: Navigate to file") .setTargets(NotNullLazyValue.lazy(new LocalFileComponentTargetSupplier(components, componentTag, psiElement))); lineMarkerInfos.add(builder.createLineMarkerInfo(psiElement));