Sanitize ranges in code labels coming from extensions (#10307)

Without any sanitization, extensions would be able to crash zed, because
the editor code assumes these ranges are valid.

Release Notes:

- N/A
cc367d43d6Max Brunsfeld committed on 4/9/2024, 2:53:25 AM· committed by GitHubparenta4566c3
2 files changedLine totals unavailable