From 7bfdb60f9fd8cfd225a2d27fc371fc6ace01302a Mon Sep 17 00:00:00 2001 From: "Igor.Davidenko" Date: Thu, 12 Sep 2024 17:06:56 +0200 Subject: [PATCH] [full-line] ML-3924 Add chunks from the most recent caret positions GitOrigin-RevId: d2d34ab1d192fbb6ed0c6ec555eb4e7a9dda055e --- .../com/intellij/openapi/fileEditor/ex/IdeDocumentHistory.java | 2 ++ .../intellij/openapi/fileEditor/impl/IdeDocumentHistoryImpl.kt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/platform/platform-impl/src/com/intellij/openapi/fileEditor/ex/IdeDocumentHistory.java b/platform/platform-impl/src/com/intellij/openapi/fileEditor/ex/IdeDocumentHistory.java index 7aca095811d6..4c438d73143e 100644 --- a/platform/platform-impl/src/com/intellij/openapi/fileEditor/ex/IdeDocumentHistory.java +++ b/platform/platform-impl/src/com/intellij/openapi/fileEditor/ex/IdeDocumentHistory.java @@ -36,6 +36,8 @@ public abstract class IdeDocumentHistory { public abstract List getChangePlaces(); @ApiStatus.Internal public abstract List getBackPlaces(); + @ApiStatus.Internal + public abstract List getForwardPlaces(); @ApiStatus.Internal public abstract void removeChangePlace(@NotNull IdeDocumentHistoryImpl.PlaceInfo placeInfo); diff --git a/platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/IdeDocumentHistoryImpl.kt b/platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/IdeDocumentHistoryImpl.kt index 6dbfa8a635f3..83c7ca7e47b1 100644 --- a/platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/IdeDocumentHistoryImpl.kt +++ b/platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/IdeDocumentHistoryImpl.kt @@ -455,6 +455,8 @@ open class IdeDocumentHistoryImpl( final override fun getBackPlaces(): List = java.util.List.copyOf(backPlaces) + final override fun getForwardPlaces(): List = java.util.List.copyOf(forwardPlaces) + final override fun getChangePlaces(): List = java.util.List.copyOf(changePlaces) final override fun removeBackPlace(placeInfo: PlaceInfo) {