Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Optimize populating Tree-sitter syntax tree injections #18438
In a very large file, when you make an edit that changes the syntax of a large part of the file (e.g. by introducing an error), there is currently a lot of time spent re-querying injection nodes and populating injections.
In this PR, I restructure that computation so that it does a single