-
Notifications
You must be signed in to change notification settings - Fork 275
fix(amazonq): Switch profiles if not selected in Q chat #5724
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
Changes from all commits
f6624a5
449c7cd
04c672f
b2dd29e
ca37aa1
a1145f1
74be353
1c1fb60
6d96e79
261f7c6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,6 @@ class AmazonQToolWindow private constructor( | |
|
|
||
| val component | ||
| get() = chatPanel.component | ||
|
|
||
| fun disposeAndRecreate() { | ||
| Disposer.dispose(chatPanel) | ||
| chatPanel = AmazonQPanel(project, scope) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @manodnyab will it help if we assign the new panel first then dispose the stale one?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe not, just tested
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. #5729 would fix the crash issue
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing this part, if 5729 fixes the crash |
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
not sure what will happen if we keep creating new panel and they are never disposed, will it cause memory leak (but idk how to test it..)
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.
yes we would need to dispose if we are creating new panels