[plugins] IJPL-165544 Advertise plugins supporting ANSI codes in .log in editor

Only load the first 1000 symbols for ANSI detection

GitOrigin-RevId: e0f6b25eee000d6e879dab085d8e8e303ce06a5a
This commit is contained in:
Yuriy Artamonov
2025-04-12 15:04:29 +00:00
committed by intellij-monorepo-bot
parent 041c2b6f8e
commit ee1b138d8c
@@ -29,7 +29,7 @@ class AnsiHighlighterDetector : FileHandlerFeatureDetector {
if (fileType.isBinary) return false
if (fileType !is PlainTextLikeFileType) return false
val logString = LoadTextUtil.loadText(file)
val logString = LoadTextUtil.loadText(file, 1000)
return ansiRegex.containsMatchIn(logString)
}
}