Replace ext suggest command with experimental inline chat keybinding

Fixes #4256
This commit is contained in:
Daniel Imms
2024-03-07 05:38:19 -08:00
parent 68f565d32a
commit 75dd427e09
2 changed files with 14 additions and 2 deletions
@@ -649,7 +649,18 @@ export const DEFAULT_COMMANDS_TO_SKIP_SHELL: string[] = [
'workbench.action.quickOpenView',
'workbench.action.toggleMaximizedPanel',
'notification.acceptPrimaryAction',
'runCommands'
'runCommands',
'workbench.action.terminal.chat.start',
'workbench.action.terminal.chat.close',
'workbench.action.terminal.chat.discard',
'workbench.action.terminal.chat.makeRequest',
'workbench.action.terminal.chat.cancel',
'workbench.action.terminal.chat.feedbackHelpful',
'workbench.action.terminal.chat.feedbackUnhelpful',
'workbench.action.terminal.chat.feedbackReportIssue',
'workbench.action.terminal.chat.runCommand',
'workbench.action.terminal.chat.insertCommand',
'workbench.action.terminal.chat.viewInChat',
];
export const terminalContributionsDescriptor: IExtensionPointDescriptor<ITerminalContributions> = {
@@ -23,7 +23,8 @@ registerActiveXtermAction({
keybinding: {
primary: KeyMod.CtrlCmd | KeyCode.KeyI,
when: ContextKeyExpr.and(TerminalContextKeys.focusInAny),
weight: KeybindingWeight.WorkbenchContrib,
// HACK: Force weight to be higher than the extension contributed keybinding to override it until it gets replaced
weight: KeybindingWeight.ExternalExtension + 1, // KeybindingWeight.WorkbenchContrib,
},
f1: true,
category: AbstractInlineChatAction.category,