Some language clients will set the diagnostic.range.start.character = -1
for particular sorts of issues, which causes an "index-out-of-bounds"
error when setting virtual text. This fix makes sure all characters
start / end positions are are (at least) 0.
Some language clients will set the diagnostic.range.start.character = -1 for particular sorts of issues, which causes an "index-out-of-bounds" error when setting virtual text. This fix makes sure all characters start / end positions are are (at least) 0.