task_ui: Move status indicator into tab bar of terminal panel (#10846)

I'm not a huge fan of this change (& I expect the placement to change).
The plan is to have the button in a toolbar of terminal panel, but I'm
not sure if occupying a whole line of vertical space for a single button
is worth it; I suppose we might want to put more of tasks ui inside of
that toolbar.
Release Notes:

- Removed task status indicator and added "Spawn task" action to
terminal panel context menu.
This commit is contained in:
Piotr Osiewicz 2024-04-23 16:27:18 +02:00 committed by GitHub
parent bcbf2f2fd3
commit 2ee257a562
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 46 additions and 120 deletions

View file

@ -8,7 +8,7 @@ use anyhow::Context;
use editor::Editor;
use gpui::{AppContext, ViewContext, WindowContext};
use language::{BasicContextProvider, ContextProvider, Language};
use modal::{Spawn, TasksModal};
use modal::TasksModal;
use project::{Location, TaskSourceKind, WorktreeId};
use task::{ResolvedTask, TaskContext, TaskTemplate, TaskVariables};
use util::ResultExt;
@ -16,9 +16,8 @@ use workspace::Workspace;
mod modal;
mod settings;
mod status_indicator;
pub use status_indicator::TaskStatusIndicator;
pub use modal::Spawn;
pub fn init(cx: &mut AppContext) {
settings::TaskSettings::register(cx);