mirror of
https://github.com/Microsoft/vscode
synced 2024-10-12 06:17:18 +00:00
[html] auto close triggers on undo/redo and breaks undo/redo history. Fixes #34484
This commit is contained in:
parent
f94d326e91
commit
801dff2f3b
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue