Filter out 'No license field' in gulp tasks

Fixes #80081
This commit is contained in:
Alex Ross 2019-09-04 17:43:33 +02:00
parent 88a7008ae1
commit 32d72e6565

View file

@ -156,8 +156,13 @@ class FolderDetector {
try {
let { stdout, stderr } = await exec(commandLine, { cwd: rootPath });
if (stderr && stderr.length > 0) {
getOutputChannel().appendLine(stderr);
showError();
// Filter out "No license field"
const errors = stderr.split('\n');
errors.pop(); // The last line is empty.
if (!errors.every(value => value.indexOf('No license field') >= 0)) {
getOutputChannel().appendLine(stderr);
showError();
}
}
let result: vscode.Task[] = [];
if (stdout) {