File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
core/src/codewhispererChat/controllers/chat/userIntent Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 352
352
{
353
353
"command" : " aws.amazonq.generateUnitTests" ,
354
354
"group" : " cw_chat@5" ,
355
- "when" : " aws.codewhisperer.connected && aws.isInternalUser "
355
+ "when" : " false "
356
356
},
357
357
{
358
358
"command" : " aws.amazonq.sendToPrompt" ,
432
432
"command" : " aws.amazonq.generateUnitTests" ,
433
433
"title" : " %AWS.command.amazonq.generateUnitTests%" ,
434
434
"category" : " %AWS.amazonq.title%" ,
435
- "enablement" : " aws.codewhisperer.connected && aws.isInternalUser "
435
+ "enablement" : " false "
436
436
},
437
437
{
438
438
"command" : " aws.amazonq.reconnect" ,
615
615
"key" : " win+alt+t" ,
616
616
"mac" : " cmd+alt+t" ,
617
617
"linux" : " meta+alt+t" ,
618
- "when" : " aws.codewhisperer.connected && aws.isInternalUser "
618
+ "when" : " false "
619
619
},
620
620
{
621
621
"command" : " aws.amazonq.invokeInlineCompletion" ,
Original file line number Diff line number Diff line change 6
6
import { UserIntent } from '@amzn/codewhisperer-streaming'
7
7
import { EditorContextCommand } from '../../../commands/registerCommands'
8
8
import { PromptMessage } from '../model'
9
- import { Auth } from '../../../../auth'
10
9
11
10
export class UserIntentRecognizer {
12
11
public getFromContextMenuCommand ( command : EditorContextCommand ) : UserIntent | undefined {
@@ -39,8 +38,6 @@ export class UserIntentRecognizer {
39
38
return UserIntent . APPLY_COMMON_BEST_PRACTICES
40
39
} else if ( prompt . message . startsWith ( 'Optimize' ) ) {
41
40
return UserIntent . IMPROVE_CODE
42
- } else if ( prompt . message . startsWith ( 'Generate unit tests' ) && Auth . instance . isInternalAmazonUser ( ) ) {
43
- return UserIntent . GENERATE_UNIT_TESTS
44
41
}
45
42
return undefined
46
43
}
You can’t perform that action at this time.
0 commit comments