debugger/tasks: Remove TaskType enum (#29208)
Closes #ISSUE Release Notes: - N/A --------- Co-authored-by: Cole Miller <m@cole-miller.net> Co-authored-by: Anthony Eid <hello@anthonyeid.me> Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com> Co-authored-by: Anthony <anthony@zed.dev> Co-authored-by: Conrad <conrad@zed.dev>
This commit is contained in:
parent
053fafa90e
commit
67615b968b
53 changed files with 1272 additions and 1114 deletions
|
@ -2,9 +2,9 @@ use std::{collections::HashMap, path::PathBuf, sync::OnceLock};
|
|||
|
||||
use anyhow::{Result, bail};
|
||||
use async_trait::async_trait;
|
||||
use dap::adapters::{InlineValueProvider, latest_github_release};
|
||||
use dap::adapters::{DebugTaskDefinition, InlineValueProvider, latest_github_release};
|
||||
use gpui::AsyncApp;
|
||||
use task::{DebugRequest, DebugTaskDefinition};
|
||||
use task::DebugRequest;
|
||||
|
||||
use crate::*;
|
||||
|
||||
|
@ -25,7 +25,10 @@ impl CodeLldbDebugAdapter {
|
|||
});
|
||||
let map = configuration.as_object_mut().unwrap();
|
||||
// CodeLLDB uses `name` for a terminal label.
|
||||
map.insert("name".into(), Value::String(config.label.clone()));
|
||||
map.insert(
|
||||
"name".into(),
|
||||
Value::String(String::from(config.label.as_ref())),
|
||||
);
|
||||
let request = config.request.to_dap();
|
||||
match &config.request {
|
||||
DebugRequest::Attach(attach) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue