File extensions-promise-rejected.patch of Package code

Do not crash if esbuild writes anything to stderr.
This avoids the following error:

[  913s] [15:10:19] Finished [32mesbuilding extension media[39m /home/abuild/rpmbuild/BUILD/vscode-1.70.2/extensions/markdown-language-features/esbuild-preview.js with 0 errors.
[  913s] [15:10:19] 'vscode-linux-x64-min' errored after 11 min
[  913s] [15:10:19] Error: Promise rejected without Error
[  913s]     at onError (/home/abuild/rpmbuild/BUILD/vscode-1.70.2/node_modules/async-done/index.js:49:15)
[  913s]     at processTicksAndRejections (node:internal/process/task_queues:96:5)
[  913s] error Command failed with exit code 1.


--- a/build/lib/extensions.js
+++ b/build/lib/extensions.js
@@ -507,9 +507,6 @@
                     return reject(error);
                 }
                 reporter(stderr, script);
-                if (stderr) {
-                    return reject();
-                }
                 return resolve();
             });
             proc.stdout.on('data', (data) => {
openSUSE Build Service is sponsored by