@lvce-editor/status-bar-worker 3.30.3 → 3.30.4

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.
@@ -1337,7 +1337,7 @@ const applyDirectProperties = (restoredError, error) => {
1337
1337
  }
1338
1338
  };
1339
1339
  const restoreMessageError = (error, _currentStack) => {
1340
- const restoredError = constructError(error.message, error.type, error.name);
1340
+ const restoredError = constructError(error.message, error.type || error.data?.type, error.name);
1341
1341
  if (typeof error.code === 'string' || typeof error.code === 'number') {
1342
1342
  Object.defineProperty(restoredError, 'code', {
1343
1343
  configurable: true,
@@ -1425,7 +1425,7 @@ const getErrorProperty = (error, prettyError) => {
1425
1425
  data: {
1426
1426
  code: prettyError.code ?? error?.code,
1427
1427
  codeFrame: prettyError.codeFrame,
1428
- name: prettyError.name,
1428
+ name: prettyError.name ?? error?.name,
1429
1429
  stack: getStack(prettyError),
1430
1430
  type: getErrorType(prettyError)
1431
1431
  },
@@ -2319,6 +2319,7 @@ const handleExtensionsChanged = async state => {
2319
2319
  assetDir,
2320
2320
  errorCount,
2321
2321
  platform,
2322
+ statusBarItemsLeft,
2322
2323
  uid,
2323
2324
  warningCount
2324
2325
  } = state;
@@ -2337,9 +2338,10 @@ const handleExtensionsChanged = async state => {
2337
2338
  if (refreshVersions[uid] !== refreshVersion) {
2338
2339
  return state;
2339
2340
  }
2341
+ const builtinProblemsItem = statusBarItemsLeft.find(item => item.name === Problems);
2340
2342
  return {
2341
2343
  ...state,
2342
- statusBarItemsLeft: [...statusBarItems]
2344
+ statusBarItemsLeft: builtinProblemsItem ? [...statusBarItems, builtinProblemsItem] : [...statusBarItems]
2343
2345
  };
2344
2346
  };
2345
2347
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/status-bar-worker",
3
- "version": "3.30.3",
3
+ "version": "3.30.4",
4
4
  "description": "Status Bar Worker",
5
5
  "repository": {
6
6
  "type": "git",