You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If tree edits overlap within active included ranges, are those ranges expanded or contracted to incorporate the newly edited text? Conversely, does updating the included range(s) to incorporate new edits re-parse the entire tree, or perform an incremental parse?
Basically what's the best practice for:
Limiting tree-sitter to include only a sub-set of the text.
Being able to update and extend that text range as edits change them.
For a concrete example, imagine limiting the range to the last several dozen lines of a file. As that file is edited, ts_tree_edit sends edit updates. How is/should the included_range be expanded to incorporate the new edits?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
If tree edits overlap within active included ranges, are those ranges expanded or contracted to incorporate the newly edited text? Conversely, does updating the included range(s) to incorporate new edits re-parse the entire tree, or perform an incremental parse?
Basically what's the best practice for:
For a concrete example, imagine limiting the range to the last several dozen lines of a file. As that file is edited,
ts_tree_edit
sends edit updates. How is/should the included_range be expanded to incorporate the new edits?Beta Was this translation helpful? Give feedback.
All reactions