[PyCharm] Jupyter (fix): Fixed different situations on move cells and on undo/redo after move. #(PY-77908, PY-80553) Fixed

(cherry picked from commit 812ed7386fb12ae6391490aff907ee307d97a443)

GitOrigin-RevId: 53f0300943ababa2af40d0521619e844632d51bc
This commit is contained in:
Nikita Pavlenko
2025-05-14 16:29:23 +04:00
committed by intellij-monorepo-bot
parent 3d47ac89ff
commit dde9c788b8

View File

@@ -23,7 +23,7 @@ class EditorCellOutputs(private val cell: EditorCell) {
}
private fun getOutputs(): List<EditorCellOutput> =
NotebookOutputDataKeyExtractor.Companion.EP_NAME.extensionList.asSequence()
NotebookOutputDataKeyExtractor.EP_NAME.extensionList.asSequence()
.mapNotNull { it.extract(editor as EditorImpl, cell.interval) }
.firstOrNull()
?.takeIf { it.isNotEmpty() }