We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbb894e commit 5be56a4Copy full SHA for 5be56a4
packages/svelte-vscode/src/html/autoClose.ts
@@ -67,7 +67,7 @@ export function activateTagClosing(
67
}
68
const lastChange = changes[changes.length - 1];
69
const lastCharacter = lastChange.text[lastChange.text.length - 1];
70
- if ("range" in lastChange && lastChange.range.start !== lastChange.range.end || (lastCharacter !== '>' && lastCharacter !== '/')) {
+ if ("range" in lastChange && (lastChange.rangeLength ?? 0) > 0 || (lastCharacter !== '>' && lastCharacter !== '/')) {
71
return;
72
73
const rangeStart = "range" in lastChange ? lastChange.range.start : new Position(0, document.getText().length);
0 commit comments