mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
drop saved fs state and force fs rescan on roots changed event
This commit is contained in:
@@ -241,6 +241,7 @@ public class BuildManager implements ApplicationComponent{
|
||||
}
|
||||
|
||||
public void clearState(Project project) {
|
||||
myGlobals = null;
|
||||
final String projectPath = getProjectPath(project);
|
||||
synchronized (myProjectDataMap) {
|
||||
final ProjectData data = myProjectDataMap.get(projectPath);
|
||||
@@ -260,10 +261,6 @@ public class BuildManager implements ApplicationComponent{
|
||||
return vFile != null ? vFile.getPath() : null;
|
||||
}
|
||||
|
||||
private void clearGlobalsCache() {
|
||||
myGlobals = null;
|
||||
}
|
||||
|
||||
private void runAutoMake() {
|
||||
if (ApplicationManager.getApplication().isUnitTestMode()) {
|
||||
return;
|
||||
@@ -778,7 +775,10 @@ public class BuildManager implements ApplicationComponent{
|
||||
|
||||
@Override
|
||||
public void rootsChanged(final ModuleRootEvent event) {
|
||||
clearGlobalsCache();
|
||||
final Object source = event.getSource();
|
||||
if (source instanceof Project) {
|
||||
clearState((Project)source);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user