@eclipse-glsp-examples/workflow-server-bundled 2.4.0-next.117 → 2.4.0-next.118

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclipse-glsp-examples/workflow-server-bundled",
3
- "version": "2.4.0-next.117+6064bdb",
3
+ "version": "2.4.0-next.118+079fa99",
4
4
  "description": "GLSP node server for the workflow example (bundled)",
5
5
  "keywords": [
6
6
  "eclipse",
@@ -49,5 +49,5 @@
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  },
52
- "gitHead": "6064bdbe4f9590c6ce92e98914154ddfd18abdcd"
52
+ "gitHead": "079fa991b7f977b842a10fee0e4337a8346c5b7d"
53
53
  }
@@ -63425,11 +63425,16 @@ let RequestModelActionHandler = class RequestModelActionHandler {
63425
63425
  this.modelState.setAll((_a = action.options) !== null && _a !== void 0 ? _a : {});
63426
63426
  const isReconnecting = client_options_util_1.ClientOptionsUtil.isReconnecting(action.options);
63427
63427
  const progress = this.reportModelLoading('Model loading in progress');
63428
- if (isReconnecting) {
63429
- await this.handleReconnect(action);
63428
+ try {
63429
+ if (isReconnecting) {
63430
+ await this.handleReconnect(action);
63431
+ }
63432
+ else {
63433
+ await this.sourceModelStorage.loadSourceModel(action);
63434
+ }
63430
63435
  }
63431
- else {
63432
- await this.sourceModelStorage.loadSourceModel(action);
63436
+ catch (err) {
63437
+ this.handleModelLoadingError(err, progress);
63433
63438
  }
63434
63439
  this.reportModelLoadingFinished(progress);
63435
63440
  return this.submissionHandler.submitInitialModel(action);
@@ -63452,7 +63457,13 @@ let RequestModelActionHandler = class RequestModelActionHandler {
63452
63457
  }
63453
63458
  reportModelLoadingFinished(monitor) {
63454
63459
  this.actionDispatcher.dispatch(protocol_1.StatusAction.create('', { severity: 'NONE' }));
63455
- monitor.end();
63460
+ monitor === null || monitor === void 0 ? void 0 : monitor.end();
63461
+ }
63462
+ handleModelLoadingError(error, monitor) {
63463
+ // In case of an error we end progress reporting and rethrow the error so
63464
+ // that it can be handled by the default error handler
63465
+ monitor === null || monitor === void 0 ? void 0 : monitor.end();
63466
+ throw error;
63456
63467
  }
63457
63468
  };
63458
63469
  exports.RequestModelActionHandler = RequestModelActionHandler;