-
Notifications
You must be signed in to change notification settings - Fork 29
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
feat: Resolve system properties/environment variables while browsing the application.properties values #456
Conversation
...lsp4mp.ls/src/main/java/org/eclipse/lsp4mp/extensions/sysenv/SysEnvItemMetadataProvider.java
Outdated
Show resolved
Hide resolved
8a5a549
to
19697a8
Compare
Hovering on the system property/environment variable names causes an error popup, and the following is logged in the language server logs: Request failed: Request microprofile/propertyDocumentation failed with message: Command 'microprofile/propertyDocumentation' must be called with required MicroProfilePropertyDocumentationParams.sourceType! (-32603). |
@datho7561 I cannot reproduce it, could you share a simple example please. |
Opening completions at the quarkus.application.name=${ASDF|} I am given options corresponding to environment variables. Accepting the suggestion ASDF_DIR results in quarkus.application.name=| update: this only seems to be happening to the environment variable results, the Java property ones work fine. |
hovering-environment-variable-fails.mp4The value of |
cbd2fbb
to
d0d87ac
Compare
It should be fixed. |
...lsp4mp.ls/src/main/java/org/eclipse/lsp4mp/extensions/sysenv/SysEnvItemMetadataProvider.java
Outdated
Show resolved
Hide resolved
d0d87ac
to
aa9fe91
Compare
They were several issues with completion default items that I have fixed, it should work correctly now. I need to write tests again. |
28f3d75
to
e07a229
Compare
Sounds good. I checked out the latest commit and confirmed that's working. Once the tests are in place I think it's ready to go. |
9ecce12
to
8011bdb
Compare
6fa4c50
to
da276c5
Compare
application.properties values Fixes eclipse#448 Signed-off-by: azerr <azerr@redhat.com>
da276c5
to
8527362
Compare
Thanks @datho7561 ! I wrote a lot of tests and I merge it since CI build is working well. |
feat: Resolve system properties/environment variables while browsing the application.properties values
Fixes #448
Here the result:
//cc @gastaldi