IDEA-156244 Install the VcsDirtyScopeVfsListener on project open

This was broken in 9f7a972e when project component became
a project service without any explicit initialization.
This commit is contained in:
Kirill Likhodedov
2016-05-18 21:34:54 +03:00
parent 66e8ad40ae
commit 87cd55f335
2 changed files with 5 additions and 0 deletions
@@ -77,6 +77,7 @@ public class VcsDirtyScopeManagerImpl extends VcsDirtyScopeManager implements Pr
myReady = true;
}
}
VcsDirtyScopeVfsListener.install(myProject);
markEverythingDirty();
}
});
@@ -80,6 +80,10 @@ public class VcsDirtyScopeVfsListener implements BulkFileListener, Disposable {
return ServiceManager.getService(project, VcsDirtyScopeVfsListener.class);
}
public static void install(@NotNull Project project) {
getInstance(project);
}
public void setForbid(boolean forbid) {
assert ApplicationManager.getApplication().isUnitTestMode();
myForbid = forbid;