Skip to content

Commit e3660b4

Browse files
committed
aaa
2 parents 8bf871b + ab902a3 commit e3660b4

File tree

6 files changed

+20
-7
lines changed

6 files changed

+20
-7
lines changed

.changes/3.64.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"date" : "2025-04-10",
3+
"version" : "3.64",
4+
"entries" : [ {
5+
"type" : "bugfix",
6+
"description" : "Fix issue where IDE freezes when logging into Amazon Q"
7+
} ]
8+
}

.changes/next-release/bugfix-1162ea20-1fcf-43a6-b502-16d8b7d588d7.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# _3.63_ (2025-04-09)
1+
# _3.64_ (2025-04-10)
2+
- **(Bug Fix)** Fix issue where IDE freezes when logging into Amazon Q
3+
4+
# _3.63_ (2025-04-08)
25
- **(Feature)** Enterprise users can choose their preferred Amazon Q profile to improve personalization and workflow across different business regions
36
- **(Bug Fix)** Amazon Q /doc: close diff tab and open README file in preview mode after user accept changes
47

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
# Toolkit Version
5-
toolkitVersion=3.64-SNAPSHOT
5+
toolkitVersion=3.65-SNAPSHOT
66

77
# Publish Settings
88
publishToken=

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import com.intellij.ui.dsl.builder.Align
1818
import com.intellij.ui.dsl.builder.panel
1919
import com.intellij.ui.jcef.JBCefJSQuery
2020
import org.cef.CefApp
21+
import software.aws.toolkits.core.utils.debug
2122
import software.aws.toolkits.core.utils.error
2223
import software.aws.toolkits.core.utils.getLogger
2324
import software.aws.toolkits.core.utils.warn
@@ -293,6 +294,11 @@ class QWebviewBrowser(val project: Project, private val parentDisposable: Dispos
293294
null
294295
}
295296

297+
if (profiles?.size == 1) {
298+
LOG.debug { "User only have access to 1 Q profile, auto-selecting profile ${profiles.first().profileName} for ${project.name}" }
299+
QRegionProfileManager.getInstance().switchProfile(project, profiles.first(), QProfileSwitchIntent.Update)
300+
}
301+
296302
// required EDT as this entire block is executed on thread pool
297303
runInEdt {
298304
val jsonData = """

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class AmazonQToolWindowFactory : ToolWindowFactory, DumbAware {
9797
override fun onProfileSelected(project: Project, profile: QRegionProfile?) {
9898
if (project.isDisposed) return
9999
AmazonQToolWindow.getInstance(project).disposeAndRecreate()
100-
prepareChatContent(project, qPanel)
100+
qPanel.setContent(AmazonQToolWindow.getInstance(project).component)
101101
}
102102
}
103103
)

0 commit comments

Comments
 (0)