mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Use mightBeReplacedByDetectedFileType where applicable
GitOrigin-RevId: 545a828eeef5fe4a5bac5c36408fbabb749c75c9
This commit is contained in:
committed by
intellij-monorepo-bot
parent
fb93870b39
commit
01ccf8e371
+1
-1
@@ -1092,7 +1092,7 @@ public class FileTypeManagerImpl extends FileTypeManagerEx implements Persistent
|
||||
|
||||
@Override
|
||||
public boolean isFileOfType(@NotNull VirtualFile file, @NotNull FileType type) {
|
||||
if (type instanceof PlainTextLikeFileType || type.equals(UnknownFileType.INSTANCE)) {
|
||||
if (mightBeReplacedByDetectedFileType(type) || type.equals(UnknownFileType.INSTANCE)) {
|
||||
// a file has unknown file type if none of file type detectors matched it
|
||||
// for plain text file type, we run file type detection based on content
|
||||
|
||||
|
||||
Reference in New Issue
Block a user