debugger: Use current worktree directory when spawning an adapter (#31054)
/cc @osiewicz I think bringing this back should fix **bloveless** his issue with go debugger. This is also nice, so people are not forced to give us a working directory, because most adapters will use their **cwd** as the project root directory. For JavaScript, you don't need to specify the **cwd** anymore because it can already infer it Release Notes: - debugger beta: Fixed some adapters fail to determine the right root level of the debug program.
This commit is contained in:
parent
1c9b818342
commit
0415e853d5
6 changed files with 6 additions and 6 deletions
|
@ -184,7 +184,7 @@ impl DebugAdapter for GdbDebugAdapter {
|
|||
command: gdb_path,
|
||||
arguments: vec!["-i=dap".into()],
|
||||
envs: HashMap::default(),
|
||||
cwd: None,
|
||||
cwd: Some(delegate.worktree_root_path().to_path_buf()),
|
||||
connection: None,
|
||||
request_args,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue