[html] auto close triggers on undo/redo and breaks undo/redo history. Fixes #34484

上级 f94d326e
......@@ -40,7 +40,8 @@ export function activateTagClosing(tagProvider: (document: TextDocument, positio
}
function onDidChangeTextDocument({ document, contentChanges, reason }: TextDocumentChangeEvent) {
if (!isEnabled || contentChanges.length === 0 || reason === TextDocumentChangeReason.Undo) {
console.log('onDidChangeTextDocument', contentChanges, reason);
if (!isEnabled || contentChanges.length === 0 || reason === TextDocumentChangeReason.Undo || reason === TextDocumentChangeReason.Redo) {
return;
}
const activeDocument = window.activeTextEditor && window.activeTextEditor.document;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册