mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
more logging
This commit is contained in:
+1
-1
@@ -206,7 +206,7 @@ public class FileTypeManagerImpl extends FileTypeManagerEx implements Persistent
|
||||
Collection<VirtualFile> files = ContainerUtil.map2Set(events, new Function<VFileEvent, VirtualFile>() {
|
||||
@Override
|
||||
public VirtualFile fun(VFileEvent event) {
|
||||
VirtualFile file = event instanceof VFileCreateEvent ? null : event.getFile();
|
||||
VirtualFile file = event instanceof VFileCreateEvent ? /* avoid expensive find child here */ null : event.getFile();
|
||||
return file != null && wasAutoDetectedBefore(file) && isDetectable(file) ? file : null;
|
||||
}
|
||||
});
|
||||
|
||||
+3
-3
@@ -350,11 +350,11 @@ public class FileTypesTest extends PlatformTestCase {
|
||||
|
||||
private void ensureRedetected(VirtualFile vFile, Set<VirtualFile> detectorCalled) {
|
||||
PsiDocumentManager.getInstance(getProject()).commitAllDocuments();
|
||||
log("T: ensureRedetected: commit");
|
||||
log("T: ensureRedetected: commit. queue: "+myFileTypeManager.dumpReDetectQueue());
|
||||
UIUtil.dispatchAllInvocationEvents();
|
||||
log("T: ensureRedetected: dispatch");
|
||||
log("T: ensureRedetected: dispatch. queue: "+ myFileTypeManager.dumpReDetectQueue());
|
||||
myFileTypeManager.drainReDetectQueue();
|
||||
log("T: ensureRedetected: drain");
|
||||
log("T: ensureRedetected: drain. queue: "+myFileTypeManager.dumpReDetectQueue());
|
||||
UIUtil.dispatchAllInvocationEvents();
|
||||
log("T: ensureRedetected: dispatch");
|
||||
FileType type = vFile.getFileType();
|
||||
|
||||
Reference in New Issue
Block a user