mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
resource bundles: clear document history if editor provider is unloaded (IDEA-240659)
IDEA-CR-62584: fix current index to myChangePlaces GitOrigin-RevId: 1e3528be9040085173b8eedb21b29f1140856786
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3a2ce802e5
commit
dc86b53928
+3
-1
@@ -166,7 +166,9 @@ public class IdeDocumentHistoryImpl extends IdeDocumentHistory implements Dispos
|
||||
public void extensionRemoved(@NotNull FileEditorProvider provider, @NotNull PluginDescriptor pluginDescriptor) {
|
||||
String editorTypeId = provider.getEditorTypeId();
|
||||
Predicate<PlaceInfo> clearStatePredicate = e -> editorTypeId.equals(e.getEditorTypeId());
|
||||
myChangePlaces.removeIf(clearStatePredicate);
|
||||
if (myChangePlaces.removeIf(clearStatePredicate)) {
|
||||
myCurrentIndex = myChangePlaces.size();
|
||||
}
|
||||
myBackPlaces.removeIf(clearStatePredicate);
|
||||
myForwardPlaces.removeIf(clearStatePredicate);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user