Skip to content

Commit 7b24017

Browse files
committed
fix
1 parent 242b965 commit 7b24017

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

packages/core/src/amazonq/webview/messages/messageDispatcher.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ export function dispatchWebViewMessagesToApps(
8787
return
8888
}
8989
case 'message-dismissed': {
90-
// eslint-disable-next-line aws-toolkits/no-console-log
91-
console.log('message-dismissed', msg)
9290
if (msg.messageId === 'programmerModeCardId') {
9391
void globals.globalState.tryUpdate('aws.amazonq.dismissedCards', true)
9492
}

packages/core/src/amazonq/webview/ui/main.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,6 +1005,9 @@ export const createMynahUI = (
10051005
connector.onPromptInputOptionChange(tabId, optionsValues)
10061006
},
10071007
onMessageDismiss: (tabId, messageId) => {
1008+
if (messageId === 'programmerModeCardId') {
1009+
tabDataGenerator.dismissedCards = true
1010+
}
10081011
connector.onMessageDismiss(tabId, messageId)
10091012
},
10101013
onFileClick: connector.onFileClick,

packages/core/src/amazonq/webview/ui/tabs/generator.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class TabDataGenerator {
2828
public quickActionsGenerator: QuickActionGenerator
2929
private highlightCommand?: FeatureContext
3030
private regionProfile?: RegionProfile
31-
private dismissedCards?: boolean
31+
public dismissedCards?: boolean
3232

3333
constructor(props: TabDataGeneratorProps) {
3434
this.followUpsGenerator = new FollowUpGenerator()
@@ -64,8 +64,6 @@ export class TabDataGenerator {
6464
const programmerModeCardId = 'programmerModeCardId'
6565

6666
const isProgrammerModeCardDismissed = this.dismissedCards
67-
// eslint-disable-next-line aws-toolkits/no-console-log
68-
console.log('trueOrFalse', isProgrammerModeCardDismissed)
6967
const programmerModeCard: ChatItem | undefined = !isProgrammerModeCardDismissed
7068
? ({
7169
type: ChatItemType.ANSWER,

0 commit comments

Comments
 (0)