Ignore usages in XML
This commit is contained in:
+3
@@ -18,6 +18,7 @@ package org.jetbrains.kotlin.idea.search.usagesSearch
|
||||
|
||||
import com.intellij.ide.highlighter.JavaFileType
|
||||
import com.intellij.lang.java.JavaLanguage
|
||||
import com.intellij.lang.xml.XMLLanguage
|
||||
import com.intellij.openapi.application.ApplicationManager
|
||||
import com.intellij.psi.*
|
||||
import com.intellij.psi.search.*
|
||||
@@ -306,6 +307,8 @@ private class Processor(
|
||||
|
||||
JavaLanguage.INSTANCE -> processJavaDataClassUsage(element)
|
||||
|
||||
XMLLanguage.INSTANCE -> true // ignore usages in XML - they don't affect us
|
||||
|
||||
else -> false // we don't know anything about usages in other languages - so we downgrade to slow algorithm in this case
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
<tag xxx="pack.A"> <!--usage in xml-->
|
||||
</tag>
|
||||
Reference in New Issue
Block a user