-
Notifications
You must be signed in to change notification settings - Fork 15
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
Support microprofile-config.properties on JDT LS side #199
Conversation
7b67303
to
10a7897
Compare
This PR gives the capability to load properties from To test it, you can play with the
There is a JUnit test with this usecase. Please note this PR will help to manage application.yaml by implementing a new IConfigSource (like YAMLConfigSource for issues #195 and #196 |
10a7897
to
ff19302
Compare
...le.jdt.core/src/main/java/com/redhat/microprofile/jdt/internal/core/project/IConfigFile.java
Outdated
Show resolved
Hide resolved
be1b189
to
f3109ec
Compare
@fbricon test are fixed now. |
...rofile.jdt.core/src/main/java/com/redhat/microprofile/jdt/core/PropertiesManagerForJava.java
Outdated
Show resolved
Hide resolved
...re/src/main/java/com/redhat/microprofile/jdt/internal/core/project/AbstractConfigSource.java
Outdated
Show resolved
Hide resolved
public class JDTMicroProfileProject { | ||
|
||
public static final String MICROPROFILE_CONFIG_PROPERTIES_FILE = "META-INF/microprofile-config.properties"; | ||
public static final String APPLICATION_PROPERTIES_FILE = "application.properties"; |
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.
those will need to be decoupled eventually
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.
I agree we should manage that with new extension point (like we have done for properties provider), but I think we should create a new issue for that which is not trivial.
|
||
private final List<IConfigSource> configSources; | ||
|
||
private static final String QUARKUS_HTTP_PORT = "quarkus.http.port"; |
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.
will need to be decoupled eventually, as it's a quarkus thing, not an MP thing
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.
I agree we should manage that with new extension point (like we have done for properties provider), but I think we should create a new issue for that which is not trivial.
4acedec
to
f9e5cd9
Compare
See redhat-developer/vscode-quarkus#181 Signed-off-by: azerr <azerr@redhat.com>
Support microprofile-config.properties on JDT LS side
See redhat-developer/vscode-quarkus#181
Signed-off-by: azerr azerr@redhat.com