diff options
author | Philipp Mildenberger | 2023-03-27 19:05:27 +0000 |
---|---|---|
committer | Philipp Mildenberger | 2023-05-18 19:48:32 +0000 |
commit | 7d4f7eb4bda6e507e253cb276ccce254fdd51575 (patch) | |
tree | 4c0a716b33e12d4ea175606d4a11da109ed58289 /helix-term/src | |
parent | 71551d395b4e47804df2d8ecea99e34dbbf16157 (diff) |
Fix 'WorkspaceConfiguration' request with empty configuration section strings
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/application.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index 45f99e48..53fbe37d 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -1058,8 +1058,11 @@ impl Application { .filter_map(|item| { let mut config = language_server.config()?; if let Some(section) = item.section.as_ref() { - for part in section.split('.') { - config = config.get(part)?; + // for some reason some lsps send an empty string (observed in 'vscode-eslint-language-server') + if !section.is_empty() { + for part in section.split('.') { + config = config.get(part)?; + } } } Some(config) |