Display more specific tasks above in the modal (#10485)

This commit is contained in:
Kirill Bulatov 2024-04-12 20:19:11 +02:00 committed by GitHub
parent 49371b44cb
commit 28586060a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 262 additions and 148 deletions

View file

@ -102,7 +102,7 @@ impl TasksModalDelegate {
};
Some((
source_kind,
new_oneshot.resolve_task(&id_base, self.task_context.clone())?,
new_oneshot.resolve_task(&id_base, &self.task_context)?,
))
}
@ -212,7 +212,7 @@ impl PickerDelegate for TasksModalDelegate {
inventory.used_and_current_resolved_tasks(
language,
worktree,
picker.delegate.task_context.clone(),
&picker.delegate.task_context,
cx,
)
});
@ -403,7 +403,6 @@ impl PickerDelegate for TasksModalDelegate {
}
}
// TODO kb more tests on recent tasks from language templates
#[cfg(test)]
mod tests {
use gpui::{TestAppContext, VisualTestContext};