When assigning snapshots to a fresh editor state with the ysync plugin (and before attaching to an EditorView), the snapshots are ignored because pluginState.binding is null. When pluginState.binding is set, change doesn't include the snapshot anymore and is ignored. This PR fixes this bug by reading the snapshot info from pluginState.snapshot and pluginState.prevSnapshot. This shouldn't break any workflow as these values are deleted when used anyway.
When assigning snapshots to a fresh editor state with the ysync plugin (and before attaching to an EditorView), the snapshots are ignored because
pluginState.binding
is null. WhenpluginState.binding
is set,change
doesn't include the snapshot anymore and is ignored. This PR fixes this bug by reading the snapshot info frompluginState.snapshot
andpluginState.prevSnapshot
. This shouldn't break any workflow as these values are deleted when used anyway.