on master help sign in
Fix 'WorkspaceConfiguration' request with empty configuration section strings
7d4f7ebPhilipp Mildenberger
helix-term/src/application.rs+5−2
@@ -1058,8 +1058,11 @@ impl Application {
1058 .filter_map(|item| {
1058 .filter_map(|item| {
1059 let mut config = language_server.config()?;
1059 let mut config = language_server.config()?;
1060 if let Some(section) = item.section.as_ref() {
1060 if let Some(section) = item.section.as_ref() {
1061+ // for some reason some lsps send an empty string (observed in 'vscode-eslint-language-server')
1062+ if !section.is_empty() {
1061− for part in section.split('.') {
1063+ for part in section.split('.') {
1062− config = config.get(part)?;
1064+ config = config.get(part)?;
1065+ }
1063 }
1066 }
1064 }
1067 }
1065 Some(config)
1068 Some(config)