From 80d93c9e66afd593dff29649de37cf36a3f4d61c Mon Sep 17 00:00:00 2001 From: David <33458145+davidmcpowell@users.noreply.github.com> Date: Thu, 17 Jul 2025 10:34:39 +0100 Subject: [PATCH] Merge pull request #27125 from overleaf/ae-extension-exports Add CodeMirror history-related exports to `UNSTABLE_editor:extensions` event GitOrigin-RevId: 015a19f8b97075ee441dda1d42e19d7f81804ed7 --- .../js/features/source-editor/extensions/bundle.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/web/frontend/js/features/source-editor/extensions/bundle.ts b/services/web/frontend/js/features/source-editor/extensions/bundle.ts index 1a57ba829b..a11839105d 100644 --- a/services/web/frontend/js/features/source-editor/extensions/bundle.ts +++ b/services/web/frontend/js/features/source-editor/extensions/bundle.ts @@ -1,5 +1,6 @@ import { syntaxTree } from '@codemirror/language' import { + ChangeSet, EditorSelection, Prec, StateEffect, @@ -13,9 +14,16 @@ import { ViewPlugin, WidgetType, } from '@codemirror/view' +import { + undo, + redo, + invertedEffects, + isolateHistory, +} from '@codemirror/commands' import { CodeMirror, Vim, getCM } from '@replit/codemirror-vim' export default { + ChangeSet, Decoration, EditorSelection, EditorView, @@ -27,6 +35,10 @@ export default { hoverTooltip, keymap, syntaxTree, + undo, + redo, + invertedEffects, + isolateHistory, } export const CodeMirrorVim = {