@uxland/primary-shell 5.6.11 → 5.6.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/features/exit/handler.test.ts +43 -17
- package/src/features/exit/handler.ts +4 -2
package/dist/index.js
CHANGED
|
@@ -16439,20 +16439,21 @@ let ExitShellHandler = class {
|
|
|
16439
16439
|
this.api = te;
|
|
16440
16440
|
}
|
|
16441
16441
|
async handle(te) {
|
|
16442
|
+
const J = te && te.ecapEvent !== void 0 ? te : void 0;
|
|
16442
16443
|
try {
|
|
16443
|
-
const
|
|
16444
|
-
if (
|
|
16445
|
-
const { confirmed:
|
|
16446
|
-
if (!
|
|
16444
|
+
const X = this.api.pluginBusyManager.getBusyPluginTasks();
|
|
16445
|
+
if (X.length > 0) {
|
|
16446
|
+
const { confirmed: re } = await this.askForClose(X);
|
|
16447
|
+
if (!re) return;
|
|
16447
16448
|
}
|
|
16448
16449
|
await Promise.race([
|
|
16449
16450
|
disposePlugins(),
|
|
16450
16451
|
// S'intenta executar un dispose normal
|
|
16451
16452
|
this.timeout(5e3)
|
|
16452
16453
|
// Si passen 5s, es segueix amb l'execució
|
|
16453
|
-
]), disposeShell(), this.emitClose(
|
|
16454
|
-
} catch (
|
|
16455
|
-
this.api.notificationService.error(
|
|
16454
|
+
]), disposeShell(), this.emitClose(J);
|
|
16455
|
+
} catch (X) {
|
|
16456
|
+
this.api.notificationService.error(X.message), this.emitClose(J);
|
|
16456
16457
|
}
|
|
16457
16458
|
}
|
|
16458
16459
|
askForClose(te) {
|