[maven] IDEA-356183 log highlighting results

GitOrigin-RevId: 53a41a170254563fb5ac51310406d87b901aff2f
This commit is contained in:
Dmitry Kichinsky
2024-07-25 09:11:56 +02:00
committed by intellij-monorepo-bot
parent 0833d42781
commit 79a191364d

View File

@@ -571,7 +571,9 @@ abstract class MavenDomTestCase : MavenMultiVersionImportingTestCase() {
val content = String(file.contentsToByteArray())
MavenLog.LOG.warn("Checking highlighting in file $file:\n$content")
fixture.openFileInEditor(file)
val highlightingInfos = fixture.doHighlighting();
MavenLog.LOG.warn("Text in editor: ${fixture.editor.document.text}")
val highlightingInfos = fixture.doHighlighting()
MavenLog.LOG.warn("Highlighting results: ${highlightingInfos.joinToString { "\n${it.severity} ${it.description} (${it.startOffset}, ${it.endOffset})" }}")
assertHighlighting(highlightingInfos, *expectedHighlights)
}
}