@lvce-editor/main-area-worker 9.68.3 → 9.69.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.
@@ -974,6 +974,9 @@ const logError = () => {
974
974
  // handled by renderer worker
975
975
  };
976
976
  const handleMessage = event => {
977
+ if (event.data === 'ready') {
978
+ return Promise.resolve();
979
+ }
977
980
  const actualRequiresSocket = event?.target?.requiresSocket || requiresSocket;
978
981
  const actualExecute = event?.target?.execute || execute;
979
982
  return handleJsonRpcMessage(event.target, event.data, actualExecute, event.target._resolve, preparePrettyError, logError, actualRequiresSocket);
@@ -1466,55 +1469,55 @@ const SetPatches = 'Viewlet.setPatches';
1466
1469
  const FocusEditorText = 12;
1467
1470
 
1468
1471
  const {
1469
- invoke: invoke$7,
1472
+ invoke: invoke$8,
1470
1473
  set: set$7
1471
1474
  } = create$3(ClipBoardWorker);
1472
1475
  const writeText = async text => {
1473
- return invoke$7('ClipBoard.writeText', text);
1476
+ return invoke$8('ClipBoard.writeText', text);
1474
1477
  };
1475
1478
 
1476
1479
  const {
1477
- invoke: invoke$6,
1480
+ invoke: invoke$7,
1478
1481
  set: set$6
1479
1482
  } = create$3(DialogWorker);
1480
1483
 
1481
1484
  const {
1482
- invoke: invoke$5,
1485
+ invoke: invoke$6,
1483
1486
  set: set$5
1484
1487
  } = create$3(DragAndDropWorker);
1485
1488
  const getDroppedItemsByDropId = async (dropId, isElectron) => {
1486
- return invoke$5('DragAndDrop.getDroppedItemsByDropId', dropId, isElectron);
1489
+ return invoke$6('DragAndDrop.getDroppedItemsByDropId', dropId, isElectron);
1487
1490
  };
1488
1491
 
1489
1492
  const {
1490
- invoke: invoke$4,
1493
+ invoke: invoke$5,
1491
1494
  set: set$4
1492
1495
  } = create$3(IconThemeWorker);
1493
1496
  const getIcons = async iconRequests => {
1494
1497
  // @ts-ignore
1495
- return invoke$4('IconTheme.getIcons', iconRequests);
1498
+ return invoke$5('IconTheme.getIcons', iconRequests);
1496
1499
  };
1497
1500
 
1498
1501
  const {
1499
- invoke: invoke$3,
1502
+ invoke: invoke$4,
1500
1503
  invokeAndTransfer: invokeAndTransfer$2,
1501
1504
  set: set$3
1502
1505
  } = create$3(RendererProcess);
1503
1506
 
1504
1507
  const {
1505
- invoke: invoke$2,
1508
+ invoke: invoke$3,
1506
1509
  invokeAndTransfer: invokeAndTransfer$1,
1507
1510
  set: set$2
1508
1511
  } = create$3(RendererWorker);
1509
1512
  const handleModifiedStatusChange$1 = async (uri, modified) => {
1510
- return invoke$2('Main.handleModifiedStatusChange', uri, modified);
1513
+ return invoke$3('Main.handleModifiedStatusChange', uri, modified);
1511
1514
  };
1512
1515
  const showContextMenu2 = async (uid, menuId, x, y, args) => {
1513
1516
  number(uid);
1514
1517
  number(menuId);
1515
1518
  number(x);
1516
1519
  number(y);
1517
- await invoke$2('ContextMenu.show2', uid, menuId, x, y, args);
1520
+ await invoke$3('ContextMenu.show2', uid, menuId, x, y, args);
1518
1521
  };
1519
1522
  const sendMessagePortToClipBoardWorker$1 = async (port, rpcId) => {
1520
1523
  const command = 'ClipBoard.handleMessagePort';
@@ -1529,14 +1532,32 @@ const sendMessagePortToIconThemeWorker = async (port, rpcId) => {
1529
1532
  await invokeAndTransfer$1('SendMessagePortToExtensionHostWorker.sendMessagePortToIconThemeWorker', port, command, rpcId);
1530
1533
  };
1531
1534
  const readFile = async uri => {
1532
- return invoke$2('FileSystem.readFile', uri);
1535
+ return invoke$3('FileSystem.readFile', uri);
1533
1536
  };
1534
1537
  const confirm = async (message, options) => {
1535
- const result = await invoke$2('ConfirmPrompt.prompt', message, options);
1538
+ const result = await invoke$3('ConfirmPrompt.prompt', message, options);
1536
1539
  return result;
1537
1540
  };
1538
1541
  const getPreference = async key => {
1539
- return await invoke$2('Preferences.get', key);
1542
+ return await invoke$3('Preferences.get', key);
1543
+ };
1544
+
1545
+ const state$2 = {};
1546
+ const send$2 = async port => {
1547
+ await invokeAndTransfer$1('SendMessagePortToExtensionHostWorker.sendMessagePortToCacheWorker', port);
1548
+ };
1549
+ const initialize$2 = async () => {
1550
+ state$2.rpc = await create$6({
1551
+ commandMap: {},
1552
+ isMessagePortOpen: false,
1553
+ send: send$2
1554
+ });
1555
+ };
1556
+ const invoke$2 = async (command, ...args) => {
1557
+ if (!state$2.rpc) {
1558
+ throw new Error('Cache worker is not initialized');
1559
+ }
1560
+ return state$2.rpc.invoke(command, ...args);
1540
1561
  };
1541
1562
 
1542
1563
  const cacheName = 'lvce0main-area-tabs';
@@ -1574,22 +1595,24 @@ const isClosedTabEntry = value => {
1574
1595
  return Boolean(entry.group && typeof entry.group === 'object' && entry.tab && typeof entry.tab === 'object' && typeof entry.groupIndex === 'number' && typeof entry.tabIndex === 'number');
1575
1596
  };
1576
1597
  const getEntries = async key => {
1577
- const cache = await caches.open(cacheName);
1578
- const response = await cache.match(key);
1579
- const entries = response ? await response.json() : [];
1598
+ const item = await invoke$2('Cache.getCacheStorageItem', key, cacheName);
1599
+ const entries = item ? JSON.parse(new TextDecoder().decode(item.body)) : [];
1580
1600
  return Array.isArray(entries) ? entries.filter(isClosedTabEntry) : [];
1581
1601
  };
1582
1602
  const setEntries = async (key, entries) => {
1583
- const cache = await caches.open(cacheName);
1584
1603
  const value = JSON.stringify(entries);
1585
1604
  const expires = new Date(Date.now() + cacheDuration).toUTCString();
1586
- await cache.put(key, new Response(value, {
1587
- headers: {
1588
- 'Content-Length': String(value.length),
1589
- 'Content-Type': 'application/json',
1590
- Expires: expires
1591
- }
1592
- }));
1605
+ const result = await invoke$2('Cache.setCacheStorageItem', key, value, cacheName, {
1606
+ 'Content-Length': String(value.length),
1607
+ 'Content-Type': 'application/json',
1608
+ Expires: expires
1609
+ });
1610
+ if (!result?.success) {
1611
+ throw new Error('Failed to store closed tab history');
1612
+ }
1613
+ };
1614
+ const removeEntries = async key => {
1615
+ return await invoke$2('Cache.removeCacheStorageItem', key, cacheName);
1593
1616
  };
1594
1617
  const compact = entry => {
1595
1618
  return {
@@ -1618,7 +1641,7 @@ const add = (uid, entries) => {
1618
1641
  const clear = uid => {
1619
1642
  return run(uid, async () => {
1620
1643
  try {
1621
- await setEntries(getKey(uid), []);
1644
+ await removeEntries(getKey(uid));
1622
1645
  } catch {
1623
1646
  // Closed tab history is optional and must never break workspace changes.
1624
1647
  }
@@ -1631,9 +1654,17 @@ const takeLast = uid => {
1631
1654
  const entries = await getEntries(key);
1632
1655
  const entry = entries.at(-1);
1633
1656
  if (!isClosedTabEntry(entry)) {
1657
+ await removeEntries(key);
1634
1658
  return undefined;
1635
1659
  }
1636
- await setEntries(key, entries.slice(0, -1));
1660
+ if (entries.length === 1) {
1661
+ const removed = await removeEntries(key);
1662
+ if (!removed) {
1663
+ return undefined;
1664
+ }
1665
+ } else {
1666
+ await setEntries(key, entries.slice(0, -1));
1667
+ }
1637
1668
  return entry;
1638
1669
  } catch {
1639
1670
  return undefined;
@@ -1766,16 +1797,16 @@ const closeTab = (state, groupId, tabId) => {
1766
1797
  const handleAttach = async command => {
1767
1798
  // TODO find a better way to append editors
1768
1799
  const parentNodeSelector = '.EditorGroupsContainer, .EditorGroup';
1769
- await invoke$2('Layout.attachViewlet', parentNodeSelector, command.instanceId);
1800
+ await invoke$3('Layout.attachViewlet', parentNodeSelector, command.instanceId);
1770
1801
  };
1771
1802
 
1772
1803
  const invoke$1 = async (applicationId, method, ...args) => {
1773
- return applicationId === undefined ? invoke$2(method, ...args) : invoke$2('Application.execute', applicationId, method, ...args);
1804
+ return applicationId === undefined ? invoke$3(method, ...args) : invoke$3('Application.execute', applicationId, method, ...args);
1774
1805
  };
1775
1806
 
1776
1807
  const getViewletTitle = async editorUid => {
1777
1808
  try {
1778
- const title = await invoke$2('Viewlet.getTitle', editorUid);
1809
+ const title = await invoke$3('Viewlet.getTitle', editorUid);
1779
1810
  return typeof title === 'string' && title ? title : undefined;
1780
1811
  } catch {
1781
1812
  return undefined;
@@ -2228,17 +2259,17 @@ const handleCreate = async command => {
2228
2259
  const handleDetach = async command => {
2229
2260
  // Hides viewlet but keeps it alive
2230
2261
 
2231
- await invoke$2('Viewlet.detach', command.instanceId);
2262
+ await invoke$3('Viewlet.detach', command.instanceId);
2232
2263
  };
2233
2264
 
2234
2265
  const handleDispose = async command => {
2235
2266
  // Fully destroys viewlet
2236
2267
 
2237
- await invoke$2('Viewlet.dispose', command.instanceId);
2268
+ await invoke$3('Viewlet.dispose', command.instanceId);
2238
2269
  };
2239
2270
 
2240
2271
  const handleSetBounds = async command => {
2241
- await invoke$2('Viewlet.setBounds', command.instanceId, command.bounds);
2272
+ await invoke$3('Viewlet.setBounds', command.instanceId, command.bounds);
2242
2273
  };
2243
2274
 
2244
2275
  const executeViewletCommand = async command => {
@@ -2326,17 +2357,17 @@ const saveEditor = async (editorUid, skipFormatting = false) => {
2326
2357
  const args = skipFormatting ? [editorUid, true] : [editorUid];
2327
2358
  const rpc = get$2(RendererWorker);
2328
2359
  if (legacyRenderers.has(rpc)) {
2329
- return invoke$2('Editor.save', ...args);
2360
+ return invoke$3('Editor.save', ...args);
2330
2361
  }
2331
2362
  try {
2332
- return await invoke$2('Viewlet.save', ...args);
2363
+ return await invoke$3('Viewlet.save', ...args);
2333
2364
  } catch (error) {
2334
2365
  // Older renderers support only text editors. Never retry an actual save failure.
2335
2366
  if (!(error instanceof Error) || !['Command not found Viewlet.save', 'Command "Viewlet.save" not found (renderer worker)'].includes(error.message)) {
2336
2367
  throw error;
2337
2368
  }
2338
2369
  legacyRenderers.add(rpc);
2339
- return invoke$2('Editor.save', ...args);
2370
+ return invoke$3('Editor.save', ...args);
2340
2371
  }
2341
2372
  };
2342
2373
 
@@ -2367,7 +2398,7 @@ const promptSave = async title => {
2367
2398
  title: 'Save Changes'
2368
2399
  };
2369
2400
  try {
2370
- const result = await invoke$2('ConfirmPrompt.prompt3', message, options);
2401
+ const result = await invoke$3('ConfirmPrompt.prompt3', message, options);
2371
2402
  if (['cancel', 'discard', 'save'].includes(result)) {
2372
2403
  return result;
2373
2404
  }
@@ -2378,7 +2409,7 @@ const promptSave = async title => {
2378
2409
  }
2379
2410
  }
2380
2411
  try {
2381
- const result = await invoke$6('ConfirmPrompt.prompt3', message, options);
2412
+ const result = await invoke$7('ConfirmPrompt.prompt3', message, options);
2382
2413
  if (['cancel', 'discard', 'save'].includes(result)) {
2383
2414
  return result;
2384
2415
  }
@@ -2451,7 +2482,7 @@ const disposeEditors = async editorUids => {
2451
2482
  // Dispose all child viewlets in the renderer worker
2452
2483
  for (const editorUid of editorUids) {
2453
2484
  try {
2454
- await invoke$2('Viewlet.dispose', editorUid);
2485
+ await invoke$3('Viewlet.dispose', editorUid);
2455
2486
  } catch {
2456
2487
  // Silently ignore errors during disposal
2457
2488
  // Viewlet may already be disposed or renderer worker may not be available
@@ -2762,7 +2793,7 @@ const copyIntoNewWindow$1 = async state => {
2762
2793
  if (!tab?.uri) {
2763
2794
  return state;
2764
2795
  }
2765
- await invoke$2('ElectronWindow.openNewWithUri', tab.uri);
2796
+ await invoke$3('ElectronWindow.openNewWithUri', tab.uri);
2766
2797
  return state;
2767
2798
  };
2768
2799
 
@@ -2890,7 +2921,7 @@ const isConnected = () => {
2890
2921
  return connected;
2891
2922
  };
2892
2923
  const invoke = (method, ...params) => {
2893
- return invoke$3(method, ...params);
2924
+ return invoke$4(method, ...params);
2894
2925
  };
2895
2926
  const invokeAndTransfer = (method, ...params) => {
2896
2927
  return invokeAndTransfer$2(method, ...params);
@@ -2906,22 +2937,14 @@ const focus = async state => {
2906
2937
  if (typeof editorUid !== 'number' || editorUid < 0) {
2907
2938
  return state;
2908
2939
  }
2909
- if (activeTab?.tab.uri?.startsWith('search-editor://')) {
2910
- if (isConnected()) {
2911
- await invoke$1(state.applicationId, 'Layout.renderMainAreaPending', state.uid);
2912
- await invoke('Viewlet.focus', editorUid);
2913
- } else {
2914
- await invoke$2('Viewlet.focus', editorUid);
2915
- }
2916
- return state;
2917
- }
2918
- const selector = activeTab?.tab.terminal ? '.xterm-helper-textarea' : '[name="editor"]';
2940
+ const editorSelector = activeTab?.tab.terminal ? '.xterm-helper-textarea' : '[name="editor"]';
2941
+ const selector = activeTab?.tab.uri?.startsWith('search-editor://') ? '[name="SearchValue"]' : editorSelector;
2919
2942
  if (isConnected()) {
2920
2943
  await invoke$1(state.applicationId, 'Layout.renderMainAreaPending', state.uid);
2921
2944
  await invoke('Viewlet.focusSelector', editorUid, selector);
2922
2945
  await invoke('Viewlet.focusSelectorAfterRender', editorUid, selector);
2923
2946
  } else {
2924
- await invoke$2('Viewlet.focusSelector', editorUid, selector);
2947
+ await invoke$3('Viewlet.focusSelector', editorUid, selector);
2925
2948
  }
2926
2949
  return state;
2927
2950
  };
@@ -6523,7 +6546,7 @@ const parseTerminalDrag = strings => {
6523
6546
  };
6524
6547
  const receiveTerminal = async (context, drag, targetGroupId) => {
6525
6548
  const initial = context.getState();
6526
- const descriptor = await invoke$2('TerminalTransfer.takePanelTerminal', initial.uid, drag.sourceUid, drag.terminalUid);
6549
+ const descriptor = await invoke$3('TerminalTransfer.takePanelTerminal', initial.uid, drag.sourceUid, drag.terminalUid);
6527
6550
  if (!descriptor) {
6528
6551
  return;
6529
6552
  }
@@ -6550,11 +6573,11 @@ const receiveTerminal = async (context, drag, targetGroupId) => {
6550
6573
  });
6551
6574
  const location = findTabById(state, tabId);
6552
6575
  const bounds = getSelectedTabBounds(state, location.groupId);
6553
- await invoke$2('TerminalTransfer.resize', drag.terminalUid, bounds);
6576
+ await invoke$3('TerminalTransfer.resize', drag.terminalUid, bounds);
6554
6577
  await context.updateState(() => state);
6555
6578
  await invoke$1(state.applicationId, 'Layout.renderMainAreaPending', state.uid);
6556
6579
  await focus(state);
6557
- await invoke$2('TerminalTransfer.commit', drag.terminalUid, initial.uid);
6580
+ await invoke$3('TerminalTransfer.commit', drag.terminalUid, initial.uid);
6558
6581
  } catch (error) {
6559
6582
  if (tabId !== -1) {
6560
6583
  await context.updateState(state => {
@@ -6565,7 +6588,7 @@ const receiveTerminal = async (context, drag, targetGroupId) => {
6565
6588
  try {
6566
6589
  await invoke$1(initial.applicationId, 'Layout.renderMainAreaPending', initial.uid);
6567
6590
  } finally {
6568
- await invoke$2('TerminalTransfer.rollback', drag.terminalUid);
6591
+ await invoke$3('TerminalTransfer.rollback', drag.terminalUid);
6569
6592
  }
6570
6593
  throw error;
6571
6594
  }
@@ -6577,7 +6600,7 @@ const releaseTerminal = async (context, terminalUid, panelUid) => {
6577
6600
  if (!group || !tab) {
6578
6601
  return;
6579
6602
  }
6580
- const accepted = await invoke$2('TerminalTransfer.beginPanelTransfer', state.uid, panelUid, terminalUid);
6603
+ const accepted = await invoke$3('TerminalTransfer.beginPanelTransfer', state.uid, panelUid, terminalUid);
6581
6604
  if (!accepted) {
6582
6605
  return;
6583
6606
  }
@@ -6585,9 +6608,9 @@ const releaseTerminal = async (context, terminalUid, panelUid) => {
6585
6608
  await context.updateState(latest => closeTab(latest, group.id, tab.id));
6586
6609
  // Remove the old reference before reparenting the live DOM node.
6587
6610
  await invoke$1(state.applicationId, 'Layout.renderMainAreaPending', state.uid);
6588
- await invoke$2('TerminalTransfer.attachPanelTerminal', state.uid, panelUid, terminalUid, tab.title, tab.icon);
6611
+ await invoke$3('TerminalTransfer.attachPanelTerminal', state.uid, panelUid, terminalUid, tab.title, tab.icon);
6589
6612
  } catch (error) {
6590
- const live = await invoke$2('TerminalTransfer.cancelPanelTransfer', terminalUid);
6613
+ const live = await invoke$3('TerminalTransfer.cancelPanelTransfer', terminalUid);
6591
6614
  if (live) {
6592
6615
  await context.updateState(latest => ({
6593
6616
  ...latest,
@@ -7174,7 +7197,7 @@ const handleMessagePort = async (port, viewletCommandMap, setAsRendererProcessFa
7174
7197
  throw new TypeError(`Viewlet command not found: ${command}`);
7175
7198
  }
7176
7199
  await fn(uid, ...args);
7177
- await invoke$2('Viewlet.requestRender', uid);
7200
+ await invoke$3('Viewlet.requestRender', uid);
7178
7201
  };
7179
7202
  const rpc = await create$8({
7180
7203
  commandMap: {
@@ -7223,7 +7246,7 @@ const handleModifiedStatusChangeWithContext = async (context, uri, newStatus) =>
7223
7246
 
7224
7247
  const resizeChild = async (editorUid, dimensions) => {
7225
7248
  try {
7226
- return await invoke$2('Viewlet.resize', editorUid, dimensions);
7249
+ return await invoke$3('Viewlet.resize', editorUid, dimensions);
7227
7250
  } catch {
7228
7251
  return [];
7229
7252
  }
@@ -7565,7 +7588,7 @@ const focusTab = async (state, groupIndex, index) => {
7565
7588
  if (isConnected()) {
7566
7589
  await invoke('Viewlet.focusSelector', state.uid, selector);
7567
7590
  } else {
7568
- await invoke$2('Viewlet.focusSelector', state.uid, selector);
7591
+ await invoke$3('Viewlet.focusSelector', state.uid, selector);
7569
7592
  }
7570
7593
  };
7571
7594
  const handleTabKeyDown = async (state, groupIndexRaw, indexRaw, key) => {
@@ -7612,7 +7635,7 @@ const handleTabsWheel = async (state, groupIndexRaw, deltaMode, deltaY) => {
7612
7635
  if (isConnected()) {
7613
7636
  await invoke('Viewlet.scrollSelectorBy', state.uid, selector, pixelDelta);
7614
7637
  } else {
7615
- await invoke$2('Viewlet.scrollSelectorBy', state.uid, selector, pixelDelta);
7638
+ await invoke$3('Viewlet.scrollSelectorBy', state.uid, selector, pixelDelta);
7616
7639
  }
7617
7640
  return state;
7618
7641
  };
@@ -7639,7 +7662,7 @@ const handleUriChange = async (state, oldUri, newUri) => {
7639
7662
  }
7640
7663
  if (renamedUri) {
7641
7664
  if (tab.editorInput?.type === 'editor' && tab.editorUid !== -1) {
7642
- editorUriUpdates.push(invoke$2('Editor.handleUriChange', tab.editorUid, renamedUri));
7665
+ editorUriUpdates.push(invoke$3('Editor.handleUriChange', tab.editorUid, renamedUri));
7643
7666
  }
7644
7667
  const editorInput = tab.editorInput && 'uri' in tab.editorInput ? {
7645
7668
  ...tab.editorInput,
@@ -8005,7 +8028,7 @@ const reloadChangedEditors = async (state, changed, reloadAll) => {
8005
8028
  }
8006
8029
  }
8007
8030
  }
8008
- await Promise.allSettled(Array.from(editorUids, editorUid => invoke$2('Viewlet.reload', editorUid)));
8031
+ await Promise.allSettled(Array.from(editorUids, editorUid => invoke$3('Viewlet.reload', editorUid)));
8009
8032
  };
8010
8033
  const handleWorkspaceRefresh = async (state, refresh = {}) => {
8011
8034
  const changes = Array.isArray(refresh) ? {
@@ -8308,12 +8331,12 @@ const moveIntoNewWindow = async state => {
8308
8331
  if (!tab?.uri) {
8309
8332
  return state;
8310
8333
  }
8311
- await invoke$2('ElectronWindow.openNewWithUri', tab.uri);
8334
+ await invoke$3('ElectronWindow.openNewWithUri', tab.uri);
8312
8335
  return closeTabAndSave(state, group.id, activeTabId);
8313
8336
  };
8314
8337
 
8315
8338
  const newWindow = async state => {
8316
- await invoke$2('ElectronWindow.openNew');
8339
+ await invoke$3('ElectronWindow.openNew');
8317
8340
  return state;
8318
8341
  };
8319
8342
 
@@ -8573,7 +8596,7 @@ const renderPendingViewletUpdate = (oldState, newState) => {
8573
8596
  const update = newState.pendingViewletUpdate;
8574
8597
  newState.pendingViewletUpdate = undefined;
8575
8598
  setTimeout(() => {
8576
- void invoke$2('Viewlet.dispose', update.disposal).catch(() => {});
8599
+ void invoke$3('Viewlet.dispose', update.disposal).catch(() => {});
8577
8600
  }, 50);
8578
8601
  return update.focus === undefined ? [] : ['Viewlet.setFocusContext', update.focus, FocusEditorText, 0, update.focus, 'Editor'];
8579
8602
  };
@@ -8808,7 +8831,7 @@ const reopenEditorWith = async (context, preferredEditorId) => {
8808
8831
  await context.updateState(() => readyState);
8809
8832
  if (oldEditorUid !== -1) {
8810
8833
  try {
8811
- await invoke$2('Viewlet.dispose', oldEditorUid);
8834
+ await invoke$3('Viewlet.dispose', oldEditorUid);
8812
8835
  } catch {
8813
8836
  // Reopening should still proceed if the previous viewlet was already disposed.
8814
8837
  }
@@ -9199,7 +9222,7 @@ const splitEditorGroupAndResize = async (state, split, ...args) => {
9199
9222
  await handleResize(newState, newState);
9200
9223
  const editorUids = newState.layout.groups.flatMap(group => group.tabs.map(tab => tab.editorUid).filter(editorUid => editorUid !== -1));
9201
9224
  for (const editorUid of editorUids) {
9202
- await invoke$2('Viewlet.requestRender', editorUid);
9225
+ await invoke$3('Viewlet.requestRender', editorUid);
9203
9226
  }
9204
9227
  return newState;
9205
9228
  };
@@ -9256,6 +9279,7 @@ const commandMap = {
9256
9279
  'Main.focusPreviousTab': wrapSerialCommand(focusPreviousTab),
9257
9280
  'Main.handleModifiedStatusChange': wrapAsyncCommand(handleModifiedStatusChangeWithContext),
9258
9281
  'Main.handleTabContextMenu': wrapSerialCommand(handleTabContextMenu),
9282
+ 'Main.handleUriChange': wrapAsyncCommand(handleUriChangeWithContext),
9259
9283
  'Main.hasActiveTextEditor': wrapGetter(hasActiveTextEditor),
9260
9284
  'Main.hasDirtyTabs': wrapGetter(hasDirtyTabs),
9261
9285
  'Main.openInput': wrapSerialAsyncCommand(openInputWithContext),
@@ -9435,7 +9459,7 @@ const initializeRendererWorker = async port => {
9435
9459
 
9436
9460
  const listen = async port => {
9437
9461
  registerCommands(commandMap);
9438
- await Promise.all([initializeRendererWorker(port), initializeIconThemeWorker(), initializeClipBoardWorker(), initializeDragAndDropWorker()]);
9462
+ await Promise.all([initializeRendererWorker(port), initializeIconThemeWorker(), initializeClipBoardWorker(), initializeDragAndDropWorker(), initialize$2()]);
9439
9463
  const dialogRpc = await create$6({
9440
9464
  commandMap: {},
9441
9465
  send: sendMessagePortToDialogWorker
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/main-area-worker",
3
- "version": "9.68.3",
3
+ "version": "9.69.1",
4
4
  "description": "Main Area Worker",
5
5
  "repository": {
6
6
  "type": "git",