Skip to content

Commit

Permalink
Merge pull request #7315 from microsoft/ella/taskScope
Browse files Browse the repository at this point in the history
Modify "Configure Task" behavior for multiroot
  • Loading branch information
elahehrashedi authored Apr 12, 2021
2 parents bfab754 + 0bb6c89 commit 57f9e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Extension/src/LanguageServer/cppBuildTaskProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export class CppBuildTaskProvider implements TaskProvider {
}
}

const scope: TaskScope = TaskScope.Workspace;
const scope: WorkspaceFolder | TaskScope = folder ? folder : TaskScope.Workspace;
const task: CppBuildTask = new Task(definition, scope, definition.label, CppBuildTaskProvider.CppBuildSourceStr,
new CustomExecution(async (resolvedDefinition: TaskDefinition): Promise<Pseudoterminal> =>
// When the task is executed, this callback will run. Here, we setup for running the task.
Expand Down

0 comments on commit 57f9e1e

Please sign in to comment.