scan starting from the beginning of target span
This commit is contained in:
parent
20599e6fe8
commit
9a5df8585b
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ module ts.formatting {
|
|||
return start;
|
||||
}
|
||||
|
||||
var precedingToken = findPrecedingToken(enclosingNode.pos, sourceFile);
|
||||
var precedingToken = findPrecedingToken(originalRange.pos, sourceFile);
|
||||
// no preceding token found - start from the beginning of enclosing node
|
||||
return precedingToken ? precedingToken.end : enclosingNode.pos;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue