File tree 3 files changed +4
-5
lines changed
packages/core/src/amazonq/webview 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -87,8 +87,6 @@ export function dispatchWebViewMessagesToApps(
87
87
return
88
88
}
89
89
case 'message-dismissed' : {
90
- // eslint-disable-next-line aws-toolkits/no-console-log
91
- console . log ( 'message-dismissed' , msg )
92
90
if ( msg . messageId === 'programmerModeCardId' ) {
93
91
void globals . globalState . tryUpdate ( 'aws.amazonq.dismissedCards' , true )
94
92
}
Original file line number Diff line number Diff line change @@ -1005,6 +1005,9 @@ export const createMynahUI = (
1005
1005
connector . onPromptInputOptionChange ( tabId , optionsValues )
1006
1006
} ,
1007
1007
onMessageDismiss : ( tabId , messageId ) => {
1008
+ if ( messageId === 'programmerModeCardId' ) {
1009
+ tabDataGenerator . dismissedCards = true
1010
+ }
1008
1011
connector . onMessageDismiss ( tabId , messageId )
1009
1012
} ,
1010
1013
onFileClick : connector . onFileClick ,
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export class TabDataGenerator {
28
28
public quickActionsGenerator : QuickActionGenerator
29
29
private highlightCommand ?: FeatureContext
30
30
private regionProfile ?: RegionProfile
31
- private dismissedCards ?: boolean
31
+ public dismissedCards ?: boolean
32
32
33
33
constructor ( props : TabDataGeneratorProps ) {
34
34
this . followUpsGenerator = new FollowUpGenerator ( )
@@ -64,8 +64,6 @@ export class TabDataGenerator {
64
64
const programmerModeCardId = 'programmerModeCardId'
65
65
66
66
const isProgrammerModeCardDismissed = this . dismissedCards
67
- // eslint-disable-next-line aws-toolkits/no-console-log
68
- console . log ( 'trueOrFalse' , isProgrammerModeCardDismissed )
69
67
const programmerModeCard : ChatItem | undefined = ! isProgrammerModeCardDismissed
70
68
? ( {
71
69
type : ChatItemType . ANSWER ,
You can’t perform that action at this time.
0 commit comments