File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import {
2121import {
2222 AuthUtil ,
2323 CodeWhispererSettings ,
24+ FeatureConfigProvider ,
2425 getSelectedCustomization ,
2526 TelemetryHelper ,
2627 vsCodeState ,
@@ -339,7 +340,7 @@ async function onLanguageServerReady(
339340 // tutorial for inline chat
340341 const inlineChatTutorialAnnotation = new InlineChatTutorialAnnotation ( inlineTutorialAnnotation )
341342
342- const enableInlineRollback = true
343+ const enableInlineRollback = FeatureConfigProvider . instance . getPreFlareRollbackGroup ( ) === 'treatment'
343344 if ( enableInlineRollback ) {
344345 // use VSC inline
345346 await activateInline ( client )
Original file line number Diff line number Diff line change @@ -106,6 +106,20 @@ export class FeatureConfigProvider {
106106 }
107107 }
108108
109+ getPreFlareRollbackGroup ( ) : 'control' | 'treatment' | 'default' {
110+ const variation = this . featureConfigs . get ( Features . projectContextFeature ) ?. variation
111+ switch ( variation ) {
112+ case 'CONTROL' :
113+ return 'control'
114+ case 'TREATMENT' :
115+ return 'treatment'
116+ case 'DEFAULT' :
117+ return 'default'
118+ default :
119+ return 'default'
120+ }
121+ }
122+
109123 public async listFeatureEvaluations ( ) : Promise < ListFeatureEvaluationsResponse > {
110124 const profile = AuthUtil . instance . regionProfileManager . activeRegionProfile
111125 const request : ListFeatureEvaluationsRequest = {
You can’t perform that action at this time.
0 commit comments