Simplify FormatCommand (#44870)

This commit is contained in:
Alex Dima
2018-03-27 18:17:57 +02:00
parent 1b032162a1
commit 6e1f737afc
3 changed files with 39 additions and 30 deletions

View File

@@ -225,7 +225,7 @@ class FormatOnSaveParticipant implements ISaveParticipantParticipant {
}
private _editsWithEditor(editor: ICodeEditor, edits: ISingleEditOperation[]): void {
EditOperationsCommand.execute(editor, edits, false);
EditOperationsCommand.execute(editor, edits);
}
private _editWithModel(model: ITextModel, edits: ISingleEditOperation[]): void {