Johannes Altmanninger 94a4c3abaa Clamp Position::character to line length
LSP says about Position::character

> If the character value is greater than the line length it defaults back to the line length.

but from_proto::offset() doesn't implement this.

A client might for example request code actions for a whole line by sending
Position::character=99999.  I don't think there is ever a reason (besides laziness) why the
client can't specify the line length instead but I guess we should not crash but follow protocol.

Technically it should be a warning, not an error but warning is not shown by default so keep
it at error I guess.

Fixes #18240
2024-10-18 15:07:13 +02:00
..
2024-10-14 10:09:22 -04:00
2024-10-14 10:09:22 -04:00
2024-10-08 14:25:39 +03:00
2024-10-14 10:09:22 -04:00
2024-10-14 10:09:22 -04:00
2024-09-25 09:00:53 +03:00
2024-09-25 10:56:37 +03:00
2024-10-17 13:11:12 +02:00
2024-10-14 10:09:22 -04:00
2024-10-14 10:09:22 -04:00