Fixes #53960: Allow task without task definitions. Treat all properties as mandantroy.

This commit is contained in:
Dirk Baeumer
2018-07-10 15:51:39 +02:00
parent ea60a696d7
commit e5b1f6f31b
2 changed files with 6 additions and 2 deletions

View File

@@ -871,7 +871,8 @@ export class ExtHostTask implements ExtHostTaskShape {
if (task.definition && validTypes[task.definition.type] === true) {
sanitized.push(task);
} else {
console.error(`Dropping task [${task.source}, ${task.name}]. Its type is not known to the system.`);
sanitized.push(task);
console.warn(`The task [${task.source}, ${task.name}] uses an undefined task type. The task will be ignored in the future.`);
}
}
let workspaceFolders = this._workspaceService.getWorkspaceFolders();