Skip to content

Commit 818e5ae

Browse files
authored
Merge branch 'feature/q-lsp' into feature/q-lsp
2 parents da0da7f + a64c229 commit 818e5ae

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "Q panel will get stuck while signin if users have multiple windows"
4+
}

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/toolwindow/AmazonQToolWindowFactory.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ class AmazonQToolWindowFactory : ToolWindowFactory, DumbAware {
9595
project.messageBus.connect(toolWindow.disposable).subscribe(
9696
QRegionProfileSelectedListener.TOPIC,
9797
object : QRegionProfileSelectedListener {
98-
override fun onProfileSelected(project: Project, profile: QRegionProfile?) {
98+
// note we name myProject intentionally ow it will shadow the "project" provided by the IDE
99+
override fun onProfileSelected(myProject: Project, profile: QRegionProfile?) {
99100
if (project.isDisposed) return
100101
AmazonQToolWindow.getInstance(project).disposeAndRecreate()
101102
qPanel.setContent(AmazonQToolWindow.getInstance(project).component)

0 commit comments

Comments
 (0)