Skip to content

Commit 27bb32d

Browse files
committed
rename TitleBarContext to TitleBarTitleContext because that's what it is
1 parent 1cd90cc commit 27bb32d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export class MenuId {
108108
static readonly TestPeekElement = new MenuId('TestPeekElement');
109109
static readonly TestPeekTitle = new MenuId('TestPeekTitle');
110110
static readonly TouchBarContext = new MenuId('TouchBarContext');
111-
static readonly TitleBarContext = new MenuId('TitleBarContext');
111+
static readonly TitleBarTitleContext = new MenuId('TitleBarTitleContext');
112112
static readonly TunnelContext = new MenuId('TunnelContext');
113113
static readonly TunnelPrivacy = new MenuId('TunnelPrivacy');
114114
static readonly TunnelProtocol = new MenuId('TunnelProtocol');

src/vs/workbench/browser/parts/titlebar/titlebarPart.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export class TitlebarPart extends Part implements ITitleService {
8282

8383
private readonly windowTitle: WindowTitle;
8484

85-
private readonly contextMenu: IMenu;
85+
private readonly titleContextMenu: IMenu;
8686

8787
constructor(
8888
@IContextMenuService private readonly contextMenuService: IContextMenuService,
@@ -99,7 +99,7 @@ export class TitlebarPart extends Part implements ITitleService {
9999
) {
100100
super(Parts.TITLEBAR_PART, { hasTitle: false }, themeService, storageService, layoutService);
101101
this.windowTitle = this._register(instantiationService.createInstance(WindowTitle));
102-
this.contextMenu = this._register(menuService.createMenu(MenuId.TitleBarContext, contextKeyService));
102+
this.titleContextMenu = this._register(menuService.createMenu(MenuId.TitleBarTitleContext, contextKeyService));
103103

104104
this.titleBarStyle = getTitleBarStyle(this.configurationService);
105105

@@ -387,7 +387,7 @@ export class TitlebarPart extends Part implements ITitleService {
387387

388388
// Fill in contributed actions
389389
const actions: IAction[] = [];
390-
const actionsDisposable = createAndFillInContextMenuActions(this.contextMenu, undefined, actions);
390+
const actionsDisposable = createAndFillInContextMenuActions(this.titleContextMenu, undefined, actions);
391391

392392
// Show it
393393
this.contextMenuService.showContextMenu({

src/vs/workbench/electron-sandbox/window.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ export class NativeWindow extends Disposable {
603603

604604
const commandId = `workbench.action.revealPathInFinder${i}`;
605605
this.customTitleContextMenuDisposable.add(CommandsRegistry.registerCommand(commandId, () => this.nativeHostService.showItemInFolder(path.fsPath)));
606-
this.customTitleContextMenuDisposable.add(MenuRegistry.appendMenuItem(MenuId.TitleBarContext, { command: { id: commandId, title: label || posix.sep }, order: -i }));
606+
this.customTitleContextMenuDisposable.add(MenuRegistry.appendMenuItem(MenuId.TitleBarTitleContext, { command: { id: commandId, title: label || posix.sep }, order: -i }));
607607
}
608608
}
609609

0 commit comments

Comments
 (0)