diff --git a/src/vs/platform/lifecycle/common/lifecycle.ts b/src/vs/platform/lifecycle/common/lifecycle.ts index 2e96135e9b65218111dbece19c90d9d46d2014e9..4a4dfa4baec23a0e9e327f8f012cec2be3a8f430 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 cf94048b23487c61e00d94dcfab4b73f0ebbd780..3d4122fcb32ac46eaf8e792e61df0c14987d184b 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 215dfaf1822c62e4dd1ec9a55d9b2324a5543b25..5c79cd450502b649471fc612547e687f3e396dca 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 187bee6dc2b8a8dcaccab1a317fb1f239a3f15ea..06f4bd0392a7fe955d417cbf198ba048aea9057f 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 1703314f9401b3be0556591a651b76d74d39b2c7..b50700962fa7c6e012d17e1e99fc37b6bf805297 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