Skip to content

Commit 999b24a

Browse files
vpbhargavBhargava Varadharajan
andauthored
fix(q): Remove Q Show Logs menu option from non Q views (aws#8301)
**Description** Noticed that if Q extension is installed alongside AWS Toolkit, the Show Logs option redirecting to Q logs were showing up in the toolkit views as well. This does not make sense, especially for SMUS as it is misleading. <img width="1045" height="483" alt="image" src="https://github.com/user-attachments/assets/9938af48-c039-4a89-b2fa-97ba93a6e235" /> Change now shows this only for amazonq views similar to the learn more option. **Motivation** Remove misleading show logs option from non Q views **Testing Done** Tested locally that it no longer shows up in Toolkit but shows in Q. <img width="1117" height="333" alt="image" src="https://github.com/user-attachments/assets/750590e1-e4c8-47c9-af4d-4adf9511680c" /> <img width="972" height="476" alt="image" src="https://github.com/user-attachments/assets/06bfdd91-0770-49eb-890a-46789a96813c" /> --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license. Co-authored-by: Bhargava Varadharajan <[email protected]>
1 parent 95827a2 commit 999b24a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Bug Fix",
3+
"description": "Remove show logs menu item for non Q views"
4+
}

packages/amazonq/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@
415415
},
416416
{
417417
"command": "aws.amazonq.showLogs",
418-
"when": "!aws.isSageMakerUnifiedStudio",
418+
"when": "(view =~ /^aws\\.amazonq/) && !aws.isSageMakerUnifiedStudio",
419419
"group": "1_amazonQ@5"
420420
},
421421
{

0 commit comments

Comments
 (0)