Skip to content

Commit

Permalink
#553 - Projects leak in ExternalIndexableSetContributor.CACHE
Browse files Browse the repository at this point in the history
  • Loading branch information
hsz committed Jul 19, 2018
1 parent ef7a922 commit 858e835
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mobi/hsz/idea/gitignore/IgnoreManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ public boolean isFileTracked(@NotNull final VirtualFile file) {
*/
@Override
public void projectOpened() {
ExternalIndexableSetContributor.invalidateDisposedProjects();
if (isEnabled() && !working) {
enable();
}
Expand All @@ -508,6 +509,7 @@ public void projectOpened() {
*/
@Override
public void projectClosed() {
ExternalIndexableSetContributor.invalidateDisposedProjects();
disable();
}

Expand All @@ -526,8 +528,6 @@ private void enable() {
return;
}

ExternalIndexableSetContributor.invalidateDisposedProjects();

refreshTrackedIgnoredFeature.run();
virtualFileManager.addVirtualFileListener(virtualFileListener);
settings.addListener(settingsListener);
Expand Down

0 comments on commit 858e835

Please sign in to comment.