Don't show errors for shell provided tasks

Related to microsoft/vscode-cpptools#5388
This commit is contained in:
Alex Ross 2020-05-07 16:09:34 +02:00
parent ef14938a46
commit ace2f9570c

View file

@ -1579,7 +1579,9 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
for (const task of taskSet.tasks) {
if (task.type !== this._providerTypes.get(handle)) {
this._outputChannel.append(nls.localize('unexpectedTaskType', "The task provider for \"{0}\" tasks unexpectedly provided a task of type \"{1}\".\n", this._providerTypes.get(handle), task.type));
this.showOutput();
if ((task.type !== 'shell') && (task.type !== 'process')) {
this.showOutput();
}
break;
}
}