Skip to content

Commit 57f9e1e

Browse files
Merge pull request #7315 from microsoft/ella/taskScope
Modify "Configure Task" behavior for multiroot
2 parents bfab754 + 0bb6c89 commit 57f9e1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extension/src/LanguageServer/cppBuildTaskProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export class CppBuildTaskProvider implements TaskProvider {
194194
}
195195
}
196196

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

0 commit comments

Comments
 (0)