mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[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:
committed by
intellij-monorepo-bot
parent
041c2b6f8e
commit
ee1b138d8c
+1
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user