mirror of
https://github.com/Microsoft/vscode
synced 2024-08-25 03:56:03 +00:00
use an unnamed inner class
This commit is contained in:
parent
3dbdafcf7f
commit
20a441dfb4
|
@ -359,11 +359,11 @@ class DropdownWithDefaultActionViewItem extends BaseActionViewItem {
|
|||
|
||||
this._defaultAction.dispose();
|
||||
this._defaultAction = this._instaService.createInstance(MenuEntryActionViewItem, lastAction, undefined);
|
||||
this._defaultAction.actionRunner = new (class ActionRunner2 extends ActionRunner {
|
||||
this._defaultAction.actionRunner = new class extends ActionRunner {
|
||||
override async runAction(action: IAction, context?: unknown): Promise<void> {
|
||||
await action.run(undefined);
|
||||
}
|
||||
})();
|
||||
}();
|
||||
|
||||
if (this._container) {
|
||||
this._defaultAction.render(prepend(this._container, $('.action-container')));
|
||||
|
|
Loading…
Reference in a new issue