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 dfcc65a commit 54818f3Copy full SHA for 54818f3
extensions/vscode/lib/rangeFormatting.ts
@@ -62,11 +62,11 @@ function getTrimmedNewText(
62
63
let oldTextIndex = 0;
64
let newTextIndex = 0;
65
- let newStart = overlapStart;
66
- let newEnd = overlapEnd;
+ let newStart = 0;
+ let newEnd = edit.newText.length;
67
68
while (true) {
69
- if (oldTextIndex === overlapStart) {
+ if (oldTextIndex <= overlapStart) {
70
newStart = newTextIndex;
71
}
72
if (oldTextIndex === overlapEnd) {
0 commit comments