aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r--helix-term/src/commands.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 74466e7e..8c1cd5d8 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -4422,11 +4422,7 @@ fn dap_start(cx: &mut Context) {
let request = debugger.initialize(config.name);
let _ = block_on(request).unwrap();
- let sessions = cx
- .editor
- .syn_loader
- .language_config_for_file_name(&path)
- .and_then(|x| x.debug_configs.clone());
+ let sessions = doc.language_config().and_then(|x| x.debug_configs.clone());
let sessions = match sessions {
Some(c) => c,