Skip to content

Commit bb3fce9

Browse files
committed
revert previous commit
1 parent 6fc5656 commit bb3fce9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

0 commit comments

Comments
 (0)