提交 fc37f9ad 编写于 作者: J Johannes Rieken

workaround #23537

上级 f8a31fde
......@@ -14,11 +14,10 @@ export class EditOperationsCommand implements editorCommon.ICommand {
static execute(editor: editorCommon.ICommonCodeEditor, edits: TextEdit[]) {
const cmd = new EditOperationsCommand(edits, editor.getSelection());
editor.executeCommand('formatEditsCommand', cmd);
if (typeof cmd._newEol === 'number') {
editor.getModel().setEOL(cmd._newEol);
}
editor.executeCommand('formatEditsCommand', cmd);
}
private _edits: TextEdit[];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册