Skip to content

Commit 970eb55

Browse files
committed
1 parent 23cfe8c commit 970eb55

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/vs/workbench/parts/debug/electron-browser/debugService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,9 @@ export class DebugService implements IDebugService {
670670
if (!taskId) {
671671
return TPromise.as(null);
672672
}
673+
if (!root) {
674+
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)));
675+
}
673676
// run a task before starting a debug session
674677
return this.taskService.getTask(root, taskId).then(task => {
675678
if (!task) {

0 commit comments

Comments
 (0)