File tree Expand file tree Collapse file tree 2 files changed +0
-32
lines changed Expand file tree Collapse file tree 2 files changed +0
-32
lines changed Original file line number Diff line number Diff line change 3177
3177
"mac" : " escape" ,
3178
3178
"when" : " inlineSuggestionVisible && !editorReadonly && CODEWHISPERER_ENABLED"
3179
3179
},
3180
- {
3181
- "command" : " aws.codeWhisperer.rejectCodeSuggestion" ,
3182
- "key" : " backspace" ,
3183
- "mac" : " backspace" ,
3184
- "when" : " editorTextFocus && CODEWHISPERER_SERVICE_ACTIVE"
3185
- },
3186
- {
3187
- "command" : " aws.codeWhisperer.rejectCodeSuggestion" ,
3188
- "key" : " up" ,
3189
- "mac" : " up" ,
3190
- "when" : " editorTextFocus && CODEWHISPERER_SERVICE_ACTIVE" ,
3191
- "args" : " up"
3192
- },
3193
- {
3194
- "command" : " aws.codeWhisperer.rejectCodeSuggestion" ,
3195
- "key" : " down" ,
3196
- "mac" : " down" ,
3197
- "when" : " editorTextFocus && CODEWHISPERER_SERVICE_ACTIVE" ,
3198
- "args" : " down"
3199
- },
3200
3180
{
3201
3181
"command" : " aws.codeWhisperer.acceptCodeSuggestion" ,
3202
3182
"key" : " tab" ,
Original file line number Diff line number Diff line change @@ -453,18 +453,6 @@ export async function activate(context: ExtContext): Promise<void> {
453
453
await InlineCompletion . instance . rejectRecommendation ( vscode . window . activeTextEditor )
454
454
}
455
455
} ) ,
456
- Commands . register ( 'aws.codeWhisperer.rejectCodeSuggestion' , async e => {
457
- if ( vscode . window . activeTextEditor ) {
458
- await InlineCompletion . instance . rejectRecommendation ( vscode . window . activeTextEditor )
459
- if ( e === 'up' ) {
460
- await vscode . commands . executeCommand ( 'cursorUp' )
461
- } else if ( e === 'down' ) {
462
- await vscode . commands . executeCommand ( 'cursorDown' )
463
- } else if ( e !== undefined ) {
464
- getLogger ( ) . warn ( `Unexpected argument for rejectCodeSuggestion ${ e } ` )
465
- }
466
- }
467
- } ) ,
468
456
/**
469
457
* Recommendation navigation
470
458
*/
You can’t perform that action at this time.
0 commit comments