Skip to content

Commit

Permalink
Fixed tree sitter parsing incorrectly and causing heavy load. Closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
razzeee committed Jul 31, 2019
1 parent 063f0c5 commit 2d45d3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/astProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2d45d3d

Please sign in to comment.