提交 d801f13d 编写于 作者: I isidor

debug: wait for preLaunchTask to finish if it is not watching.

fixes #170
上级 28e29d79
......@@ -588,11 +588,14 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService
// No task running, execute the preLaunchTask.
this.outputService.showOutput('Tasks', true, true);
this.taskService.run(filteredTasks[0].id).then(result => {
const taskPromise = this.taskService.run(filteredTasks[0].id).then(result => {
this.lastTaskEvent = null;
}, err => {
this.lastTaskEvent = null;
});
return filteredTasks[0].isWatching ? Promise.as(true) : taskPromise;
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册