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

Validate that we don't have more than three captures on a single tree node #2777

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

Comments

@AndreasArvidsson
Copy link
Member

Tree sitter has a limitation of three captures per node. If you supply more than three the latter ones will just silently be dropped. We should validate this ourself and throw a proper error.

https://github.com/cursorless-dev/cursorless/blob/181cd9f5c2a47c460de01a7102bf89ee9d964d5a/packages/cursorless-engine/src/languages/TreeSitterQuery/validateQueryCaptures.ts

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

No branches or pull requests

1 participant