diff --git a/src/providers/astProvider.ts b/src/providers/astProvider.ts index a0137038..4ac10917 100644 --- a/src/providers/astProvider.ts +++ b/src/providers/astProvider.ts @@ -70,10 +70,10 @@ export class ASTProvider { range.start, ).toTSPosition(), }); + tree = this.parser.parse(text, tree); } - tree = this.parser.parse(text, tree); } else { - tree = this.parser.parse(changeEvent.text, tree); + tree = this.parser.parse(changeEvent.text); } } if (tree) {