Skip to content
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

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

Enaium
Copy link
Contributor

@Enaium Enaium commented Jan 15, 2025

Fixes #746

@Enaium Enaium force-pushed the main branch 3 times, most recently from 5d64070 to 618a09c Compare January 16, 2025 04:23
Comment on lines -51 to -54
public void testGetSettingsIdentityOnEmptySections() {
String[] requestedPath = new String[0];
assertFindSettings(testJson, requestedPath, testJson);
}
Copy link
Contributor Author

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("[.]");
Copy link
Contributor Author

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

@Enaium Enaium requested a review from angelozerr January 16, 2025 11:02
@angelozerr
Copy link
Contributor

angelozerr commented Jan 17, 2025

Thanks so much, it looks great!

Last thing, could you add new tests with your language server and write 3 tests:

  • one test with JimmerDTO section
  • one test with JimmerDTO.Classpath section
  • one test with JimmerDTO.Classpath.FindBuilder section

Having those 3 tests will be nice to have a concrete sample.

@Enaium Enaium requested a review from angelozerr January 17, 2025 10:09
@angelozerr angelozerr merged commit 3cfe729 into redhat-developer:main Jan 17, 2025
6 checks passed
@angelozerr
Copy link
Contributor

Thanks @Enaium !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

workspace/configuration does not work when section contains dot.
2 participants