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 845820d commit 1f35f19Copy full SHA for 1f35f19
src/services/services.ts
@@ -1835,11 +1835,10 @@ module ts {
1835
? sourceFile.text.substr(0, textChangeRange.span.start)
1836
: "";
1837
1838
- let textChangeRangeEnd = textChangeRange.span.start + textChangeRange.span.length;
1839
// grab the fragment from the end of the span till the end of the original text
1840
- let suffix = textChangeRangeEnd !== sourceFile.text.length
1841
- ? sourceFile.text.substr(textChangeRangeEnd)
1842
- : "";
+ let suffix = textSpanEnd(textChangeRange.span) !== sourceFile.text.length
+ ? sourceFile.text.substr(textSpanEnd(textChangeRange.span))
+ : "";
1843
1844
if (textChangeRange.newLength === 0) {
1845
// edit was a deletion - just combine prefix and suffix
0 commit comments