Skip to content

Conversation

@rli
Copy link
Contributor

@rli rli commented Sep 13, 2024

#4868

CodeWhispererService#showRecommendationsInPopup was previously running on EDT, which caused issues when we need to wait for the fairly expensive call chain for promptReauth if the connection is expired. This is very visible in the offline case.

Fix by moving all the operations onto a background worker and limiting invocations to one at a time. This caused some issues with the test suite since they assumed that showRecommendationsInPopup would block until background operations have initialized, which was worked around by passing along job tracking

Regression test for this case added in #4891

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions
Copy link

github-actions bot commented Sep 13, 2024

Qodana Community for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

@rli rli marked this pull request as ready for review September 18, 2024 18:59
@rli rli requested review from a team as code owners September 18, 2024 18:59
@rli rli merged commit f8db362 into main Sep 19, 2024
6 of 8 checks passed
@rli rli deleted the rli/fix-freeze-expired-token-1 branch September 19, 2024 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants