mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-153826 refresh synchronously after checkout, reset, create tag, and hg update
This commit is contained in:
@@ -137,7 +137,7 @@ public abstract class DvcsPlatformFacadeImpl implements DvcsPlatformFacade {
|
||||
|
||||
@Override
|
||||
public void hardRefresh(@NotNull VirtualFile root) {
|
||||
VfsUtil.markDirtyAndRefresh(true, true, false, root);
|
||||
VfsUtil.markDirtyAndRefresh(false, true, false, root);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ public final class GitBranchWorker {
|
||||
public void createNewTag(@NotNull final String name, @NotNull final String reference, @NotNull final List<GitRepository> repositories) {
|
||||
for (GitRepository repository : repositories) {
|
||||
myGit.createNewTag(repository, name, null, reference);
|
||||
repository.getRepositoryFiles().refresh(true);
|
||||
repository.getRepositoryFiles().refresh(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ public class GitResetOperation {
|
||||
}
|
||||
results.put(repository, result);
|
||||
repository.update();
|
||||
VfsUtil.markDirtyAndRefresh(true, true, false, root);
|
||||
VfsUtil.markDirtyAndRefresh(false, true, false, root);
|
||||
VcsDirtyScopeManager.getInstance(myProject).dirDirtyRecursively(root);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ public class HgUpdateCommand {
|
||||
DvcsUtil.workingTreeChangeFinished(project, token);
|
||||
}
|
||||
|
||||
VfsUtil.markDirtyAndRefresh(true, true, false, repo);
|
||||
VfsUtil.markDirtyAndRefresh(false, true, false, repo);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user