Bring keybindings back to editor suggest status bar

Fixes #285886
This commit is contained in:
Daniel Imms
2026-01-05 01:29:25 -08:00
parent 3164594382
commit 5bce4f0235
2 changed files with 3 additions and 3 deletions

View File

@@ -270,7 +270,7 @@ export class SuggestWidget implements IDisposable {
listInactiveFocusOutline: activeContrastBorder
}));
this._status = instantiationService.createInstance(SuggestWidgetStatus, this.element.domNode, suggestWidgetStatusbarMenu, { allowIcons: true });
this._status = instantiationService.createInstance(SuggestWidgetStatus, this.element.domNode, suggestWidgetStatusbarMenu, undefined);
const applyStatusBarStyle = () => this.element.domNode.classList.toggle('with-status-bar', this.editor.getOption(EditorOption.suggest).showStatusBar);
applyStatusBarStyle();

View File

@@ -27,7 +27,7 @@ export class SuggestWidgetStatus {
constructor(
container: HTMLElement,
private readonly _menuId: MenuId,
options: ISuggestWidgetStatusOptions,
options: ISuggestWidgetStatusOptions | undefined,
@IInstantiationService instantiationService: IInstantiationService,
@IMenuService private _menuService: IMenuService,
@IContextKeyService private _contextKeyService: IContextKeyService,
@@ -35,7 +35,7 @@ export class SuggestWidgetStatus {
this.element = dom.append(container, dom.$('.suggest-status-bar'));
const actionViewItemProvider = <IActionViewItemProvider>(action => {
if (options.allowIcons) {
if (options?.allowIcons) {
return action instanceof MenuItemAction ? instantiationService.createInstance(MenuEntryActionViewItem, action, undefined) : undefined;
} else {
return action instanceof MenuItemAction ? instantiationService.createInstance(TextOnlyMenuEntryActionViewItem, action, { useComma: false }) : undefined;