Fix panic when hovering string ending with unicode (#38818)

Release Notes:

- Fixed a panic when hovering a string literal ending with an emoji
91b0f42382Conrad Irwin committed on 9/24/2025, 9:33:31 PM· committed by GitHubparent523c042
1 file changedLine totals unavailable