Skip to content

Commit 2ef27b8

Browse files
authored
fix(codewhisperer): remove old commands #3476
Problem: The command registration in deprecated code path is causing unit test / CI to fail. This PR is to remove one of it. A larger scale clean up will be done later. No change log is needed. No customer facing impact.
1 parent c837759 commit 2ef27b8

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

package.json

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3177,26 +3177,6 @@
31773177
"mac": "escape",
31783178
"when": "inlineSuggestionVisible && !editorReadonly && CODEWHISPERER_ENABLED"
31793179
},
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-
},
32003180
{
32013181
"command": "aws.codeWhisperer.acceptCodeSuggestion",
32023182
"key": "tab",

src/codewhisperer/activation.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -453,18 +453,6 @@ export async function activate(context: ExtContext): Promise<void> {
453453
await InlineCompletion.instance.rejectRecommendation(vscode.window.activeTextEditor)
454454
}
455455
}),
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-
}),
468456
/**
469457
* Recommendation navigation
470458
*/

0 commit comments

Comments
 (0)