Skip to content

Commit

Permalink
Fix merge adapter args with config initialize args
Browse files Browse the repository at this point in the history
  • Loading branch information
RemcoSmitsDev committed Feb 25, 2025
1 parent 66d6b79 commit 3c65060
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/project/src/debugger/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use std::{
};
use task::DebugAdapterConfig;
use text::{PointUtf16, ToPointUtf16};
use util::ResultExt;
use util::{merge_json_value_into, ResultExt};

#[derive(Debug, Copy, Clone, Hash, PartialEq, PartialOrd, Ord, Eq)]
#[repr(transparent)]
Expand Down Expand Up @@ -283,7 +283,8 @@ impl LocalMode {
)
.await?;

let raw = adapter.request_args(&disposition);
let mut raw = adapter.request_args(&disposition);
merge_json_value_into(disposition.initialize_args.unwrap_or(json!({})), &mut raw);

// Of relevance: https://github.com/microsoft/vscode/issues/4902#issuecomment-368583522
let launch = this.request(Launch { raw }, cx.background_executor().clone());
Expand Down

0 comments on commit 3c65060

Please sign in to comment.