Skip to content

Align terminal suggest request command with the editor's #273375

Closed

Description

@Tyriar

f1 off, "trigger completions":

constructor() {
super({
id: TriggerSuggestAction.id,
label: nls.localize2('suggest.trigger.label', "Trigger Suggest"),
precondition: ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasCompletionItemProvider, SuggestContext.Visible.toNegated()),
kbOpts: {
kbExpr: EditorContextKeys.textInputFocus,
primary: KeyMod.CtrlCmd | KeyCode.Space,
secondary: [KeyMod.CtrlCmd | KeyCode.KeyI],
mac: { primary: KeyMod.WinCtrl | KeyCode.Space, secondary: [KeyMod.Alt | KeyCode.Escape, KeyMod.CtrlCmd | KeyCode.KeyI] },
weight: KeybindingWeight.EditorContrib
}
});
}

f1 on, "request completions":

registerActiveInstanceAction({
id: TerminalSuggestCommandId.RequestCompletions,
title: localize2('workbench.action.terminal.requestCompletions', 'Request Completions'),
keybinding: {
primary: KeyMod.CtrlCmd | KeyCode.Space,
mac: { primary: KeyMod.WinCtrl | KeyCode.Space },
weight: KeybindingWeight.WorkbenchContrib + 1,
when: ContextKeyExpr.and(TerminalContextKeys.focus, TerminalContextKeys.suggestWidgetVisible.negate(), ContextKeyExpr.equals(`config.${TerminalSuggestSettingId.Enabled}`, true))
},
run: (activeInstance) => TerminalSuggestContribution.get(activeInstance)?.addon?.requestCompletions(true)
});

cc Megan Rogge (@meganrogge)

Activity

  1. added
    bug
    on Oct 26, 2025
  2. added a commit that references this issue on Oct 26, 2025
    2b0fddd
  3. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Oct 26, 2025
  4. locked and limited conversation to collaborators on Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buginsiders-releasedterminal-suggestverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions