diagnostics: Fix losing focus when activating from diagnostics view (#25517)
Closes #25509
Changes:
- If active item is already diagnostics, don't try to focus it again.
Instead of not focusing, should it just not activate instead? Something
like:
if !workspace
.active_item(cx)
.map(|item| item.item_id() == existing.item_id())
.unwrap_or(false)
{
workspace.activate_item(&existing, true, true, window, cx);
}
Release Notes:
- N/A B
brian tan committed
ed6bf7f161c6af6e10354faacb8b643a55c80b27
Parent: f14d667
Committed by GitHub <noreply@github.com>
on 3/8/2025, 10:17:20 PM