refactor IdentifierHighlighterPassFactory.doWithHighlightingEnabled to prepare moving identifier highlighting out of a highlighting pass

GitOrigin-RevId: fee9ed0e4cf10d4ade320358c58ebd1ad3d8e403
This commit is contained in:
Alexey Kudravtsev
2020-07-11 19:56:13 +03:00
committed by intellij-monorepo-bot
parent eed448e13b
commit 46b251a8f1
7 changed files with 53 additions and 52 deletions

View File

@@ -16,7 +16,8 @@ class PluginXmlIdentifierHighlightingTest extends LightJavaCodeInsightFixtureTes
}
void 'test ep references'() {
myFixture.configureByText 'plugin.xml', '''\
IdentifierHighlighterPassFactory.doWithHighlightingEnabled(getProject(), getTestRootDisposable()) {
myFixture.configureByText 'plugin.xml', '''\
<idea-plugin>
<extensionPoints>
<extensionPoint name="foo<caret>.bar"/>
@@ -26,7 +27,6 @@ class PluginXmlIdentifierHighlightingTest extends LightJavaCodeInsightFixtureTes
</extensions>
</idea-plugin>
'''
IdentifierHighlighterPassFactory.doWithHighlightingEnabled {
def infos = myFixture.doHighlighting()
assert infos.findAll {
it.severity == HighlightInfoType.ELEMENT_UNDER_CARET_SEVERITY