mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
addressed PR feedback
This commit is contained in:
1 parent
2c4801ea47
commit
d3a2dc0c64
1 file changed
+3
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user