@@ -66,8 +66,8 @@ export function editorSyncManager(
66
66
) : EditorSyncManager {
67
67
68
68
// 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
71
71
// visual editor instructs us to do so (e.g. when it loses focus)
72
72
let pendingVisualEdit : unknown | undefined ;
73
73
@@ -76,7 +76,7 @@ export function editorSyncManager(
76
76
let supressNextUpdate = false ;
77
77
78
78
// 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
80
80
const collectPendingVisualEdit = async ( ) : Promise < string | undefined > => {
81
81
if ( pendingVisualEdit ) {
82
82
const state = pendingVisualEdit ;
@@ -135,7 +135,7 @@ export function editorSyncManager(
135
135
}
136
136
} ,
137
137
138
- // notification that the visual editor changed (enque the change)
138
+ // notification that the visual editor changed (enqueue the change)
139
139
onVisualEditorChanged : async ( state : unknown ) => {
140
140
pendingVisualEdit = state ;
141
141
} ,
@@ -144,7 +144,7 @@ export function editorSyncManager(
144
144
flushPendingUpdates : collectAndApplyPendingVisualEdit ,
145
145
146
146
// 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
148
148
// the visual editor will throttle these changes internally (and
149
149
// apply them immediately when it receives focus)
150
150
onDocumentChanged : async ( ) => {
@@ -155,7 +155,7 @@ export function editorSyncManager(
155
155
}
156
156
} ,
157
157
158
- // notification that we are saving (allow flusing of visual editor changes)
158
+ // notification that we are saving (allow flushing of visual editor changes)
159
159
onDocumentSaving : async ( ) : Promise < TextEdit [ ] > => {
160
160
// attempt to collect pending edit
161
161
const markdown = await collectPendingVisualEdit ( ) ;
0 commit comments