Skip to content

Commit ba70e3e

Browse files
authored
Merge branch 'main' into add-file-creation-error
2 parents 6002f9b + b6cf072 commit ba70e3e

File tree

11 files changed

+37
-22
lines changed

11 files changed

+37
-22
lines changed

.changes/3.70.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"date" : "2025-05-08",
3+
"version" : "3.70",
4+
"entries" : [ {
5+
"type" : "feature",
6+
"description" : "Amazon Q: Support selecting customizations across all Q profiles with automatic profile switching for enterprise users"
7+
}, {
8+
"type" : "bugfix",
9+
"description" : "Do not always show 'Amazon Q Code Issues' tab when switching to the 'Problems' tool window"
10+
}, {
11+
"type" : "bugfix",
12+
"description" : "/dev: Fix missing Amazon Q feature dev auto build setting."
13+
}, {
14+
"type" : "bugfix",
15+
"description" : "increase /review timeout"
16+
}, {
17+
"type" : "bugfix",
18+
"description" : "Fix JavascriptLanguage not found on 2025.1+"
19+
} ]
20+
}

.changes/next-release/bugfix-54c0cf8a-9df5-4673-bf16-61a650434abc.json

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

.changes/next-release/bugfix-7920ece4-99d6-4828-931e-29b66994dc10.json

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

.changes/next-release/bugfix-7e09465d-6cb8-4180-9131-7ec6543db20c.json

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

.changes/next-release/feature-ae7d15f4-ae07-4faf-963a-6d83a85852e4.json

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

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# _3.70_ (2025-05-08)
2+
- **(Feature)** Amazon Q: Support selecting customizations across all Q profiles with automatic profile switching for enterprise users
3+
- **(Bug Fix)** Do not always show 'Amazon Q Code Issues' tab when switching to the 'Problems' tool window
4+
- **(Bug Fix)** /dev: Fix missing Amazon Q feature dev auto build setting.
5+
- **(Bug Fix)** increase /review timeout
6+
- **(Bug Fix)** Fix JavascriptLanguage not found on 2025.1+
7+
18
# _3.69_ (2025-04-28)
29
- **(Bug Fix)** Amazon Q: Fix issue where context menu items are not available after re-opening projects or restarting the IDE
310
- **(Bug Fix)** Fix LinkageError while attempting to do Amazon Q inline suggestions in certain environments

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.70-SNAPSHOT
5+
toolkitVersion=3.71-SNAPSHOT
66

77
# Publish Settings
88
publishToken=

plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/customization/CodeWhispererModelConfigurator.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ class DefaultCodeWhispererModelConfigurator : CodeWhispererModelConfigurator, Pe
9090
QRegionProfileSelectedListener.TOPIC,
9191
object : QRegionProfileSelectedListener {
9292
override fun onProfileSelected(project: Project, profile: QRegionProfile?) {
93-
switchCustomization(project, null)
93+
pluginAwareExecuteOnPooledThread {
94+
CodeWhispererModelConfigurator.getInstance().listCustomizations(project, passive = true)
95+
}
9496
}
9597
}
9698
)

plugins/amazonq/codewhisperer/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/codewhisperer/CodeWhispererModelConfiguratorTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ class CodeWhispererModelConfiguratorTest {
615615
}
616616

617617
@Test
618-
fun `should switch to default customization on profile changed`() {
618+
fun `profile switch should keep using existing customization if new list still contains that arn`() {
619619
val ssoConn = spy(LegacyManagedBearerSsoConnection(region = "us-east-1", startUrl = "url 1", scopes = Q_SCOPES))
620620
ToolkitConnectionManager.getInstance(projectRule.project).switchConnection(ssoConn)
621621
val oldCustomization = CodeWhispererCustomization("oldArn", "oldName", "oldDescription")
@@ -632,7 +632,7 @@ class CodeWhispererModelConfiguratorTest {
632632
.syncPublisher(QRegionProfileSelectedListener.TOPIC)
633633
.onProfileSelected(projectRule.project, null)
634634

635-
assertThat(sut.activeCustomization(projectRule.project)).isEqualTo(null)
635+
assertThat(sut.activeCustomization(projectRule.project)).isEqualTo(oldCustomization)
636636
}
637637

638638
@Test

plugins/core/jetbrains-ultimate/src-242-243/compat/com/intellij/lang/javascript/JavascriptLanguage.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
package compat.com.intellij.lang.javascript
55

6-
// probably not necessary, but inline to avoid loading this through core classpath
6+
// inline to avoid loading this through core classpath
77
inline val JavascriptLanguage
88
get() = com.intellij.lang.javascript.JavascriptLanguage.INSTANCE

0 commit comments

Comments
 (0)