Add support for detecting tests in source files, and implement it for Rust (#11195)
Continuing work from #10873 Release Notes: - N/A --------- Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
parent
14c7782ce6
commit
5a71d8c7f1
29 changed files with 1148 additions and 606 deletions
|
@ -1,6 +1,6 @@
|
|||
use std::sync::Arc;
|
||||
|
||||
use crate::{active_item_selection_properties, schedule_resolved_task};
|
||||
use crate::active_item_selection_properties;
|
||||
use fuzzy::{StringMatch, StringMatchCandidate};
|
||||
use gpui::{
|
||||
impl_actions, rems, AppContext, DismissEvent, EventEmitter, FocusableView, InteractiveElement,
|
||||
|
@ -16,7 +16,7 @@ use ui::{
|
|||
Tooltip, WindowContext,
|
||||
};
|
||||
use util::ResultExt;
|
||||
use workspace::{ModalView, Workspace};
|
||||
use workspace::{tasks::schedule_resolved_task, ModalView, Workspace};
|
||||
|
||||
use serde::Deserialize;
|
||||
|
||||
|
@ -211,12 +211,11 @@ impl PickerDelegate for TasksModalDelegate {
|
|||
return Vec::new();
|
||||
};
|
||||
let (used, current) =
|
||||
picker.delegate.inventory.update(cx, |inventory, cx| {
|
||||
picker.delegate.inventory.update(cx, |inventory, _| {
|
||||
inventory.used_and_current_resolved_tasks(
|
||||
language,
|
||||
worktree,
|
||||
&picker.delegate.task_context,
|
||||
cx,
|
||||
)
|
||||
});
|
||||
picker.delegate.last_used_candidate_index = if used.is_empty() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue