Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a version update for the
cased-kitpackage, adds compatibility for newer versions of thetree-sitterlibrary, and includes a new test to ensure the compatibility changes work as expected. Below are the most important changes grouped by theme:Version Update:
cased-kitfrom1.7.1to1.7.2in bothpyproject.tomlandsrc/kit/__init__.py. [1] [2]Compatibility Enhancements:
extract_symbolsintree_sitter_symbol_extractor.pyto support both legacyQuery.matchesand newerQuery.capturesAPIs fromtree-sitter. This ensures compatibility withtree-sitterversions >= 0.23.Testing:
tests/test_tree_sitter_query_compat.pyto validate the fallback behavior ofextract_symbolswhen theQuery.matchesAPI is unavailable. This includes mock implementations oftree-sittercomponents and a test case for the newerQuery.capturesAPI.