mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 17:32:41 +00:00
parent
88a7008ae1
commit
32d72e6565
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue