Open wrongu opened 1 year ago
on the one hand, would be nice for there to be a "document location" protocol, but then we can't put them into pydantic models.
still need to think more about the "right" way to have one data structure that can speak the languages of character offsets, parsed document trees, line ranges, etc. And think about how far we can get with quick and dirty hacks (like pretending everything is a character range)
option 1: move to char ranges
option 2: move to 'diff' semantics rather than selection ranges
...
option N: see discussion below