mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Fixes #8205: Make emmet edits undoable in one step
This commit is contained in:
@@ -329,7 +329,11 @@ export class MainThreadTextEditor {
|
||||
forceMoveMarkers: edit.forceMoveMarkers
|
||||
};
|
||||
});
|
||||
return this._codeEditor.executeEdits('MainThreadTextEditor', transformedEdits) || true;
|
||||
|
||||
this._codeEditor.pushUndoStop();
|
||||
this._codeEditor.executeEdits('MainThreadTextEditor', transformedEdits);
|
||||
this._codeEditor.pushUndoStop();
|
||||
return true;
|
||||
}
|
||||
|
||||
console.warn('applyEdits on invisible editor');
|
||||
|
||||
Reference in New Issue
Block a user