Skip to content

Commit 2f67705

Browse files
committed
cleanup: remove customization feature flag
1 parent 2befa25 commit 2f67705

File tree

3 files changed

+2
-26
lines changed

3 files changed

+2
-26
lines changed

packages/core/src/codewhisperer/ui/statusBarMenu.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ function getAmazonQCodeWhispererNodes() {
7777

7878
// Amazon Q + others
7979
createSeparator('Other Features'),
80-
...(AuthUtil.instance.isValidEnterpriseSsoInUse() && AuthUtil.instance.isCustomizationFeatureEnabled
81-
? [createSelectCustomization()]
82-
: []),
80+
...(AuthUtil.instance.isValidEnterpriseSsoInUse() ? [createSelectCustomization()] : []),
8381
switchToAmazonQNode(),
8482
]
8583
}

packages/core/src/codewhisperer/util/authUtil.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -77,26 +77,11 @@ export class AuthUtil {
7777
protected static readonly logIfChanged = onceChanged((s: string) => getLogger().info(s))
7878

7979
private reauthenticatePromptShown: boolean = false
80-
private _isCustomizationFeatureEnabled: boolean = false
8180

8281
// user should only see that screen once.
8382
// TODO: move to memento
8483
public hasAlreadySeenMigrationAuthScreen: boolean = false
8584

86-
public get isCustomizationFeatureEnabled(): boolean {
87-
return this._isCustomizationFeatureEnabled
88-
}
89-
90-
// This boolean controls whether the Select Customization node will be visible. A change to this value
91-
// means that the old UX was wrong and must refresh the devTool tree.
92-
public set isCustomizationFeatureEnabled(value: boolean) {
93-
if (this._isCustomizationFeatureEnabled === value) {
94-
return
95-
}
96-
this._isCustomizationFeatureEnabled = value
97-
void Commands.tryExecute('aws.amazonq.refreshStatusBar')
98-
}
99-
10085
public readonly secondaryAuth = getSecondaryAuth(
10186
this.auth,
10287
'codewhisperer',

packages/core/src/codewhisperer/util/customizationUtil.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ export async function notifyNewCustomizations() {
3333
let availableCustomizations: Customization[] = []
3434
try {
3535
availableCustomizations = await getAvailableCustomizationsList()
36-
AuthUtil.instance.isCustomizationFeatureEnabled = true
3736
} catch (error) {
38-
// On receiving any error, we will disable the customization feature
39-
AuthUtil.instance.isCustomizationFeatureEnabled = false
4037
await setSelectedCustomization(baseCustomization)
4138
getLogger().error(`Failed to fetch customizations: %O`, error)
4239
return
@@ -94,11 +91,7 @@ export const baseCustomization = {
9491
* @returns customization selected by users, `baseCustomization` if none is selected
9592
*/
9693
export const getSelectedCustomization = (): Customization => {
97-
if (
98-
!AuthUtil.instance.isCustomizationFeatureEnabled ||
99-
!AuthUtil.instance.isValidEnterpriseSsoInUse() ||
100-
!AuthUtil.instance.conn
101-
) {
94+
if (!AuthUtil.instance.isValidEnterpriseSsoInUse() || !AuthUtil.instance.conn) {
10295
return baseCustomization
10396
}
10497

0 commit comments

Comments
 (0)