Skip to content

Conversation

@samgst-amazon
Copy link
Contributor

Tests were failing perhaps due to mesasgeBus implementations missing a parentDisposable

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Description

Checklist

  • My code follows the code style of this project
  • I have added tests to cover my changes
  • A short description of the change has been added to the CHANGELOG if the change is customer-facing in the IDE.
  • I have added metrics for my changes (if required)

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 Jan 23, 2025

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]

Comment on lines 40 to 42
class AmazonQToolWindowFactory(
private val disposable: Disposable,
) : ToolWindowFactory, DumbAware {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't believe the platform supports injecting the disposable like this. ToolWindowFactory is supposed to be an application-global stateless singleton, so i think you would want to fetch the disposable instance from the tool window instead.

@samgst-amazon samgst-amazon marked this pull request as ready for review January 23, 2025 23:23
@samgst-amazon samgst-amazon requested review from a team as code owners January 23, 2025 23:23
@andrewyuq andrewyuq enabled auto-merge (squash) January 24, 2025 02:47
@andrewyuq andrewyuq merged commit 325d1d7 into main Jan 24, 2025
14 of 15 checks passed
@andrewyuq andrewyuq deleted the samgst/parentDisposableMessageBus branch January 24, 2025 03:18
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