-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Allow requesting flat scalar values in workspace/configuration #748
Conversation
src/main/java/com/redhat/devtools/lsp4ij/client/LanguageClientImpl.java
Outdated
Show resolved
Hide resolved
5d64070
to
618a09c
Compare
public void testGetSettingsIdentityOnEmptySections() { | ||
String[] requestedPath = new String[0]; | ||
assertFindSettings(testJson, requestedPath, testJson); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
string array is never empty
@@ -248,14 +248,13 @@ protected Object findSettings(@Nullable String section) { | |||
if (section == null) { | |||
return config; | |||
} | |||
String[] sections = section.split("[.]"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
string array is never empty
src/test/java/com/redhat/devtools/lsp4ij/client/SettingsHelperTest.java
Outdated
Show resolved
Hide resolved
Thanks so much, it looks great! Last thing, could you add new tests with your language server and write 3 tests:
Having those 3 tests will be nice to have a concrete sample. |
Thanks @Enaium ! |
Fixes #746