mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
optimization: do not encode whole file content to bytes on reparse
This commit is contained in:
@@ -170,7 +170,7 @@ public class PythonLanguageLevelPusher implements FilePropertyPusher<LanguageLev
|
||||
}
|
||||
|
||||
private static void setNoSizeLimitRecursive(VirtualFile file) {
|
||||
file.putUserData(SingleRootFileViewProvider.ourNoSizeLimitKey, Boolean.TRUE);
|
||||
SingleRootFileViewProvider.doNotCheckFileSizeLimit(file);
|
||||
for (VirtualFile child : file.getChildren()) {
|
||||
setNoSizeLimitRecursive(child);
|
||||
}
|
||||
@@ -180,4 +180,4 @@ public class PythonLanguageLevelPusher implements FilePropertyPusher<LanguageLev
|
||||
FORCE_LANGUAGE_LEVEL = languageLevel;
|
||||
pushLanguageLevel(project);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user