mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 20:14:01 -06:00
addressed PR feedback
This commit is contained in:
parent
2c4801ea47
commit
d3a2dc0c64
@ -1836,9 +1836,10 @@ module ts {
|
||||
? sourceFile.text.substr(0, textChangeRange.span.start)
|
||||
: "";
|
||||
|
||||
let textChangeRangeEnd = textChangeRange.span.start + textChangeRange.span.length;
|
||||
// grab the fragment from the end of the span till the end of the original text
|
||||
let suffix = textChangeRange.span.start + textChangeRange.span.length !== sourceFile.text.length
|
||||
? sourceFile.text.substr(textChangeRange.span.start + textChangeRange.span.length)
|
||||
let suffix = textChangeRangeEnd !== sourceFile.text.length
|
||||
? sourceFile.text.substr(textChangeRangeEnd)
|
||||
: "";
|
||||
|
||||
if (textChangeRange.newLength === 0) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user