Range.contains()
returns true
for positions not in range with editor.visibleRanges
#250133
Labels
Range.contains()
returns true
for positions not in range with editor.visibleRanges
#250133
Steps to Reproduce:
editor.visibleRanges.some((range) => (range.contains(position))
returnstrue
where there is only 1visibleRanges
with value of[33:0 -> 67:1)
and position is ofline: 78, character: 35
. In the debugger,range.end.isAfter(position)
returnstrue
, but so isposition.isAfter(range.end)
(the later is expected)visibleRanges
, tried to re-produce with following, but failedThe text was updated successfully, but these errors were encountered: