languages: Correctly calculate ranges in `label_for_completion` (#44925)

Closes #44825

Release Notes:

- Fixed a case where an incorrect match could be generated in
label_for_completion

---------

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
da0960bab6Nereuxofficial committed on 12/16/2025, 2:51:33 PM· committed by GitHubparent81519ae
2 files changedLine totals unavailable