Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only run requested scope in Tree sitter #2774

Open
AndreasArvidsson opened this issue Jan 26, 2025 · 0 comments
Open

Only run requested scope in Tree sitter #2774

AndreasArvidsson opened this issue Jan 26, 2025 · 0 comments

Comments

@AndreasArvidsson
Copy link
Member

Today we run all defined scopes/captures from a single language in Tree sitter at once. We could increase performance if we just ran the scope/captures actually needed.

const rawQuery = treeSitter
.getLanguage(languageId)!
.query(rawLanguageQueryString);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants