mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-15 07:28:05 +00:00
@@ -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();
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user