Remove GitUiFeatureFlag and enable panel unconditionally (#26386)
Release Notes: - git: Enable for everyone
This commit is contained in:
parent
02e970192f
commit
659fae70f8
5 changed files with 12 additions and 25 deletions
|
@ -20,7 +20,7 @@ use collections::VecDeque;
|
|||
use command_palette_hooks::CommandPaletteFilter;
|
||||
use editor::ProposedChangesEditorToolbar;
|
||||
use editor::{scroll::Autoscroll, Editor, MultiBuffer};
|
||||
use feature_flags::{FeatureFlagAppExt, FeatureFlagViewExt, GitUiFeatureFlag};
|
||||
use feature_flags::FeatureFlagAppExt;
|
||||
use futures::{channel::mpsc, select_biased, StreamExt};
|
||||
use git_ui::git_panel::GitPanel;
|
||||
use git_ui::project_diff::ProjectDiffToolbar;
|
||||
|
@ -429,13 +429,11 @@ fn initialize_panels(
|
|||
workspace.add_panel(channels_panel, window, cx);
|
||||
workspace.add_panel(chat_panel, window, cx);
|
||||
workspace.add_panel(notification_panel, window, cx);
|
||||
cx.when_flag_enabled::<GitUiFeatureFlag>(window, |workspace, window, cx| {
|
||||
let entity = cx.entity();
|
||||
let project = workspace.project().clone();
|
||||
let app_state = workspace.app_state().clone();
|
||||
let git_panel = cx.new(|cx| GitPanel::new(entity, project, app_state, window, cx));
|
||||
workspace.add_panel(git_panel, window, cx);
|
||||
});
|
||||
let entity = cx.entity();
|
||||
let project = workspace.project().clone();
|
||||
let app_state = workspace.app_state().clone();
|
||||
let git_panel = cx.new(|cx| GitPanel::new(entity, project, app_state, window, cx));
|
||||
workspace.add_panel(git_panel, window, cx);
|
||||
})?;
|
||||
|
||||
let is_assistant2_enabled = if cfg!(test) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue