@lvce-editor/main-area-worker 9.64.2 → 9.64.3
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.
|
@@ -647,7 +647,7 @@ const applyDirectProperties = (restoredError, error) => {
|
|
|
647
647
|
}
|
|
648
648
|
};
|
|
649
649
|
const restoreMessageError = (error, _currentStack) => {
|
|
650
|
-
const restoredError = constructError(error.message, error.type, error.name);
|
|
650
|
+
const restoredError = constructError(error.message, error.type || error.data?.type, error.name);
|
|
651
651
|
if (typeof error.code === 'string' || typeof error.code === 'number') {
|
|
652
652
|
Object.defineProperty(restoredError, 'code', {
|
|
653
653
|
configurable: true,
|
|
@@ -735,7 +735,7 @@ const getErrorProperty = (error, prettyError) => {
|
|
|
735
735
|
data: {
|
|
736
736
|
code: prettyError.code ?? error?.code,
|
|
737
737
|
codeFrame: prettyError.codeFrame,
|
|
738
|
-
name: prettyError.name,
|
|
738
|
+
name: prettyError.name ?? error?.name,
|
|
739
739
|
stack: getStack(prettyError),
|
|
740
740
|
type: getErrorType(prettyError)
|
|
741
741
|
},
|
|
@@ -7722,7 +7722,11 @@ const loadContent$1 = async (state, savedState) => {
|
|
|
7722
7722
|
|
|
7723
7723
|
const handleWorkspaceChange = async (state, _workspacePath, savedState) => {
|
|
7724
7724
|
await clear(state.uid);
|
|
7725
|
-
|
|
7725
|
+
const stateWithEmptyIconCache = {
|
|
7726
|
+
...state,
|
|
7727
|
+
fileIconCache: {}
|
|
7728
|
+
};
|
|
7729
|
+
return loadContent$1(stateWithEmptyIconCache, savedState);
|
|
7726
7730
|
};
|
|
7727
7731
|
|
|
7728
7732
|
const getEditorInputUris = editorInput => {
|
|
@@ -7989,7 +7993,7 @@ const getMenuEntries$1 = (state, groupId, tabId) => {
|
|
|
7989
7993
|
label: openContainingFolder()
|
|
7990
7994
|
}, {
|
|
7991
7995
|
args: [path],
|
|
7992
|
-
command: '
|
|
7996
|
+
command: 'RevealInExplorer.reveal',
|
|
7993
7997
|
flags: None$1,
|
|
7994
7998
|
id: 'revealInExplorerView',
|
|
7995
7999
|
label: revealInExplorerView()
|