I want to use that PR to also refactor a bit the usage of tree-sitter. For instance, we use QueryCapture everywhere, while we actually want to use Node, so that we can reuse those functions for doing things like expanding / collapsing selections; moving to the next sibling, parent, etc.
I want to use that PR to also refactor a bit the usage of tree-sitter. For instance, we use
QueryCapture
everywhere, while we actually want to useNode
, so that we can reuse those functions for doing things like expanding / collapsing selections; moving to the next sibling, parent, etc.