mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user