Skip to content

Commit 16fb9d8

Browse files
Merge master into feature/ui-e2e-tests
2 parents 905a25c + 815eada commit 16fb9d8

File tree

5 files changed

+7
-18
lines changed

5 files changed

+7
-18
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "Amazon Q /test, /doc, and /dev capabilities integrated into Agentic coding."
4+
}

packages/amazonq/src/lsp/chat/commands.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { window } from 'vscode'
88
import { AmazonQChatViewProvider } from './webviewProvider'
99
import { CodeScanIssue } from 'aws-core-vscode/codewhisperer'
1010
import { EditorContextExtractor } from 'aws-core-vscode/codewhispererChat'
11-
import { DefaultAmazonQAppInitContext } from 'aws-core-vscode/amazonq'
1211

1312
/**
1413
* TODO: Re-enable these once we can figure out which path they're going to live in
@@ -20,13 +19,8 @@ export function registerCommands(provider: AmazonQChatViewProvider) {
2019
registerGenericCommand('aws.amazonq.refactorCode', 'Refactor', provider),
2120
registerGenericCommand('aws.amazonq.fixCode', 'Fix', provider),
2221
registerGenericCommand('aws.amazonq.optimizeCode', 'Optimize', provider),
23-
Commands.register('aws.amazonq.generateUnitTests', async () => {
24-
DefaultAmazonQAppInitContext.instance.getAppsToWebViewMessagePublisher().publish({
25-
sender: 'testChat',
26-
command: 'test',
27-
type: 'chatMessage',
28-
})
29-
}),
22+
registerGenericCommand('aws.amazonq.generateUnitTests', 'Generate Tests', provider),
23+
3024
Commands.register('aws.amazonq.explainIssue', async (issue: CodeScanIssue) => {
3125
void focusAmazonQPanel().then(async () => {
3226
const editorContextExtractor = new EditorContextExtractor()

packages/amazonq/src/lsp/client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ export async function startLanguageServer(
164164
developerProfiles: true,
165165
pinnedContextEnabled: true,
166166
mcp: true,
167+
reroute: true,
167168
modelSelection: true,
168169
workspaceFilePath: vscode.workspace.workspaceFile?.fsPath,
169170
},

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export class QuickActionGenerator {
4242
// TODO: Update acc to UX
4343
const quickActionCommands = [
4444
{
45-
groupName: `Q Developer agentic capabilities`,
4645
commands: [
4746
...(this.isFeatureDevEnabled && !this.disabledCommands.includes('/dev')
4847
? [

packages/core/src/amazonq/webview/ui/quickActions/handler.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,6 @@ export class QuickActionHandler {
177177
return
178178
}
179179

180-
/**
181-
* right click -> generate test has no tab id
182-
* we have to manually create one if a testgen tab
183-
* wasn't previously created
184-
*/
185-
if (!tabID) {
186-
tabID = this.mynahUI.updateStore('', {})
187-
}
188-
189180
// if there is no test tab, open a new one
190181
const affectedTabId: string | undefined = this.addTab(tabID)
191182

0 commit comments

Comments
 (0)