提交 7bd5e03c 编写于 作者: B Benjamin Pasero

RunningForABit => Eventually

上级 7cd8305e
...@@ -49,7 +49,7 @@ export enum LifecyclePhase { ...@@ -49,7 +49,7 @@ export enum LifecyclePhase {
Starting = 1, Starting = 1,
Restoring = 2, Restoring = 2,
Running = 3, Running = 3,
RunningForABit = 4, Eventually = 4,
ShuttingDown = 5 ShuttingDown = 5
} }
......
...@@ -72,7 +72,7 @@ export class WorkbenchContributionsRegistry implements IWorkbenchContributionsRe ...@@ -72,7 +72,7 @@ export class WorkbenchContributionsRegistry implements IWorkbenchContributionsRe
this.instantiationService = instantiationService; this.instantiationService = instantiationService;
this.lifecycleService = lifecycleService; 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); this.instantiateByPhase(instantiationService, lifecycleService, phase);
}); });
} }
......
...@@ -205,7 +205,7 @@ export class WorkbenchShell { ...@@ -205,7 +205,7 @@ export class WorkbenchShell {
// Set lifecycle phase to `Runnning For A Bit` after a short delay // Set lifecycle phase to `Runnning For A Bit` after a short delay
let timeoutHandle = setTimeout(() => { let timeoutHandle = setTimeout(() => {
timeoutHandle = void 0; timeoutHandle = void 0;
this.lifecycleService.phase = LifecyclePhase.RunningForABit; this.lifecycleService.phase = LifecyclePhase.Eventually;
}, 3000); }, 3000);
this.toUnbind.push({ this.toUnbind.push({
dispose: () => { dispose: () => {
......
...@@ -11,4 +11,4 @@ import { NodeCachedDataManager } from 'vs/workbench/parts/cache/node/nodeCachedD ...@@ -11,4 +11,4 @@ import { NodeCachedDataManager } from 'vs/workbench/parts/cache/node/nodeCachedD
import { LifecyclePhase } from 'vs/platform/lifecycle/common/lifecycle'; import { LifecyclePhase } from 'vs/platform/lifecycle/common/lifecycle';
// Register NodeCachedDataManager Contribution // Register NodeCachedDataManager Contribution
Registry.as<IWorkbenchContributionsRegistry>(WorkbenchExtensions.Workbench).registerWorkbenchContribution(NodeCachedDataManager, LifecyclePhase.RunningForABit); Registry.as<IWorkbenchContributionsRegistry>(WorkbenchExtensions.Workbench).registerWorkbenchContribution(NodeCachedDataManager, LifecyclePhase.Eventually);
\ No newline at end of file \ No newline at end of file
...@@ -11,4 +11,4 @@ import { WorkspaceStats } from 'vs/workbench/parts/stats/node/workspaceStats'; ...@@ -11,4 +11,4 @@ import { WorkspaceStats } from 'vs/workbench/parts/stats/node/workspaceStats';
import { LifecyclePhase } from 'vs/platform/lifecycle/common/lifecycle'; import { LifecyclePhase } from 'vs/platform/lifecycle/common/lifecycle';
// Register Workspace Stats Contribution // Register Workspace Stats Contribution
Registry.as<IWorkbenchContributionsRegistry>(WorkbenchExtensions.Workbench).registerWorkbenchContribution(WorkspaceStats, LifecyclePhase.RunningForABit); Registry.as<IWorkbenchContributionsRegistry>(WorkbenchExtensions.Workbench).registerWorkbenchContribution(WorkspaceStats, LifecyclePhase.Eventually);
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册