mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
better implementation for expression checking the skip-size-limit option
This commit is contained in:
@@ -253,7 +253,7 @@ public class SingleRootFileViewProvider extends UserDataHolderBase implements Fi
|
||||
}
|
||||
|
||||
public static boolean isTooLarge(final VirtualFile vFile) {
|
||||
if (vFile.getUserData(ourNoSizeLimitKey) != null) return false;
|
||||
if (Boolean.TRUE.equals(vFile.getUserData(ourNoSizeLimitKey))) return false;
|
||||
return fileSizeIsGreaterThan(vFile, PersistentFS.MAX_INTELLISENSE_FILESIZE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user