language-tools
language-tools copied to clipboard
(perf) WIP: TS incremental parsing
Implement getChangeRange of the ScriptSnapshot interface so TS can incrementally parse the result of svelte2tsx. TODO:
- ~Doesn't reliably work, gets into a broken state seemginly random after some time~ Update: Found a bug in the implementation, works now
- Wasn't able to prove this is really faster (how to best test this?). Update: Tested this with VS Code's Dev Tools and it doesn't change much. It's about 2-5miliseconds that are saved, which feels like very little. @jasonlyu123 thoughts?