tasks: Add status indicator to the status bar (#10267)

Release Notes:

- Added task status indicator to the status bar.
This commit is contained in:
Piotr Osiewicz 2024-04-08 14:43:00 +02:00 committed by GitHub
parent ce5bc399df
commit 4ce5b22989
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 153 additions and 6 deletions

View file

@ -1,5 +1,6 @@
use std::{path::PathBuf, sync::Arc};
use ::settings::Settings;
use editor::Editor;
use gpui::{AppContext, ViewContext, WeakView, WindowContext};
use language::{Language, Point};
@ -10,8 +11,13 @@ use util::ResultExt;
use workspace::Workspace;
mod modal;
mod settings;
mod status_indicator;
pub use status_indicator::TaskStatusIndicator;
pub fn init(cx: &mut AppContext) {
settings::TaskSettings::register(cx);
cx.observe_new_views(
|workspace: &mut Workspace, _: &mut ViewContext<Workspace>| {
workspace