Skip to content

Is Treesitter Overkill for Our Requirements? #182

Open
@binhtran432k

Description

@binhtran432k

🤔 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions