Skip to content

Commit 0e9a5a6

Browse files
authored
debt - remove _isFakeAction again (microsoft#164240)
1 parent 71ab69d commit 0e9a5a6

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

src/vs/platform/action/common/action.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ export interface ICommandAction {
7272
* or define toggle-info including an icon and a title that goes well with a checkmark.
7373
*/
7474
toggled?: ContextKeyExpression | ICommandActionToggleInfo;
75-
76-
/** @deprecated see https://github.com/microsoft/vscode/issues/162004 */
77-
_isFakeAction?: true;
7875
}
7976

8077
export type ISerializableCommandAction = UriDto<ICommandAction>;

src/vs/platform/actions/common/actions.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -556,13 +556,6 @@ interface IAction2CommonOptions extends ICommandAction {
556556
* showing keybindings that have no other UX.
557557
*/
558558
description?: ICommandHandlerDescription;
559-
560-
/**
561-
* @deprecated workaround added for https://github.com/microsoft/vscode/issues/162004
562-
* This action doesn't do anything is just a workaround for rendering "something"
563-
* inside a specific toolbar
564-
*/
565-
_isFakeAction?: true;
566559
}
567560

568561
interface IBaseAction2Options extends IAction2CommonOptions {

src/vs/platform/actions/common/menuService.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,7 @@ class MenuInfo {
228228
const menuHide = createMenuHide(this._id, isMenuItem ? item.command : item, this._hiddenStates);
229229
if (isMenuItem) {
230230
// MenuItemAction
231-
const actualMenuHide = item.command._isFakeAction ? undefined : menuHide;
232-
activeActions.push(new MenuItemAction(item.command, item.alt, options, actualMenuHide, this._contextKeyService, this._commandService));
231+
activeActions.push(new MenuItemAction(item.command, item.alt, options, menuHide, this._contextKeyService, this._commandService));
233232

234233
} else {
235234
// SubmenuItemAction

0 commit comments

Comments
 (0)