There was an error while loading. Please reload this page.
1 parent d3a2dc0 commit 66a91c3Copy full SHA for 66a91c3
src/services/services.ts
@@ -1836,11 +1836,10 @@ module ts {
1836
? sourceFile.text.substr(0, textChangeRange.span.start)
1837
: "";
1838
1839
- let textChangeRangeEnd = textChangeRange.span.start + textChangeRange.span.length;
1840
// grab the fragment from the end of the span till the end of the original text
1841
- let suffix = textChangeRangeEnd !== sourceFile.text.length
1842
- ? sourceFile.text.substr(textChangeRangeEnd)
1843
- : "";
+ let suffix = textSpanEnd(textChangeRange.span) !== sourceFile.text.length
+ ? sourceFile.text.substr(textSpanEnd(textChangeRange.span))
+ : "";
1844
1845
if (textChangeRange.newLength === 0) {
1846
// edit was a deletion - just combine prefix and suffix
0 commit comments