-
Notifications
You must be signed in to change notification settings - Fork 205
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
kie-issues#114: JavaCodeCompletion module fails to compile because of API change #2453
Conversation
# Conflicts: # packages/vscode-java-code-completion-extension-plugin/vscode-java-code-completion-extension-plugin-core/src/main/java/org/kogito/core/internal/handlers/GetAccessorsHandler.java # pnpm-lock.yaml
# Conflicts: # packages/vscode-java-code-completion-extension-plugin/vscode-java-code-completion-extension-plugin-core/src/main/java/org/kogito/core/internal/handlers/GetAccessorsHandler.java
# Conflicts: # packages/vscode-java-code-completion-extension-plugin/vscode-java-code-completion-extension-plugin-core/src/main/java/org/kogito/core/internal/handlers/GetAccessorsHandler.java
…14-latest # Conflicts: # packages/import-java-classes-component/tests/ImportJavaClasses/ImportJavaClasses.test.tsx
@@ -1,7 +1,7 @@ | |||
package com.redhat; | |||
package org.kie; |
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 guess org.apache.kie
would be more future-proof...
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.
Updated @tiagobento
Thanks @yesamer! It's been a long long journey. I respect the patience and the resilience!!! 💪 |
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.
@yesamer thank you for the PR. I did not find an issue during my manual check.
Finally closes apache/incubator-kie-issues#114
One year ago the JDT.LS API suddenly changed breaking the Java class "Fetching" mechanism we had in place.
We that change, it was no longer possible to retrieve a class FQCN, which is a required property for the "Fetching" mechanism to properly work.
In the latest release, the API now supports the TypeHierarchy command: given a class name, that command can retrieve the class hierarchy and the first items represent the class itself in FQCN format.
To restore the "Fetching" feature, we can then rely on this new command.
For example, if we use that command on a String type variable, this will return:

The first item contains exactly what we need.
Screen.Recording.2024-06-12.at.10.37.29.mov