-
Notifications
You must be signed in to change notification settings - Fork 26
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
Replaced the usage of deprecated method DumbService.runReadActionInSmartMode(Computable) #1207
Replaced the usage of deprecated method DumbService.runReadActionInSmartMode(Computable) #1207
Conversation
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've noticed that all the changes in this PR are to classes in the lsp4mp4ij package. These classes have been copied from Intellij Quarkus. We should check whether Red Hat has addressed these issues with using deprecated methods in their current code and consider contributing a PR if they have not. We periodically update LSP4MP4IJ from IntelliJ Quarkus. It is best from a maintenance perspective to be as close to the Red Hat version as possible as there is risk each time we update that we lose changes that have only been locally made in Liberty Tools for IntelliJ.
Sure @mrglavas. Let me have a look on the same |
@mrglavas The deprecated method Intellij Quarkus didn't replaced the deprecated references from LTI introduced Could you please let me know whether we need to raise a PR on Also can we raise a seperate PR in LTI to handle deprecation in |
@dessina-devasia I do think it would be a good idea to raise a PR against IntelliJ Quarkus for all of these changes. |
sure @mrglavas |
src/main/java/io/openliberty/tools/intellij/lsp4mp4ij/psi/core/ProjectLabelManager.java
Outdated
Show resolved
Hide resolved
…ady executed in a NonBlocking ReadAction
@mrglavas As discussed I've created a related issue #1420 and its PR in IntelliJ Quarkus. Please have a look. |
…eady executed in a NonBlocking ReadAction.
…dy executed in a NonBlocking ReadAction.
@dessina-devasia With the green builds I'm going to approve this one, but please keep in synch with the PR you opened in IntelliJ Quarkus if there are any further changes required. Also, can you update the description of this PR to describe the current changes? You don't seem to be using |
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.
Looks good. Thanks for following-up and opening the PR for IntelliJ Quarkus.
Thank you @mrglavas. I've updated this PR description as well |
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.
Looks good
@mrglavas, should we wait for the PR raised in IntelliJ Quarkus to be merged before proceeding with this PR? |
I think it would be best to wait. Once the PR is finalized in IntelliJ Quarkus, you can then make sure any adjustments from the IntelliJ Quarkus PR are also applied to this PR. |
Sure. Thank you @TrevCraw |
Seems the PR merged in IntelliJ Quarkus and the issue #1420 is closed. So, I'm merging this PR. Thank you! |
Hi @dessina-devasia , please update the PR description to state that this PR also fixes #1179 |
Sure @TrevCraw |
Fixes #1176 and #1179
The deprecated method
DumbService.runReadActionInSmartMode(Computable)
has been removed.Its replacement,
ReadAction.nonBlocking(...).inSmartMode(project).executeSynchronously()
, is not explicitly required here because the methodsProjectLabelManager.getProjectLabelInfo()
,PropertiesManager.findPropertyLocation()
, andDiagnosticsHandler.collectDiagnostics()
are already executed within a NonBlocking ReadAction.