mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
simpler code to avoid performance regression (IDEA-192192)
This commit is contained in:
@@ -302,9 +302,11 @@ public class FileBasedIndexImpl extends FileBasedIndex implements BaseComponent,
|
||||
@Override
|
||||
public void requestReindex(@NotNull final VirtualFile file) {
|
||||
((GistManagerImpl)GistManager.getInstance()).invalidateData();
|
||||
// this is the same vfs event handling sequence that is produces after events of FileContentUtilCore.reparseFiles
|
||||
myChangedFilesCollector.invalidateIndicesRecursively(file, false);
|
||||
myChangedFilesCollector.buildIndicesForFileRecursively(file, false);
|
||||
// todo: this is the same vfs event handling sequence that is produces after events of FileContentUtilCore.reparseFiles
|
||||
// but it is more costly than current code, see IDEA-192192
|
||||
//myChangedFilesCollector.invalidateIndicesRecursively(file, false);
|
||||
//myChangedFilesCollector.buildIndicesForFileRecursively(file, false);
|
||||
myChangedFilesCollector.invalidateIndicesRecursively(file, true);
|
||||
if (myInitialized) myChangedFilesCollector.ensureUpToDateAsync();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user