diff --git a/src/wizards/debugging/TaskCreator.ts b/src/wizards/debugging/TaskCreator.ts index 2c59307d..84e17f88 100644 --- a/src/wizards/debugging/TaskCreator.ts +++ b/src/wizards/debugging/TaskCreator.ts @@ -150,7 +150,7 @@ export class TaskCreator { } if (!FsUtils.isSameDirectory(this.workspaceFolder.uri.fsPath, this.projectFolder)) { - taskDefinition.options = { cwd: path.relative(this.workspaceFolder.uri.fsPath, this.projectFolder) }; + taskDefinition.options = { cwd: path.join("${workspaceFolder}", path.relative(this.workspaceFolder.uri.fsPath, this.projectFolder)) }; } return taskDefinition;