You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This contains a diff, instead of plain text. Apply the text diff.
973
973
//
974
974
// First, apply just the text edits. Use an annotation so that the doc blocks aren't changed; without this, the diff won't work (since from/to values of doc blocks are changed by unfrozen text edits).
975
-
current_view.dispatch(
976
-
{
977
-
changes: source.Diff.doc,
978
-
annotations: docBlockFreezeAnnotation.of(true)
979
-
},
980
-
);
975
+
current_view.dispatch({
976
+
changes: source.Diff.doc,
977
+
annotations: docBlockFreezeAnnotation.of(true),
978
+
});
981
979
// Now, apply the diff in a separate transaction. Applying them in the same transaction causes the text edits to modify from/to values in the doc block effects, even when changes to the doc block state is frozen.
0 commit comments