Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Jun 13, 2018
1 parent 742bb73 commit edc16f0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/vs/code/electron-main/menus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import { KeybindingsResolver } from 'vs/code/electron-main/keyboard';
import { IWindowsMainService, IWindowsCountChangedEvent } from 'vs/platform/windows/electron-main/windows';
import { IHistoryMainService } from 'vs/platform/history/common/history';
import { IWorkspaceIdentifier, getWorkspaceLabel, ISingleFolderWorkspaceIdentifier, isSingleFolderWorkspaceIdentifier } from 'vs/platform/workspaces/common/workspaces';
import { IWorkspaceContextService } from 'vs/platform/workspace/common/workspace';

interface IMenuItemClickHandler {
inDevTools: (contents: Electron.WebContents) => void;
Expand Down Expand Up @@ -66,8 +65,7 @@ export class CodeMenu {
@IWindowsService private windowsService: IWindowsService,
@IEnvironmentService private environmentService: IEnvironmentService,
@ITelemetryService private telemetryService: ITelemetryService,
@IHistoryMainService private historyMainService: IHistoryMainService,
@IWorkspaceContextService private contextService: IWorkspaceContextService
@IHistoryMainService private historyMainService: IHistoryMainService
) {
this.nativeTabMenuItems = [];

Expand Down Expand Up @@ -492,7 +490,7 @@ export class CodeMenu {
let label: string;
let path: string;
if (isSingleFolderWorkspaceIdentifier(workspace) || typeof workspace === 'string') {
label = unmnemonicLabel(getPathLabel(workspace, this.environmentService, this.contextService));
label = unmnemonicLabel(getPathLabel(workspace, this.environmentService));
path = workspace;
} else {
label = getWorkspaceLabel(workspace, this.environmentService, { verbose: true });
Expand Down

0 comments on commit edc16f0

Please sign in to comment.