Skip to content

Only run requested scope in Tree sitter #2774

Open
@AndreasArvidsson

Description

@AndreasArvidsson

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);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions