@@ -8,7 +8,7 @@ import { window } from 'vscode'
88import { AmazonQChatViewProvider } from './webviewProvider'
99import { CodeScanIssue } from 'aws-core-vscode/codewhisperer'
1010import { EditorContextExtractor } from 'aws-core-vscode/codewhispererChat'
11- import { DefaultAmazonQAppInitContext } from 'aws-core-vscode/amazonq'
11+ // import { DefaultAmazonQAppInitContext } from 'aws-core-vscode/amazonq'
1212
1313/**
1414 * 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) {
2020 registerGenericCommand ( 'aws.amazonq.refactorCode' , 'Refactor' , provider ) ,
2121 registerGenericCommand ( 'aws.amazonq.fixCode' , 'Fix' , provider ) ,
2222 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- } ) ,
23+ registerGenericCommand ( 'aws.amazonq.generateUnitTests' , 'Generate Tests' , provider ) ,
24+ // Commands.register('aws.amazonq.generateUnitTests', async () => {
25+ // DefaultAmazonQAppInitContext.instance.getAppsToWebViewMessagePublisher().publish({
26+ // sender: 'testChat',
27+ // command: 'test',
28+ // type: 'chatMessage',
29+ // })
30+ // }),
3031 Commands . register ( 'aws.amazonq.explainIssue' , async ( issue : CodeScanIssue ) => {
3132 void focusAmazonQPanel ( ) . then ( async ( ) => {
3233 const editorContextExtractor = new EditorContextExtractor ( )
0 commit comments