diff --git a/src/vs/workbench/services/configuration/node/configurationService.ts b/src/vs/workbench/services/configuration/node/configurationService.ts index 641b8bdf8d24ed39faa5d577bf3b529976d2bff5..f464bea68ba4781555f4cad401ace4f967d3ff46 100644 --- a/src/vs/workbench/services/configuration/node/configurationService.ts +++ b/src/vs/workbench/services/configuration/node/configurationService.ts @@ -295,9 +295,9 @@ export class WorkspaceService extends Disposable implements IWorkspaceConfigurat return this._configuration.keys(); } - initialize(arg: IWorkspaceIdentifier | ISingleFolderWorkspaceIdentifier | IWindowConfiguration, postInitialisation: () => void = () => null): TPromise { + initialize(arg: IWorkspaceIdentifier | ISingleFolderWorkspaceIdentifier | IWindowConfiguration, postInitialisationTask: () => void = () => null): TPromise { return this.createWorkspace(arg) - .then(workspace => this.updateWorkspaceAndInitializeConfiguration(workspace, postInitialisation)); + .then(workspace => this.updateWorkspaceAndInitializeConfiguration(workspace, postInitialisationTask)); } acquireFileService(fileService: IFileService): void { @@ -361,7 +361,7 @@ export class WorkspaceService extends Disposable implements IWorkspaceConfigurat return TPromise.as(new Workspace(id)); } - private updateWorkspaceAndInitializeConfiguration(workspace: Workspace, postInitialisation: () => void): TPromise { + private updateWorkspaceAndInitializeConfiguration(workspace: Workspace, postInitialisationTask: () => void): TPromise { const hasWorkspaceBefore = !!this.workspace; let previousState: WorkbenchState; let previousWorkspacePath: string; @@ -378,7 +378,7 @@ export class WorkspaceService extends Disposable implements IWorkspaceConfigurat return this.initializeConfiguration().then(() => { - postInitialisation(); + postInitialisationTask(); // Post initialisation task should be run before triggering events. // Trigger changes after configuration initialization so that configuration is up to date. if (hasWorkspaceBefore) {