@@ -66,8 +66,8 @@ export function editorSyncManager(
6666) : EditorSyncManager {
6767
6868 // state: an update from the visual editor that we have yet to apply. we don't
69- // apply these on every keystoke b/c they are expensive. we poll to apply these
70- // udpates periodically and also apply them immediately on save and when the
69+ // apply these on every keystroke b/c they are expensive. we poll to apply these
70+ // updates periodically and also apply them immediately on save and when the
7171 // visual editor instructs us to do so (e.g. when it loses focus)
7272 let pendingVisualEdit : unknown | undefined ;
7373
@@ -76,7 +76,7 @@ export function editorSyncManager(
7676 let supressNextUpdate = false ;
7777
7878 // collect a pending edit, converting it to markdown and setting the supressNextUpdate bit
79- // if we fail get the markdown then we neither clear the pending edit nor supress the update
79+ // if we fail get the markdown then we neither clear the pending edit nor suppress the update
8080 const collectPendingVisualEdit = async ( ) : Promise < string | undefined > => {
8181 if ( pendingVisualEdit ) {
8282 const state = pendingVisualEdit ;
@@ -135,7 +135,7 @@ export function editorSyncManager(
135135 }
136136 } ,
137137
138- // notification that the visual editor changed (enque the change)
138+ // notification that the visual editor changed (enqueue the change)
139139 onVisualEditorChanged : async ( state : unknown ) => {
140140 pendingVisualEdit = state ;
141141 } ,
@@ -144,7 +144,7 @@ export function editorSyncManager(
144144 flushPendingUpdates : collectAndApplyPendingVisualEdit ,
145145
146146 // notification that the document changed, let the visual editor
147- // know about the change unless the next update is supressed . note that
147+ // know about the change unless the next update is suppressed . note that
148148 // the visual editor will throttle these changes internally (and
149149 // apply them immediately when it receives focus)
150150 onDocumentChanged : async ( ) => {
@@ -155,7 +155,7 @@ export function editorSyncManager(
155155 }
156156 } ,
157157
158- // notification that we are saving (allow flusing of visual editor changes)
158+ // notification that we are saving (allow flushing of visual editor changes)
159159 onDocumentSaving : async ( ) : Promise < TextEdit [ ] > => {
160160 // attempt to collect pending edit
161161 const markdown = await collectPendingVisualEdit ( ) ;
0 commit comments