Skip to content

Commit d0ba50c

Browse files
authored
Make sure we register code action list (microsoft#167442)
1 parent 85d939c commit d0ba50c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/vs/platform/actionWidget/browser/actionList.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,14 @@ export class ActionList<T extends IActionItem> extends Disposable {
169169
this.domNode = document.createElement('div');
170170
this.domNode.classList.add('actionList');
171171
const virtualDelegate: IListVirtualDelegate<IListMenuItem<IActionItem>> = {
172-
getHeight: element => element.kind === 'header' ? this._headerLineHeight : this._actionLineHeight,
172+
getHeight: element => element.kind === ActionListItemKind.Header ? this._headerLineHeight : this._actionLineHeight,
173173
getTemplateId: element => element.kind
174174
};
175-
this._list = new List(user, this.domNode, virtualDelegate, [new ActionItemRenderer<IListMenuItem<IActionItem>>(resolver, this._keybindingService), new HeaderRenderer()], {
175+
176+
this._list = this._register(new List(user, this.domNode, virtualDelegate, [
177+
new ActionItemRenderer<IListMenuItem<IActionItem>>(resolver, this._keybindingService),
178+
new HeaderRenderer()
179+
], {
176180
keyboardSupport: true,
177181
accessibilityProvider: {
178182
getAriaLabel: element => {
@@ -189,7 +193,7 @@ export class ActionList<T extends IActionItem> extends Disposable {
189193
getRole: () => 'option',
190194
getWidgetRole: () => user
191195
},
192-
});
196+
}));
193197

194198
this._register(this._list.onMouseClick(e => this.onListClick(e)));
195199
this._register(this._list.onMouseOver(e => this.onListHover(e)));

0 commit comments

Comments
 (0)