diff --git a/src/vs/workbench/electron-browser/actions.ts b/src/vs/workbench/electron-browser/actions.ts index 0c5d54830a9..055e5665cc0 100644 --- a/src/vs/workbench/electron-browser/actions.ts +++ b/src/vs/workbench/electron-browser/actions.ts @@ -216,8 +216,15 @@ export class ShowStartupPerformance extends Action { public static ID = 'workbench.action.appPerf'; public static LABEL = nls.localize('appPerf', "Startup Performance"); - constructor(id: string, label: string, @IWindowService private windowService: IWindowService) { + constructor( + id: string, + label: string, + @IWindowService private windowService: IWindowService, + @IWorkspaceContextService private contextService: IWorkspaceContextService + ) { super(id, label); + + this.enabled = contextService.getConfiguration().env.enablePerformance; } private _analyzeLoaderTimes(): any[] {