未验证 提交 a96098e2 编写于 作者: A Alex Dima

Fixes #99167: Do not check for unusual line terminators when undoing

上级 74bc00fd
......@@ -48,7 +48,11 @@ class UnusualLineTerminatorsDetector extends Disposable implements IEditorContri
this._checkForUnusualLineTerminators();
}));
this._register(this._editor.onDidChangeModelContent(() => {
this._register(this._editor.onDidChangeModelContent((e) => {
if (e.isUndoing) {
// skip checking in case of undoing
return;
}
this._checkForUnusualLineTerminators();
}));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册