We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 630cc4e commit 7ba92d6Copy full SHA for 7ba92d6
src/ruby.rs
@@ -243,7 +243,7 @@ impl zed::Extension for RubyExtension {
243
command: Some(rdbg_path.to_string()),
244
arguments,
245
connection: Some(connection),
246
- cwd: ruby_config.cwd,
+ cwd: ruby_config.cwd.or_else(|| Some(worktree.root_path())),
247
envs: ruby_config.env.into_iter().collect(),
248
request_args: StartDebuggingRequestArguments {
249
configuration: configuration.to_string(),
0 commit comments