Ensure contributed tasks have a scope

#67990
This commit is contained in:
Alex Ross
2019-02-07 13:11:18 +01:00
parent 8db4c65075
commit 6bbb04e0be

View File

@@ -195,6 +195,9 @@ namespace TaskDTO {
} else {
scope = value.scope.uri;
}
} else {
// To continue to support the deprecated task constructor that doesn't take a scope, we must add a scope here:
scope = types.TaskScope.Workspace;
}
if (!definition || !scope) {
return undefined;