提交 970eb55c 编写于 作者: I isidor

fixes #58818

上级 23cfe8c2
......@@ -670,6 +670,9 @@ export class DebugService implements IDebugService {
if (!taskId) {
return TPromise.as(null);
}
if (!root) {
return TPromise.wrapError(new Error(nls.localize('invalidTaskReference', "Task '{0}' can not be referenced from a launch configuration that is in a different workspace folder.", typeof taskId === 'string' ? taskId : taskId.type)));
}
// run a task before starting a debug session
return this.taskService.getTask(root, taskId).then(task => {
if (!task) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册