-
Notifications
You must be signed in to change notification settings - Fork 13
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
Versionless feature 1.0 (#296) #297
Conversation
* Versionless feature changes. Added platform component Signed-off-by: Arun Venmany <[email protected]> * Versionless feature changes. Added hover for platform component Signed-off-by: Arun Venmany <[email protected]> * Versionless feature changes. modified diagnostics Signed-off-by: Arun Venmany <[email protected]> * Versionless feature changes. modified diagnostics Signed-off-by: Arun Venmany <[email protected]> * Versionless feature changes. adding more diagnostic scenarios Signed-off-by: Arun Venmany <[email protected]> --------- Signed-off-by: Arun Venmany <[email protected]>
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 reviewed everything except the LibertyDiagnosticParticipant and the LibertyDiagnosticTest. I am going to take a break now and come back to it later. Overall it looks very good and a lot of my comments are minor.
...erty/src/main/java/io/openliberty/tools/langserver/lemminx/LibertyCompletionParticipant.java
Outdated
Show resolved
Hide resolved
...erty/src/main/java/io/openliberty/tools/langserver/lemminx/LibertyCompletionParticipant.java
Outdated
Show resolved
Hide resolved
...erty/src/main/java/io/openliberty/tools/langserver/lemminx/LibertyCompletionParticipant.java
Outdated
Show resolved
Hide resolved
...erty/src/main/java/io/openliberty/tools/langserver/lemminx/LibertyCompletionParticipant.java
Show resolved
Hide resolved
...erty/src/main/java/io/openliberty/tools/langserver/lemminx/LibertyCompletionParticipant.java
Show resolved
Hide resolved
...x-liberty/src/main/java/io/openliberty/tools/langserver/lemminx/services/FeatureService.java
Outdated
Show resolved
Hide resolved
...inx-liberty/src/main/java/io/openliberty/tools/langserver/lemminx/util/LibertyConstants.java
Outdated
Show resolved
Hide resolved
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 reviewed the LibertyDiagnosticTest and some of LibertyDiagnosticParticipant. But until I get clarification from Chuck on whether they can specify both versioned features and platform elements at the same time, I don't want to make more comments.
lemminx-liberty/src/test/java/io/openliberty/LibertyDiagnosticTest.java
Outdated
Show resolved
Hide resolved
lemminx-liberty/src/test/java/io/openliberty/LibertyDiagnosticTest.java
Outdated
Show resolved
Hide resolved
lemminx-liberty/src/test/java/io/openliberty/LibertyDiagnosticTest.java
Outdated
Show resolved
Hide resolved
Diagnostic invalid5 = new Diagnostic(); | ||
invalid5.setRange(r(2, 24, 2, 33)); | ||
invalid5.setCode(LibertyDiagnosticParticipant.INCORRECT_FEATURE_CODE); | ||
invalid5.setMessage("ERROR: \"batch-1.0\" cannot be used since selected platform(s) [javaee-7.0, javaee-8.0, jakartaee-9.1] do not match with supported platform(s) [javaee-7.0, javaee-8.0]"); |
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 will check with Chuck on this one, but we are supposed to use the platform to resolve the version for the versionless features...not really the versioned features. There is no versionless feature in this list. I don't think we want to flag this diagnostic.
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.
okay. I was under the assumption that if
- multiple versioned features are provided and if there is no common platform , then throw error
- versionless and are provided, but no common platform , then throw error
- versionless and versioned and are provided and no common platform , throw error
If above 3 cases are expected, then I think the scenario of multiple versioned features and is provided, then there should be a check for common platform
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.
We will not validate the versioned features with the specified <platform>
elements. This diagnostic should be removed.
...erty/src/main/java/io/openliberty/tools/langserver/lemminx/LibertyDiagnosticParticipant.java
Outdated
Show resolved
Hide resolved
...erty/src/main/java/io/openliberty/tools/langserver/lemminx/LibertyDiagnosticParticipant.java
Outdated
Show resolved
Hide resolved
...erty/src/main/java/io/openliberty/tools/langserver/lemminx/LibertyDiagnosticParticipant.java
Outdated
Show resolved
Hide resolved
...erty/src/main/java/io/openliberty/tools/langserver/lemminx/LibertyDiagnosticParticipant.java
Outdated
Show resolved
Hide resolved
...erty/src/main/java/io/openliberty/tools/langserver/lemminx/LibertyDiagnosticParticipant.java
Show resolved
Hide resolved
* Versionless feature changes. Added platform component Signed-off-by: Arun Venmany <[email protected]> * Versionless feature changes. Added hover for platform component Signed-off-by: Arun Venmany <[email protected]> * Versionless feature changes. modified diagnostics Signed-off-by: Arun Venmany <[email protected]> * Versionless feature changes. modified diagnostics Signed-off-by: Arun Venmany <[email protected]> * Versionless feature changes. adding more diagnostic scenarios Signed-off-by: Arun Venmany <[email protected]> * Versionless feature changes. code changes based on review comments Signed-off-by: Arun Venmany <[email protected]> --------- Signed-off-by: Arun Venmany <[email protected]>
Versionless feature changes. Added platform component
Versionless feature changes. Added hover for platform components
platform diagnostic scenarios
Versioned feature and platform validation diagnostics
Version less feature and platform validation diagnostics