teal-language / teal-language-server

A language server for Teal, a typed dialect of Lua
MIT License
78 stars 8 forks source link

Incrementally parse documents #5

Open euclidianAce opened 3 years ago

euclidianAce commented 3 years ago

At the very least we can incrementally update the token list without re-parsing the entire doc. Whether this speedup is worth it, idk. We could bring in my ltreesitter module to do this, but then theres the issue of translating the cst that tree-sitter generates to an ast that tl understands, which might not be worth it.

We could get a real speedup if we could figure out a way to incrementally update the type checking environment instead of regenerating it each time

euclidianAce commented 3 years ago

With neovim master being able to get incremental updates I will try to implement this soon