mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Project View: do not freeze on large files in split mode with Structure
This commit is contained in:
@@ -39,6 +39,7 @@ import com.intellij.openapi.util.Comparing;
|
||||
import com.intellij.openapi.util.Disposer;
|
||||
import com.intellij.openapi.util.Pair;
|
||||
import com.intellij.openapi.util.registry.Registry;
|
||||
import com.intellij.openapi.vfs.PersistentFSConstants;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.openapi.wm.IdeFocusManager;
|
||||
import com.intellij.openapi.wm.ToolWindow;
|
||||
@@ -391,6 +392,8 @@ public class StructureViewWrapperImpl implements StructureViewWrapper, Disposabl
|
||||
|
||||
@Nullable
|
||||
private FileEditor createTempFileEditor(VirtualFile file) {
|
||||
if (file.getLength() > PersistentFSConstants.getMaxIntellisenseFileSize()) return null;
|
||||
|
||||
FileEditorProviderManager editorProviderManager = FileEditorProviderManager.getInstance();
|
||||
final FileEditorProvider[] providers = editorProviderManager.getProviders(myProject, file);
|
||||
for (FileEditorProvider provider : providers) {
|
||||
|
||||
Reference in New Issue
Block a user