@lvce-editor/main-area-worker 9.37.1 → 9.37.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.
@@ -3656,7 +3656,9 @@ const restoreClosedTab = async state => {
3656
3656
  if (!restored) {
3657
3657
  return state;
3658
3658
  }
3659
- return selectTab(restored.newState, restored.groupIndex, restored.tabIndex);
3659
+ const newState = await selectTab(restored.newState, restored.groupIndex, restored.tabIndex);
3660
+ set(state.uid, state, newState);
3661
+ return newState;
3660
3662
  };
3661
3663
 
3662
3664
  const focusEditorGroup = (state, groupId) => {
@@ -5884,7 +5886,11 @@ const loadContent$1 = async (state, savedState) => {
5884
5886
  };
5885
5887
 
5886
5888
  const handleWorkspaceChange = async (state, _workspacePath, savedState) => {
5887
- return loadContent$1(state, savedState);
5889
+ const newState = await loadContent$1(state, savedState);
5890
+ return {
5891
+ ...newState,
5892
+ closedTabs: []
5893
+ };
5888
5894
  };
5889
5895
 
5890
5896
  const handleWorkspaceRefresh = async (state, refresh = {}) => {
@@ -8044,6 +8050,7 @@ const commandMap = {
8044
8050
  'MainArea.create': create$1,
8045
8051
  'MainArea.diff2': diff2,
8046
8052
  'MainArea.flipEditorLayout': wrapSerialCommand(flipLayout),
8053
+ 'MainArea.focus': wrapSerialCommand(focus),
8047
8054
  'MainArea.focusNext': wrapSerialCommand(focusNextTab),
8048
8055
  'MainArea.focusNextTab': wrapSerialCommand(focusNextTab),
8049
8056
  'MainArea.focusPrevious': wrapSerialCommand(focusPreviousTab),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/main-area-worker",
3
- "version": "9.37.1",
3
+ "version": "9.37.3",
4
4
  "description": "Main Area Worker",
5
5
  "repository": {
6
6
  "type": "git",