mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 05:51:14 +00:00
Fix up build and a bunch of warnings
This commit is contained in:
parent
4abd55d340
commit
8d05ee91b3
7 changed files with 9 additions and 17 deletions
|
|
@ -1285,7 +1285,7 @@ impl EditorElement {
|
|||
scroll_pixel_position: gpui::Point<Pixels>,
|
||||
gutter_dimensions: &GutterDimensions,
|
||||
gutter_hitbox: &Hitbox,
|
||||
cx: &mut ElementContext,
|
||||
cx: &mut WindowContext,
|
||||
) -> Vec<AnyElement> {
|
||||
test_lines
|
||||
.into_iter()
|
||||
|
|
@ -3070,7 +3070,7 @@ fn prepaint_gutter_button(
|
|||
gutter_dimensions: &GutterDimensions,
|
||||
scroll_pixel_position: gpui::Point<Pixels>,
|
||||
gutter_hitbox: &Hitbox,
|
||||
cx: &mut ElementContext<'_>,
|
||||
cx: &mut WindowContext,
|
||||
) -> AnyElement {
|
||||
let mut button = button.into_any_element();
|
||||
let available_space = size(
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ use std::{
|
|||
time::{Duration, Instant},
|
||||
};
|
||||
use sum_tree::{Bias, Cursor, SumTree};
|
||||
use task::RunnableTag;
|
||||
use text::{
|
||||
locator::Locator,
|
||||
subscription::{Subscription, Topic},
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ impl Inventory {
|
|||
.flat_map(|source| {
|
||||
source
|
||||
.source
|
||||
.update(cx, |source, cx| source.tasks_to_schedule())
|
||||
.update(cx, |source, _| source.tasks_to_schedule())
|
||||
.0
|
||||
.into_iter()
|
||||
.map(|task| (&source.kind, task))
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ mod task_template;
|
|||
mod vscode_format;
|
||||
|
||||
use collections::{HashMap, HashSet};
|
||||
use gpui::{AppContext, ModelContext, SharedString};
|
||||
use gpui::SharedString;
|
||||
use serde::Serialize;
|
||||
use std::any::Any;
|
||||
use std::borrow::Cow;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
//! A source of tasks, based on a static configuration, deserialized from the tasks config file, and related infrastructure for tracking changes to the file.
|
||||
|
||||
use futures::StreamExt;
|
||||
use gpui::{AppContext, Context, Model, ModelContext, Subscription};
|
||||
use gpui::{AppContext, Context, Model, Subscription};
|
||||
use serde::Deserialize;
|
||||
use util::ResultExt;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,8 +8,7 @@ use sha2::{Digest, Sha256};
|
|||
use util::{truncate_and_remove_front, ResultExt};
|
||||
|
||||
use crate::{
|
||||
ResolvedTask, RunnableTag, SpawnInTerminal, TaskContext, TaskId, VariableName,
|
||||
ZED_VARIABLE_NAME_PREFIX,
|
||||
ResolvedTask, SpawnInTerminal, TaskContext, TaskId, VariableName, ZED_VARIABLE_NAME_PREFIX,
|
||||
};
|
||||
|
||||
/// A template definition of a Zed task to run.
|
||||
|
|
|
|||
|
|
@ -1,17 +1,11 @@
|
|||
use std::{
|
||||
path::{Path, PathBuf},
|
||||
sync::Arc,
|
||||
};
|
||||
use std::sync::Arc;
|
||||
|
||||
use ::settings::Settings;
|
||||
use anyhow::Context;
|
||||
use editor::{tasks::task_context, Editor};
|
||||
use gpui::{AppContext, ViewContext, WindowContext};
|
||||
use language::{BasicContextProvider, ContextProvider, Language};
|
||||
use language::Language;
|
||||
use modal::TasksModal;
|
||||
use project::{Location, TaskSourceKind, WorktreeId};
|
||||
use task::{ResolvedTask, TaskContext, TaskTemplate, TaskVariables};
|
||||
use util::ResultExt;
|
||||
use project::WorktreeId;
|
||||
use workspace::tasks::schedule_task;
|
||||
use workspace::{tasks::schedule_resolved_task, Workspace};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue