Files
carbon-lang/toolchain/language_server/testdata/text_document
Richard Smith 3fad8b9eab Fix invalid line/column in LSP output. (#7831)
If a line or column is unknown, we internally represent it as line or
column -1. When mapped from our 1-based numbering to LSP's 0-based
numbering, it comes out as -2, which is out of range since LSP requires
lines and columns to be >= 0.

Detect this case and produce a fallback.

Assisted-by: Claude via Antigravity
2026-09-25 21:19:33 +00:00
..