Skip to content

Commit 75cdbf8

Browse files
committed
fix(notifications): dismiss command visible in command palette
1 parent f805f9b commit 75cdbf8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/amazonq/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
{
199199
"id": "aws.amazonq.notifications",
200200
"name": "%AWS.notifications.title%",
201-
"when": "!isCloud9 && !aws.isSageMaker && aws.amazonq.notifications.show"
201+
"when": "!(isCloud9 || aws.isSageMaker) && aws.amazonq.notifications.show"
202202
},
203203
{
204204
"type": "webview",
@@ -493,7 +493,7 @@
493493
"command": "_aws.amazonq.notifications.dismiss",
494494
"title": "%AWS.generic.dismiss%",
495495
"category": "%AWS.amazonq.title%",
496-
"enablement": "isCloud9 || !aws.isWebExtHost",
496+
"enablement": "view == aws.amazonq.notifications",
497497
"icon": "$(remove-close)"
498498
},
499499
{

packages/toolkit/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@
732732
{
733733
"id": "aws.toolkit.notifications",
734734
"name": "%AWS.notifications.title%",
735-
"when": "!isCloud9 && !aws.isSageMaker && aws.toolkit.notifications.show"
735+
"when": "!(isCloud9 || aws.isSageMaker) && aws.toolkit.notifications.show"
736736
},
737737
{
738738
"id": "aws.amazonq.codewhisperer",
@@ -2231,7 +2231,7 @@
22312231
"command": "_aws.toolkit.notifications.dismiss",
22322232
"title": "%AWS.generic.dismiss%",
22332233
"category": "%AWS.title%",
2234-
"enablement": "isCloud9 || !aws.isWebExtHost",
2234+
"enablement": "view == aws.toolkit.notifications",
22352235
"icon": "$(remove-close)"
22362236
},
22372237
{

0 commit comments

Comments
 (0)