mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
Don't try closing tags when you type > after another >
This commit is contained in:
@@ -73,8 +73,10 @@ class TagClosing extends Disposable {
|
||||
return;
|
||||
}
|
||||
|
||||
const secondToLastCharacter = lastChange.text[lastChange.text.length - 2];
|
||||
if (secondToLastCharacter === '>') {
|
||||
const priorCharacter = lastChange.range.start.character > 0
|
||||
? document.getText(new vscode.Range(lastChange.range.start.translate({ characterDelta: -1 }), lastChange.range.start))
|
||||
: '';
|
||||
if (priorCharacter === '>') {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user