chore: Remove outline dependency from breadcrumbs (#22504)

This slashes our incremental dev times (touch editor) by 0.6s
(8.1->7.6s) due to unblocking terminal_view build sooner.

Closes #ISSUE

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2024-12-30 13:08:26 +01:00 committed by GitHub
parent 5f4f3a9c87
commit 3f33ca01a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 43 additions and 16 deletions

View file

@ -156,7 +156,10 @@ pub fn app_menus() -> Vec<Menu> {
MenuItem::separator(),
MenuItem::action("Go to File...", workspace::ToggleFileFinder::default()),
// MenuItem::action("Go to Symbol in Project", project_symbols::Toggle),
MenuItem::action("Go to Symbol in Editor...", editor::actions::ToggleOutline),
MenuItem::action(
"Go to Symbol in Editor...",
zed_actions::outline::ToggleOutline,
),
MenuItem::action("Go to Line/Column...", editor::actions::ToggleGoToLine),
MenuItem::separator(),
MenuItem::action("Go to Definition", editor::actions::GoToDefinition),

View file

@ -6,7 +6,7 @@ use assistant::AssistantPanel;
use editor::actions::{
AddSelectionAbove, AddSelectionBelow, DuplicateLineDown, GoToDiagnostic, GoToHunk,
GoToPrevDiagnostic, GoToPrevHunk, MoveLineDown, MoveLineUp, SelectAll, SelectLargerSyntaxNode,
SelectNext, SelectSmallerSyntaxNode, ToggleGoToLine, ToggleOutline,
SelectNext, SelectSmallerSyntaxNode, ToggleGoToLine,
};
use editor::{Editor, EditorSettings};
use gpui::{
@ -23,7 +23,7 @@ use vim_mode_setting::VimModeSetting;
use workspace::{
item::ItemHandle, ToolbarItemEvent, ToolbarItemLocation, ToolbarItemView, Workspace,
};
use zed_actions::InlineAssist;
use zed_actions::{outline::ToggleOutline, InlineAssist};
pub struct QuickActionBar {
_inlay_hints_enabled_subscription: Option<Subscription>,