language-service icon indicating copy to clipboard operation
language-service copied to clipboard

Is Treesitter Overkill for Our Requirements?

Open binhtran432k opened this issue 1 year ago • 1 comments

🤔 What's the problem you've observed?

While Treesitter offers certain parsing capabilities, its current stage of development can introduce challenges that may outweigh its benefits for our specific needs. Notably, the significant size of its WASM parsers (~90% of the language service bundle) seems redundant considering our primary need is simply extracting text strings (easily achievable with Javascript regex).

✨ Do you have a proposal for making it better?

I suggest that we use a simple regex solution, such as VSCucumberAutoComplete. Alternatively, we can explore other parser generators like peg.js, langium, lezer (treesitter-like in pure JavaScript), etc.

📚 Any additional context?

This solution addresses nearly all issues associated with Treesitter, including those related to non-functionality in Node versions 19 and above.


This text was originally generated from a template, then edited by hand. You can modify the template here.

binhtran432k avatar Jan 31 '24 07:01 binhtran432k