mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
Don't try closing for cases like <div>> when user has just typed last >
This commit is contained in:
@@ -57,6 +57,11 @@ class TagClosing {
|
||||
return;
|
||||
}
|
||||
|
||||
const secondToLastCharacter = lastChange.text[lastChange.text.length - 2];
|
||||
if (secondToLastCharacter === '>') {
|
||||
return;
|
||||
}
|
||||
|
||||
const rangeStart = lastChange.range.start;
|
||||
const version = document.version;
|
||||
this.timeout = setTimeout(async () => {
|
||||
|
||||
Reference in New Issue
Block a user