@lvce-editor/status-bar-worker 3.30.2 → 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
|
},
|
|
@@ -2118,6 +2118,9 @@ const handleEditorStatusVisibilityChanged = (state, visible) => {
|
|
|
2118
2118
|
};
|
|
2119
2119
|
|
|
2120
2120
|
const handleEditorStatusVisibilityChangedAll = async visible => {
|
|
2121
|
+
if (isVisible() === visible) {
|
|
2122
|
+
return;
|
|
2123
|
+
}
|
|
2121
2124
|
setVisible(visible);
|
|
2122
2125
|
const changedUids = [];
|
|
2123
2126
|
for (const uid of getKeys()) {
|
|
@@ -2316,6 +2319,7 @@ const handleExtensionsChanged = async state => {
|
|
|
2316
2319
|
assetDir,
|
|
2317
2320
|
errorCount,
|
|
2318
2321
|
platform,
|
|
2322
|
+
statusBarItemsLeft,
|
|
2319
2323
|
uid,
|
|
2320
2324
|
warningCount
|
|
2321
2325
|
} = state;
|
|
@@ -2334,9 +2338,10 @@ const handleExtensionsChanged = async state => {
|
|
|
2334
2338
|
if (refreshVersions[uid] !== refreshVersion) {
|
|
2335
2339
|
return state;
|
|
2336
2340
|
}
|
|
2341
|
+
const builtinProblemsItem = statusBarItemsLeft.find(item => item.name === Problems);
|
|
2337
2342
|
return {
|
|
2338
2343
|
...state,
|
|
2339
|
-
statusBarItemsLeft: [...statusBarItems]
|
|
2344
|
+
statusBarItemsLeft: builtinProblemsItem ? [...statusBarItems, builtinProblemsItem] : [...statusBarItems]
|
|
2340
2345
|
};
|
|
2341
2346
|
};
|
|
2342
2347
|
|