You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(amazonq): reduce extra call of listAvailableCustomization (#5677)
Customization will only have "1" parent profile, so theoretically we don't need another call of listAvailableCustomization to check if the new profile has access to given profile or not. Instead, we could simply switch to default.
Copy file name to clipboardExpand all lines: plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/customization/CodeWhispererModelConfigurator.kt
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -90,9 +90,7 @@ class DefaultCodeWhispererModelConfigurator : CodeWhispererModelConfigurator, Pe
Copy file name to clipboardExpand all lines: plugins/amazonq/codewhisperer/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/codewhisperer/CodeWhispererModelConfiguratorTest.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -615,7 +615,7 @@ class CodeWhispererModelConfiguratorTest {
615
615
}
616
616
617
617
@Test
618
-
fun`profile switch should keep using existing customization if new list still contains that arn`() {
618
+
fun`should switch to default customization on profile changed`() {
619
619
val ssoConn = spy(LegacyManagedBearerSsoConnection(region ="us-east-1", startUrl ="url 1", scopes =Q_SCOPES))
0 commit comments