mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
and yet another attempt to avoid VFS refresh during rename in p4 tests
This commit is contained in:
+9
@@ -29,10 +29,12 @@ import com.intellij.openapi.vfs.LocalFileSystem;
|
||||
import com.intellij.openapi.vfs.VfsUtilCore;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.util.Alarm;
|
||||
import com.intellij.util.TimeoutUtil;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
import com.intellij.util.containers.MultiMap;
|
||||
import com.intellij.util.messages.MessageBusConnection;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.TestOnly;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.*;
|
||||
@@ -70,6 +72,13 @@ public class VcsAnnotationLocalChangesListenerImpl implements Disposable, VcsAnn
|
||||
myConnection.subscribe(VcsAnnotationRefresher.LOCAL_CHANGES_CHANGED, handler);
|
||||
}
|
||||
|
||||
@TestOnly
|
||||
public void calmDown() {
|
||||
while (!myUpdater.isEmpty()) {
|
||||
TimeoutUtil.sleep(1);
|
||||
}
|
||||
}
|
||||
|
||||
private Runnable createUpdateStuff() {
|
||||
return () -> {
|
||||
final Set<String> paths;
|
||||
|
||||
Reference in New Issue
Block a user