提交 6c185f88 编写于 作者: I isidor

debug: better promise order when starting session

上级 a7a0f827
......@@ -507,10 +507,10 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService
}
public createSession(openViewlet = !this.partService.isSideBarHidden()): TPromise<any> {
this.textFileService.saveAll().done(null, errors.onUnexpectedError);
this.clearReplExpressions();
return this.pluginService.onReady().then(() => this.configurationManager.setConfiguration(this.configurationManager.getConfigurationName())).then(() => {
return this.textFileService.saveAll().then(() => this.pluginService.onReady()).then(() => this.configurationManager.setConfiguration(this.configurationManager.getConfigurationName())).then(() => {
const configuration = this.configurationManager.getConfiguration();
if (!configuration) {
return this.configurationManager.openConfigFile(false).then(openend => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册