I think we should use the shorter instead, it also probably amounts to less allocations and require less tracking of state (passing correct ITextSnapshot, etc.)
F# Helpers
VS.Snapshot.mkSpan x.Start (x.End + num)
Would few of those helpers keep our code more friendly to potential contributors who don't have much knowledge of VS API?
This also makes a first step toward a higher level DSL to deal with those while having 0 overhead with usage of small inline functions.
I'm looking at few usage of SnapshotSpan / SnapshotPoint and it seems:
proper usage of VS API
in our existing code:
If I'm right this is identical to:
I think we should use the shorter instead, it also probably amounts to less allocations and require less tracking of state (passing correct ITextSnapshot, etc.)
F# Helpers
Would few of those helpers keep our code more friendly to potential contributors who don't have much knowledge of VS API?
This also makes a first step toward a higher level DSL to deal with those while having 0 overhead with usage of small inline functions.