Skip to content

Commit

Permalink
Add cwd parameter which is not optional anymore
Browse files Browse the repository at this point in the history
cwd field has been changed in helix-editor#2959 by making it a required field.
However, when starting the debugging session, cwd is not set, causing
an error in the deserialization part. Manually set cwd to the current
directory as a quick fix.
  • Loading branch information
danyspin97 committed Jul 29, 2022
1 parent 681c0a9 commit e8d33bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helix-term/src/commands/dap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ pub fn dap_start_impl(
}
}

args.insert("cwd", to_value(std::env::current_dir().unwrap())?);

let args = to_value(args).unwrap();

let callback = |_editor: &mut Editor, _compositor: &mut Compositor, _response: Value| {
Expand Down

0 comments on commit e8d33bc

Please sign in to comment.