Skip to content

Commit

Permalink
Use adapter name as id for initialize request
Browse files Browse the repository at this point in the history
  • Loading branch information
RemcoSmitsDev committed Feb 25, 2025
1 parent 3c65060 commit f12b3c9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/project/src/debugger/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,9 @@ impl LocalMode {
let adapter = build_adapter(&disposition.kind).await?;

let binary = cx.update(|cx| {
let name = DebugAdapterName::from(adapter.name().as_ref());

ProjectSettings::get_global(cx)
.dap
.get(&name)
.get(&adapter.name())
.and_then(|s| s.binary.as_ref().map(PathBuf::from))
})?;

Expand Down Expand Up @@ -277,7 +275,7 @@ impl LocalMode {
let capabilities = this
.request(
Initialize {
adapter_id: "zed-dap-this-value-needs-changing".to_owned(),
adapter_id: adapter.name().to_string().to_owned(),
},
cx.background_executor().clone(),
)
Expand Down

0 comments on commit f12b3c9

Please sign in to comment.