Remove unused tasks-related config (#27707)

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov 2025-03-29 00:34:02 +02:00 committed by GitHub
parent 044508ef77
commit d912b0dd36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 0 additions and 37 deletions

View file

@ -23,9 +23,7 @@ menu.workspace = true
picker.workspace = true
project.workspace = true
task.workspace = true
schemars.workspace = true
serde.workspace = true
settings.workspace = true
ui.workspace = true
util.workspace = true
workspace.workspace = true

View file

@ -1,25 +0,0 @@
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use settings::{Settings, SettingsSources};
#[derive(Serialize, Deserialize, PartialEq, Default)]
pub(crate) struct TaskSettings {
pub(crate) show_status_indicator: bool,
}
/// Task-related settings.
#[derive(Serialize, Deserialize, PartialEq, Default, Clone, JsonSchema)]
pub(crate) struct TaskSettingsContent {
/// Whether to show task status indicator in the status bar. Default: true
show_status_indicator: Option<bool>,
}
impl Settings for TaskSettings {
const KEY: Option<&'static str> = Some("task");
type FileContent = TaskSettingsContent;
fn load(sources: SettingsSources<Self::FileContent>, _: &mut gpui::App) -> gpui::Result<Self> {
sources.json_merge()
}
}

View file

@ -1,7 +1,6 @@
use std::collections::HashMap;
use std::path::Path;
use ::settings::Settings;
use editor::Editor;
use feature_flags::{Debugger, FeatureFlagViewExt};
use gpui::{App, AppContext as _, Context, Entity, Task, Window};
@ -12,12 +11,10 @@ use workspace::tasks::schedule_task;
use workspace::{tasks::schedule_resolved_task, Start, Workspace};
mod modal;
mod settings;
pub use modal::{Rerun, Spawn};
pub fn init(cx: &mut App) {
settings::TaskSettings::register(cx);
cx.observe_new(
|workspace: &mut Workspace, window: Option<&mut Window>, cx: &mut Context<Workspace>| {
workspace