提交 e4d9b4d9 编写于 作者: B Benjamin Pasero 提交者: Dirk Baeumer

clean up unused code

上级 03284d80
......@@ -62,7 +62,7 @@ import { IContextViewService } from 'vs/platform/contextview/browser/contextView
import { ILifecycleService } from 'vs/platform/lifecycle/common/lifecycle';
import { IMarkerService } from 'vs/platform/markers/common/markers';
import { IEnvironmentService } from 'vs/platform/environment/common/environment';
import { IMessageService, IChoiceService, Severity, CloseAction } from 'vs/platform/message/common/message';
import { IMessageService, IChoiceService, Severity } from 'vs/platform/message/common/message';
import { ChoiceChannel } from 'vs/platform/message/common/messageIpc';
import { ISearchService } from 'vs/platform/search/common/search';
import { IThreadService } from 'vs/workbench/services/thread/common/threadService';
......@@ -87,7 +87,6 @@ import { URLChannelClient } from 'vs/platform/url/common/urlIpc';
import { IURLService } from 'vs/platform/url/common/url';
import { IBackupService } from 'vs/platform/backup/common/backup';
import { BackupChannelClient } from 'vs/platform/backup/common/backupIpc';
import { ReportPerformanceIssueAction } from 'vs/workbench/electron-browser/actions';
import { ExtensionHostProcessWorker } from 'vs/workbench/electron-browser/extensionHost';
import { ITimerService } from 'vs/workbench/services/timer/common/timerService';
import { remote, ipcRenderer as ipc } from 'electron';
......@@ -198,7 +197,7 @@ export class WorkbenchShell {
onWorkbenchStarted: (info: IWorkbenchStartedInfo) => {
// run workbench started logic
this.onWorkbenchStarted(instantiationService, info);
this.onWorkbenchStarted(info);
// start cached data manager
instantiationService.createInstance(NodeCachedDataManager);
......@@ -221,7 +220,7 @@ export class WorkbenchShell {
return workbenchContainer;
}
private onWorkbenchStarted(instantiationService: IInstantiationService, info: IWorkbenchStartedInfo): void {
private onWorkbenchStarted(info: IWorkbenchStartedInfo): void {
// Telemetry: workspace info
const { filesToOpen, filesToCreate, filesToDiff } = this.options;
......@@ -248,12 +247,6 @@ export class WorkbenchShell {
this.timerService.restoreViewletDuration = info.restoreViewletDuration;
this.extensionService.onReady().done(() => {
this.telemetryService.publicLog('startupTime', this.timerService.startupMetrics);
// Check for negative performance numbers (insiders only)
// TODO@Ben remove me
if (product.quality !== 'stable' && this.timerService.startupMetrics.ellapsed < 0) {
this.handleNegativePerformanceNumbers(instantiationService, this.timerService.startupMetrics.ellapsed);
}
});
// Telemetry: workspace tags
......@@ -266,16 +259,6 @@ export class WorkbenchShell {
}
}
private handleNegativePerformanceNumbers(i: IInstantiationService, time: number): void {
this.messageService.show(Severity.Warning, {
message: `Something went wrong measuring startup performance numbers (ellapsed: ${time}ms). We would like to learn more about this issue.`,
actions: [
i.createInstance(ReportPerformanceIssueAction, ReportPerformanceIssueAction.ID, ReportPerformanceIssueAction.LABEL),
CloseAction
]
});
}
private initServiceCollection(container: HTMLElement): [IInstantiationService, ServiceCollection] {
const disposables = new Disposables();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册