Skip to content

Commit 10d7821

Browse files
committed
don't focus editor after formatting, fixes microsoft#85298
1 parent 1ff281f commit 10d7821

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/vs/editor/contrib/format/format.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ export async function formatDocumentRangeWithProvider(
181181
FormattingEdit.execute(editorOrModel, edits);
182182
alertFormattingEdits(edits);
183183
editorOrModel.pushUndoStop();
184-
editorOrModel.focus();
185184
editorOrModel.revealPositionInCenterIfOutsideViewport(editorOrModel.getPosition(), ScrollType.Immediate);
186185

187186
} else {
@@ -271,7 +270,6 @@ export async function formatDocumentWithProvider(
271270
if (mode !== FormattingMode.Silent) {
272271
alertFormattingEdits(edits);
273272
editorOrModel.pushUndoStop();
274-
editorOrModel.focus();
275273
editorOrModel.revealPositionInCenterIfOutsideViewport(editorOrModel.getPosition(), ScrollType.Immediate);
276274
}
277275

0 commit comments

Comments
 (0)