From ba03f63efec0f66c48e15986b4ec6fd52b0350c1 Mon Sep 17 00:00:00 2001 From: Randall-Jiang Date: Thu, 26 Jun 2025 22:02:46 -0700 Subject: [PATCH 1/3] comment out title from IDE side --- packages/amazonq/src/lsp/chat/commands.ts | 17 +++++++++-------- packages/amazonq/src/lsp/client.ts | 1 + .../webview/ui/quickActions/generator.ts | 2 +- .../amazonq/webview/ui/quickActions/handler.ts | 6 +++--- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/packages/amazonq/src/lsp/chat/commands.ts b/packages/amazonq/src/lsp/chat/commands.ts index 115118a4ad2..81965bf1ede 100644 --- a/packages/amazonq/src/lsp/chat/commands.ts +++ b/packages/amazonq/src/lsp/chat/commands.ts @@ -8,7 +8,7 @@ import { window } from 'vscode' import { AmazonQChatViewProvider } from './webviewProvider' import { CodeScanIssue } from 'aws-core-vscode/codewhisperer' import { EditorContextExtractor } from 'aws-core-vscode/codewhispererChat' -import { DefaultAmazonQAppInitContext } from 'aws-core-vscode/amazonq' +// import { DefaultAmazonQAppInitContext } from 'aws-core-vscode/amazonq' /** * TODO: Re-enable these once we can figure out which path they're going to live in @@ -20,13 +20,14 @@ export function registerCommands(provider: AmazonQChatViewProvider) { registerGenericCommand('aws.amazonq.refactorCode', 'Refactor', provider), registerGenericCommand('aws.amazonq.fixCode', 'Fix', provider), registerGenericCommand('aws.amazonq.optimizeCode', 'Optimize', provider), - Commands.register('aws.amazonq.generateUnitTests', async () => { - DefaultAmazonQAppInitContext.instance.getAppsToWebViewMessagePublisher().publish({ - sender: 'testChat', - command: 'test', - type: 'chatMessage', - }) - }), + registerGenericCommand('aws.amazonq.generateUnitTests', 'Generate Tests', provider), + // Commands.register('aws.amazonq.generateUnitTests', async () => { + // DefaultAmazonQAppInitContext.instance.getAppsToWebViewMessagePublisher().publish({ + // sender: 'testChat', + // command: 'test', + // type: 'chatMessage', + // }) + // }), Commands.register('aws.amazonq.explainIssue', async (issue: CodeScanIssue) => { void focusAmazonQPanel().then(async () => { const editorContextExtractor = new EditorContextExtractor() diff --git a/packages/amazonq/src/lsp/client.ts b/packages/amazonq/src/lsp/client.ts index c359ac73ded..4801bc7aa01 100644 --- a/packages/amazonq/src/lsp/client.ts +++ b/packages/amazonq/src/lsp/client.ts @@ -135,6 +135,7 @@ export async function startLanguageServer( developerProfiles: true, pinnedContextEnabled: true, mcp: true, + reroute: true, }, window: { notifications: true, diff --git a/packages/core/src/amazonq/webview/ui/quickActions/generator.ts b/packages/core/src/amazonq/webview/ui/quickActions/generator.ts index f7bdc6a5089..1d5a8c67234 100644 --- a/packages/core/src/amazonq/webview/ui/quickActions/generator.ts +++ b/packages/core/src/amazonq/webview/ui/quickActions/generator.ts @@ -42,7 +42,7 @@ export class QuickActionGenerator { // TODO: Update acc to UX const quickActionCommands = [ { - groupName: `Q Developer agentic capabilities`, + // groupName: `Q Developer agentic capabilities`, commands: [ ...(this.isFeatureDevEnabled && !this.disabledCommands.includes('/dev') ? [ diff --git a/packages/core/src/amazonq/webview/ui/quickActions/handler.ts b/packages/core/src/amazonq/webview/ui/quickActions/handler.ts index 2b8b9acabd3..245364f5fe7 100644 --- a/packages/core/src/amazonq/webview/ui/quickActions/handler.ts +++ b/packages/core/src/amazonq/webview/ui/quickActions/handler.ts @@ -182,9 +182,9 @@ export class QuickActionHandler { * we have to manually create one if a testgen tab * wasn't previously created */ - if (!tabID) { - tabID = this.mynahUI.updateStore('', {}) - } + // if (!tabID) { + // tabID = this.mynahUI.updateStore('', {}) + // } // if there is no test tab, open a new one const affectedTabId: string | undefined = this.addTab(tabID) From 6c5eb1201c026844f9613d9760152dd3d0b37574 Mon Sep 17 00:00:00 2001 From: laileni Date: Mon, 30 Jun 2025 12:21:22 -0700 Subject: [PATCH 2/3] Removing unwanted code --- packages/amazonq/src/lsp/chat/commands.ts | 9 +-------- .../src/amazonq/webview/ui/quickActions/generator.ts | 1 - .../core/src/amazonq/webview/ui/quickActions/handler.ts | 9 --------- 3 files changed, 1 insertion(+), 18 deletions(-) diff --git a/packages/amazonq/src/lsp/chat/commands.ts b/packages/amazonq/src/lsp/chat/commands.ts index 81965bf1ede..9135be6d8d4 100644 --- a/packages/amazonq/src/lsp/chat/commands.ts +++ b/packages/amazonq/src/lsp/chat/commands.ts @@ -8,7 +8,6 @@ import { window } from 'vscode' import { AmazonQChatViewProvider } from './webviewProvider' import { CodeScanIssue } from 'aws-core-vscode/codewhisperer' import { EditorContextExtractor } from 'aws-core-vscode/codewhispererChat' -// import { DefaultAmazonQAppInitContext } from 'aws-core-vscode/amazonq' /** * TODO: Re-enable these once we can figure out which path they're going to live in @@ -21,13 +20,7 @@ export function registerCommands(provider: AmazonQChatViewProvider) { registerGenericCommand('aws.amazonq.fixCode', 'Fix', provider), registerGenericCommand('aws.amazonq.optimizeCode', 'Optimize', provider), registerGenericCommand('aws.amazonq.generateUnitTests', 'Generate Tests', provider), - // Commands.register('aws.amazonq.generateUnitTests', async () => { - // DefaultAmazonQAppInitContext.instance.getAppsToWebViewMessagePublisher().publish({ - // sender: 'testChat', - // command: 'test', - // type: 'chatMessage', - // }) - // }), + Commands.register('aws.amazonq.explainIssue', async (issue: CodeScanIssue) => { void focusAmazonQPanel().then(async () => { const editorContextExtractor = new EditorContextExtractor() diff --git a/packages/core/src/amazonq/webview/ui/quickActions/generator.ts b/packages/core/src/amazonq/webview/ui/quickActions/generator.ts index 1d5a8c67234..8500a04911d 100644 --- a/packages/core/src/amazonq/webview/ui/quickActions/generator.ts +++ b/packages/core/src/amazonq/webview/ui/quickActions/generator.ts @@ -42,7 +42,6 @@ export class QuickActionGenerator { // TODO: Update acc to UX const quickActionCommands = [ { - // groupName: `Q Developer agentic capabilities`, commands: [ ...(this.isFeatureDevEnabled && !this.disabledCommands.includes('/dev') ? [ diff --git a/packages/core/src/amazonq/webview/ui/quickActions/handler.ts b/packages/core/src/amazonq/webview/ui/quickActions/handler.ts index 245364f5fe7..6b017e419c0 100644 --- a/packages/core/src/amazonq/webview/ui/quickActions/handler.ts +++ b/packages/core/src/amazonq/webview/ui/quickActions/handler.ts @@ -177,15 +177,6 @@ export class QuickActionHandler { return } - /** - * right click -> generate test has no tab id - * we have to manually create one if a testgen tab - * wasn't previously created - */ - // if (!tabID) { - // tabID = this.mynahUI.updateStore('', {}) - // } - // if there is no test tab, open a new one const affectedTabId: string | undefined = this.addTab(tabID) From 7ad832b8acfa6ed54178b0e48a875c33d6430025 Mon Sep 17 00:00:00 2001 From: laileni Date: Tue, 1 Jul 2025 18:13:18 -0700 Subject: [PATCH 3/3] Adding change log --- .../Feature-a37e21b7-a68f-4554-92c9-9db35c0a3e51.json | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 packages/amazonq/.changes/next-release/Feature-a37e21b7-a68f-4554-92c9-9db35c0a3e51.json diff --git a/packages/amazonq/.changes/next-release/Feature-a37e21b7-a68f-4554-92c9-9db35c0a3e51.json b/packages/amazonq/.changes/next-release/Feature-a37e21b7-a68f-4554-92c9-9db35c0a3e51.json new file mode 100644 index 00000000000..22f0b872240 --- /dev/null +++ b/packages/amazonq/.changes/next-release/Feature-a37e21b7-a68f-4554-92c9-9db35c0a3e51.json @@ -0,0 +1,4 @@ +{ + "type": "Feature", + "description": "Amazon Q /test, /doc, and /dev capabilities integrated into Agentic coding." +}