提交 fe83aa24 编写于 作者: B Benjamin Pasero

merge loadConfiguration() and doLoadConfiguration() into one

上级 1cb61cf7
......@@ -118,14 +118,6 @@ export abstract class ConfigurationService extends EventEmitter implements IConf
}
private loadConfiguration(section?: string): TPromise<any> {
return this.doLoadConfiguration().then((res: ILoadConfigResult) => {
this.cachedConfig = res;
return this.getConfiguration(section);
});
}
private doLoadConfiguration(): TPromise<ILoadConfigResult> {
// Load globals
const globals = this.loadGlobalConfiguration();
......@@ -148,6 +140,10 @@ export abstract class ConfigurationService extends EventEmitter implements IConf
consolidated: consolidated,
globals: globals
};
}).then((res: ILoadConfigResult) => {
this.cachedConfig = res;
return this.getConfiguration(section);
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册