Skip to content

Commit 4aac9e2

Browse files
rajcspsgMrSubidubi
andauthored
Update src/debugger.rs
Co-authored-by: Finn Evers <finn.evers@outlook.de>
1 parent a7133e9 commit 4aac9e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/debugger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ pub(crate) fn get_dap_binary(
110110
let configuration = serde_json::to_string(&merged)
111111
.map_err(|err| format!("Failed to serialize debug configuration: {err}"))?;
112112

113-
let cwd = project_root_from_config(&merged).or(Some(worktree.root_path()));
113+
let cwd = project_root_from_config(&merged).or_else(|| Some(worktree.root_path()));
114114
let envs = worktree.shell_env();
115115

116116
if let Some(debug_server) = merged.get("debugServer").and_then(|v| v.as_u64()) {

0 commit comments

Comments
 (0)