mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
fix NPE when running "Startup Performance" command
This commit is contained in:
parent
6a6d2ed21f
commit
c703e36c0b
|
@ -216,8 +216,15 @@ export class ShowStartupPerformance extends Action {
|
||||||
public static ID = 'workbench.action.appPerf';
|
public static ID = 'workbench.action.appPerf';
|
||||||
public static LABEL = nls.localize('appPerf', "Startup Performance");
|
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);
|
super(id, label);
|
||||||
|
|
||||||
|
this.enabled = contextService.getConfiguration().env.enablePerformance;
|
||||||
}
|
}
|
||||||
|
|
||||||
private _analyzeLoaderTimes(): any[] {
|
private _analyzeLoaderTimes(): any[] {
|
||||||
|
|
Loading…
Reference in a new issue