Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "Feature",
"description": "Amazon Q /test, /doc, and /dev capabilities integrated into Agentic coding."
}
10 changes: 2 additions & 8 deletions packages/amazonq/src/lsp/chat/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -20,13 +19,8 @@ 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.explainIssue', async (issue: CodeScanIssue) => {
void focusAmazonQPanel().then(async () => {
const editorContextExtractor = new EditorContextExtractor()
Expand Down
1 change: 1 addition & 0 deletions packages/amazonq/src/lsp/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export async function startLanguageServer(
developerProfiles: true,
pinnedContextEnabled: true,
mcp: true,
reroute: true,
workspaceFilePath: vscode.workspace.workspaceFile?.fsPath,
},
window: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')
? [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Loading