editor: Limit target names in hover links multibuffer titles (#36207)

Release Notes:

- N/A
This commit is contained in:
Lukas Wirth 2025-08-14 23:18:07 +02:00 committed by GitHub
parent b7c562f359
commit e2ce787c05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15879,6 +15879,8 @@ impl Editor {
.text_for_range(location.range.clone())
.collect::<String>()
})
.unique()
.take(3)
.join(", ");
format!("{tab_kind} for {target}")
})
@ -16085,6 +16087,8 @@ impl Editor {
.text_for_range(location.range.clone())
.collect::<String>()
})
.unique()
.take(3)
.join(", ");
let title = format!("References to {target}");
Self::open_locations_in_multibuffer(