We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9e5ebe commit b3b6c3bCopy full SHA for b3b6c3b
src/services/utilities.ts
@@ -679,7 +679,7 @@ namespace ts {
679
let current: Node = sourceFile;
680
outer: while (true) {
681
// find the child that contains 'position'
682
- for (const child of current.getChildren()) {
+ for (const child of current.getChildren(sourceFile)) {
683
const start = allowPositionInLeadingTrivia ? child.getFullStart() : child.getStart(sourceFile, /*includeJsDoc*/ true);
684
if (start > position) {
685
// If this child begins after position, then all subsequent children will as well.
0 commit comments