diff options
author | Dmitry Sharshakov | 2021-08-24 08:32:44 +0000 |
---|---|---|
committer | Dmitry Sharshakov | 2021-08-24 08:32:44 +0000 |
commit | 34c6094604cfeca0c1338a20cf9e85bcd8d9b68b (patch) | |
tree | 14fdfd3df3619fde77619cde828670f973497ace /helix-term/src/commands.rs | |
parent | 2158366b24da8229e743546ccedc5cd05292e254 (diff) |
refactor
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r-- | helix-term/src/commands.rs | 6 |
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, |