@lvce-editor/main-area-worker 9.29.0 → 9.29.1

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.
@@ -4840,6 +4840,15 @@ const handleUriChange = async (state, oldUri, newUri) => {
4840
4840
  groups
4841
4841
  } = layout;
4842
4842
  const newTitle = getLabel(newUri);
4843
+ const editorUriUpdates = [];
4844
+ for (const group of groups) {
4845
+ for (const tab of group.tabs) {
4846
+ if (tab.uri === oldUri && tab.editorType === 'text' && tab.editorUid !== -1) {
4847
+ editorUriUpdates.push(invoke('Editor.handleUriChange', tab.editorUid, newUri));
4848
+ }
4849
+ }
4850
+ }
4851
+ await Promise.all(editorUriUpdates);
4843
4852
  const updatedGroups = groups.map(group => {
4844
4853
  return {
4845
4854
  ...group,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/main-area-worker",
3
- "version": "9.29.0",
3
+ "version": "9.29.1",
4
4
  "description": "Main Area Worker",
5
5
  "repository": {
6
6
  "type": "git",