Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions dev-packages/cli/src/theia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,13 +432,16 @@ async function theiaCli(): Promise<void> {
if (!client) {
client = new OVSXHttpClient(apiUrl, requestService, rateLimiter);
}
// This handler must not call `process.exit`: on Windows that aborts the
// process, because Node calls `uv_async_send` on an already-closing handle
// while undici tears down the connections used to fetch the plugins
// (nodejs/node#56645). Let the event loop drain instead.
try {
await downloadPlugins(client, rateLimiter, requestService, options);
} catch (error) {
console.error(error);
process.exit(1);
process.exitCode = 1;
}
process.exit(0);
},
})
.command<{
Expand Down
Loading