Fix panic! caused by bad utf16 clipping (#7530)

Release Notes:

- Fixed a panic in diagnostics with emojis

**or**

- N/A
f55aba51ecConrad Irwin committed on 2/7/2024, 11:35:30 PM· committed by GitHubparent374c8a4
1 file changedLine totals unavailable