From 7bd5e03c30295e62d85e8cd05557e88080e09e27 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Tue, 14 Nov 2017 15:04:04 +0100 Subject: [PATCH] RunningForABit => Eventually --- src/vs/platform/lifecycle/common/lifecycle.ts | 2 +- src/vs/workbench/common/contributions.ts | 2 +- src/vs/workbench/electron-browser/shell.ts | 2 +- src/vs/workbench/parts/cache/node/cache.contribution.ts | 2 +- src/vs/workbench/parts/stats/node/stats.contribution.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/vs/platform/lifecycle/common/lifecycle.ts b/src/vs/platform/lifecycle/common/lifecycle.ts index 2e96135e9b6..4a4dfa4baec 100644 --- a/src/vs/platform/lifecycle/common/lifecycle.ts +++ b/src/vs/platform/lifecycle/common/lifecycle.ts @@ -49,7 +49,7 @@ export enum LifecyclePhase { Starting = 1, Restoring = 2, Running = 3, - RunningForABit = 4, + Eventually = 4, ShuttingDown = 5 } diff --git a/src/vs/workbench/common/contributions.ts b/src/vs/workbench/common/contributions.ts index cf94048b234..3d4122fcb32 100644 --- a/src/vs/workbench/common/contributions.ts +++ b/src/vs/workbench/common/contributions.ts @@ -72,7 +72,7 @@ export class WorkbenchContributionsRegistry implements IWorkbenchContributionsRe this.instantiationService = instantiationService; this.lifecycleService = lifecycleService; - [LifecyclePhase.Starting, LifecyclePhase.Restoring, LifecyclePhase.Running, LifecyclePhase.RunningForABit, LifecyclePhase.ShuttingDown].forEach(phase => { + [LifecyclePhase.Starting, LifecyclePhase.Restoring, LifecyclePhase.Running, LifecyclePhase.Eventually, LifecyclePhase.ShuttingDown].forEach(phase => { this.instantiateByPhase(instantiationService, lifecycleService, phase); }); } diff --git a/src/vs/workbench/electron-browser/shell.ts b/src/vs/workbench/electron-browser/shell.ts index 215dfaf1822..5c79cd45050 100644 --- a/src/vs/workbench/electron-browser/shell.ts +++ b/src/vs/workbench/electron-browser/shell.ts @@ -205,7 +205,7 @@ export class WorkbenchShell { // Set lifecycle phase to `Runnning For A Bit` after a short delay let timeoutHandle = setTimeout(() => { timeoutHandle = void 0; - this.lifecycleService.phase = LifecyclePhase.RunningForABit; + this.lifecycleService.phase = LifecyclePhase.Eventually; }, 3000); this.toUnbind.push({ dispose: () => { diff --git a/src/vs/workbench/parts/cache/node/cache.contribution.ts b/src/vs/workbench/parts/cache/node/cache.contribution.ts index 187bee6dc2b..06f4bd0392a 100644 --- a/src/vs/workbench/parts/cache/node/cache.contribution.ts +++ b/src/vs/workbench/parts/cache/node/cache.contribution.ts @@ -11,4 +11,4 @@ import { NodeCachedDataManager } from 'vs/workbench/parts/cache/node/nodeCachedD import { LifecyclePhase } from 'vs/platform/lifecycle/common/lifecycle'; // Register NodeCachedDataManager Contribution -Registry.as(WorkbenchExtensions.Workbench).registerWorkbenchContribution(NodeCachedDataManager, LifecyclePhase.RunningForABit); \ No newline at end of file +Registry.as(WorkbenchExtensions.Workbench).registerWorkbenchContribution(NodeCachedDataManager, LifecyclePhase.Eventually); \ No newline at end of file diff --git a/src/vs/workbench/parts/stats/node/stats.contribution.ts b/src/vs/workbench/parts/stats/node/stats.contribution.ts index 1703314f940..b50700962fa 100644 --- a/src/vs/workbench/parts/stats/node/stats.contribution.ts +++ b/src/vs/workbench/parts/stats/node/stats.contribution.ts @@ -11,4 +11,4 @@ import { WorkspaceStats } from 'vs/workbench/parts/stats/node/workspaceStats'; import { LifecyclePhase } from 'vs/platform/lifecycle/common/lifecycle'; // Register Workspace Stats Contribution -Registry.as(WorkbenchExtensions.Workbench).registerWorkbenchContribution(WorkspaceStats, LifecyclePhase.RunningForABit); \ No newline at end of file +Registry.as(WorkbenchExtensions.Workbench).registerWorkbenchContribution(WorkspaceStats, LifecyclePhase.Eventually); \ No newline at end of file -- GitLab