@lvce-editor/test-worker 4.38.0 → 4.40.0

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.
@@ -531,11 +531,11 @@ const remove$1 = id => {
531
531
  delete callbacks[id];
532
532
  };
533
533
  let id = 0;
534
- const create$3 = () => {
534
+ const create$3$1 = () => {
535
535
  return ++id;
536
536
  };
537
537
  const registerPromise = () => {
538
- const id = create$3();
538
+ const id = create$3$1();
539
539
  const {
540
540
  resolve,
541
541
  promise
@@ -768,7 +768,7 @@ const getErrorResponse = (id, error, preparePrettyError, logError) => {
768
768
  const errorProperty = getErrorProperty(error, prettyError);
769
769
  return create$1$1(id, errorProperty);
770
770
  };
771
- const create$5 = (message, result) => {
771
+ const create$6 = (message, result) => {
772
772
  return {
773
773
  jsonrpc: Two,
774
774
  id: message.id,
@@ -777,7 +777,7 @@ const create$5 = (message, result) => {
777
777
  };
778
778
  const getSuccessResponse = (message, result) => {
779
779
  const resultProperty = result ?? null;
780
- return create$5(message, resultProperty);
780
+ return create$6(message, resultProperty);
781
781
  };
782
782
  const getErrorResponseSimple = (id, error) => {
783
783
  return {
@@ -881,11 +881,11 @@ const invokeHelper = async (ipc, method, params, useSendAndTransfer) => {
881
881
  const responseMessage = await promise;
882
882
  return unwrapJsonRpcResult(responseMessage);
883
883
  };
884
- const send = (transport, method, ...params) => {
884
+ const send$1 = (transport, method, ...params) => {
885
885
  const message = create$4(method, params);
886
886
  transport.send(message);
887
887
  };
888
- const invoke$1 = (ipc, method, ...params) => {
888
+ const invoke$2 = (ipc, method, ...params) => {
889
889
  return invokeHelper(ipc, method, params, false);
890
890
  };
891
891
  const invokeAndTransfer$1 = (ipc, method, ...params) => {
@@ -921,10 +921,10 @@ const createRpc = ipc => {
921
921
  * @deprecated
922
922
  */
923
923
  send(method, ...params) {
924
- send(ipc, method, ...params);
924
+ send$1(ipc, method, ...params);
925
925
  },
926
926
  invoke(method, ...params) {
927
- return invoke$1(ipc, method, ...params);
927
+ return invoke$2(ipc, method, ...params);
928
928
  },
929
929
  invokeAndTransfer(method, ...params) {
930
930
  return invokeAndTransfer$1(ipc, method, ...params);
@@ -985,6 +985,40 @@ const MessagePortRpcParent = {
985
985
  __proto__: null,
986
986
  create: create$e
987
987
  };
988
+ const create$5 = async ({
989
+ commandMap,
990
+ messagePort
991
+ }) => {
992
+ // TODO create a commandMap per rpc instance
993
+ register(commandMap);
994
+ const rawIpc = await IpcParentWithMessagePort$1.create({
995
+ messagePort,
996
+ isMessagePortOpen: true
997
+ });
998
+ const ipc = IpcParentWithMessagePort$1.wrap(rawIpc);
999
+ handleIpc(ipc);
1000
+ const rpc = createRpc(ipc);
1001
+ messagePort.start();
1002
+ return rpc;
1003
+ };
1004
+ const create$3 = async ({
1005
+ commandMap,
1006
+ send
1007
+ }) => {
1008
+ const {
1009
+ port1,
1010
+ port2
1011
+ } = new MessageChannel();
1012
+ await send(port1);
1013
+ return create$5({
1014
+ commandMap,
1015
+ messagePort: port2
1016
+ });
1017
+ };
1018
+ const TransferMessagePortRpcParent = {
1019
+ __proto__: null,
1020
+ create: create$3
1021
+ };
988
1022
  const create$2 = async ({
989
1023
  commandMap
990
1024
  }) => {
@@ -1055,16 +1089,23 @@ const {
1055
1089
  invoke: invoke$3,
1056
1090
  invokeAndTransfer: invokeAndTransfer$3,
1057
1091
  set: set$3} = create$1(RendererWorker$1);
1092
+ const sendMessagePortToEditorWorker$1 = async (port, rpcId) => {
1093
+ const command = 'HandleMessagePort.handleMessagePort';
1094
+ // @ts-ignore
1095
+ await invokeAndTransfer$3('SendMessagePortToExtensionHostWorker.sendMessagePortToEditorWorker', port, command, rpcId);
1096
+ };
1058
1097
  const RendererWorker = {
1059
1098
  __proto__: null,
1060
1099
  invoke: invoke$3,
1061
1100
  invokeAndTransfer: invokeAndTransfer$3,
1101
+ sendMessagePortToEditorWorker: sendMessagePortToEditorWorker$1,
1062
1102
  set: set$3};
1063
1103
 
1064
1104
  const {
1065
1105
  set: set$1,
1066
- invoke,
1067
- invokeAndTransfer
1106
+ invoke: invoke$1,
1107
+ invokeAndTransfer,
1108
+ sendMessagePortToEditorWorker
1068
1109
  } = RendererWorker;
1069
1110
 
1070
1111
  const stringifyError = error => {
@@ -1124,7 +1165,7 @@ const executeTest = async (name, fn, globals = {}) => {
1124
1165
  state = Pass;
1125
1166
  }
1126
1167
  // @ts-ignore
1127
- await invoke('TestFrameWork.showOverlay', state, background, text);
1168
+ await invoke$1('TestFrameWork.showOverlay', state, background, text);
1128
1169
  };
1129
1170
 
1130
1171
  const importScript = async url => {
@@ -1166,7 +1207,7 @@ const getLocatorInvoke = locator => {
1166
1207
  const module = get(locator.webViewId);
1167
1208
  return module.invoke;
1168
1209
  }
1169
- return invoke;
1210
+ return invoke$1;
1170
1211
  };
1171
1212
 
1172
1213
  const locatorInvoke = (locator, method, ...params) => {
@@ -1564,7 +1605,7 @@ test.skip = async id => {
1564
1605
  const background = 'yellow';
1565
1606
  const text = `test skipped ${id}`;
1566
1607
  // @ts-ignore
1567
- await invoke('TestFrameWork.showOverlay', state, background, text);
1608
+ await invoke$1('TestFrameWork.showOverlay', state, background, text);
1568
1609
  };
1569
1610
  const {
1570
1611
  expect
@@ -1579,22 +1620,22 @@ const TestFrameWork = {
1579
1620
  };
1580
1621
 
1581
1622
  const show$3 = async () => {
1582
- return invoke('About.showAbout');
1623
+ return invoke$1('About.showAbout');
1583
1624
  };
1584
1625
  const handleClickOk = async () => {
1585
- return invoke('About.handleClickOk');
1626
+ return invoke$1('About.handleClickOk');
1586
1627
  };
1587
1628
  const handleClickClose = async () => {
1588
- return invoke('About.handleClickClose');
1629
+ return invoke$1('About.handleClickClose');
1589
1630
  };
1590
1631
  const handleClickCopy = async () => {
1591
- return invoke('About.handleClickCopy');
1632
+ return invoke$1('About.handleClickCopy');
1592
1633
  };
1593
1634
  const focusNext$9 = async () => {
1594
- return invoke('About.focusNext');
1635
+ return invoke$1('About.focusNext');
1595
1636
  };
1596
1637
  const focusPrevious$7 = async () => {
1597
- return invoke('About.focusPrevious');
1638
+ return invoke$1('About.focusPrevious');
1598
1639
  };
1599
1640
 
1600
1641
  const TestFrameWorkComponentAbout = {
@@ -1608,28 +1649,28 @@ const TestFrameWorkComponentAbout = {
1608
1649
  };
1609
1650
 
1610
1651
  const focus$2 = async () => {
1611
- await invoke('ActivityBar.focus');
1652
+ await invoke$1('ActivityBar.focus');
1612
1653
  };
1613
1654
  const focusFirst$7 = async () => {
1614
- await invoke('ActivityBar.focusFirst');
1655
+ await invoke$1('ActivityBar.focusFirst');
1615
1656
  };
1616
1657
  const focusLast$6 = async () => {
1617
- await invoke('ActivityBar.focusLast');
1658
+ await invoke$1('ActivityBar.focusLast');
1618
1659
  };
1619
1660
  const focusNext$8 = async () => {
1620
- await invoke('ActivityBar.focusNext');
1661
+ await invoke$1('ActivityBar.focusNext');
1621
1662
  };
1622
1663
  const focusPrevious$6 = async () => {
1623
- await invoke('ActivityBar.focusPrevious');
1664
+ await invoke$1('ActivityBar.focusPrevious');
1624
1665
  };
1625
1666
  const handleClick$2 = async index => {
1626
- await invoke('ActivityBar.handleClick', index);
1667
+ await invoke$1('ActivityBar.handleClick', index);
1627
1668
  };
1628
1669
  const handleContextMenu$1 = async () => {
1629
- await invoke('ActivityBar.handleContextMenu');
1670
+ await invoke$1('ActivityBar.handleContextMenu');
1630
1671
  };
1631
1672
  const selectCurrent = async () => {
1632
- await invoke('ActivityBar.selectCurrent');
1673
+ await invoke$1('ActivityBar.selectCurrent');
1633
1674
  };
1634
1675
 
1635
1676
  const TestFrameworkComponentActivityBar = {
@@ -1689,19 +1730,19 @@ const TestFrameWorkComponentBaseUrl = {
1689
1730
  };
1690
1731
 
1691
1732
  const readNativeFiles = async () => {
1692
- await invoke('ClipBoard.readNativeFiles');
1733
+ await invoke$1('ClipBoard.readNativeFiles');
1693
1734
  };
1694
1735
  const writeNativeFiles = async uris => {
1695
1736
  // @ts-ignore
1696
- await invoke('ClipBoard.writeNativeFiles', uris);
1737
+ await invoke$1('ClipBoard.writeNativeFiles', uris);
1697
1738
  };
1698
1739
  const enableMemoryClipBoard = async () => {
1699
1740
  // @ts-ignore
1700
- await invoke('ClipBoard.enableMemoryClipBoard');
1741
+ await invoke$1('ClipBoard.enableMemoryClipBoard');
1701
1742
  };
1702
1743
  const disableMemoryClipBoard = async () => {
1703
1744
  // @ts-ignore
1704
- await invoke('ClipBoard.disableMemoryClipBoard');
1745
+ await invoke$1('ClipBoard.disableMemoryClipBoard');
1705
1746
  };
1706
1747
 
1707
1748
  const TestFrameworkComponentClipBoard = {
@@ -1714,7 +1755,7 @@ const TestFrameworkComponentClipBoard = {
1714
1755
 
1715
1756
  const execute$1 = async (id, ...args) => {
1716
1757
  // @ts-ignore
1717
- return invoke(id, ...args);
1758
+ return invoke$1(id, ...args);
1718
1759
  };
1719
1760
 
1720
1761
  const TestFrameWorkComponentCommand = {
@@ -1723,7 +1764,7 @@ const TestFrameWorkComponentCommand = {
1723
1764
  };
1724
1765
 
1725
1766
  const selectItem$1 = async text => {
1726
- await invoke('Menu.selectItem', text);
1767
+ await invoke$1('Menu.selectItem', text);
1727
1768
  };
1728
1769
 
1729
1770
  const TestFrameWorkComponentContextMenu = {
@@ -1733,35 +1774,35 @@ const TestFrameWorkComponentContextMenu = {
1733
1774
 
1734
1775
  const openIframeInspector = async () => {
1735
1776
  // @ts-ignore
1736
- return invoke('Developer.openIframeInspector');
1777
+ return invoke$1('Developer.openIframeInspector');
1737
1778
  };
1738
1779
  const openCacheFolder = async () => {
1739
1780
  // @ts-ignore
1740
- return invoke('Developer.openCacheFolder');
1781
+ return invoke$1('Developer.openCacheFolder');
1741
1782
  };
1742
1783
  const openConfigFolder = async () => {
1743
1784
  // @ts-ignore
1744
- return invoke('Developer.openConfigFolder');
1785
+ return invoke$1('Developer.openConfigFolder');
1745
1786
  };
1746
1787
  const openLogsFolder = async () => {
1747
1788
  // @ts-ignore
1748
- return invoke('Developer.openLogsFolder');
1789
+ return invoke$1('Developer.openLogsFolder');
1749
1790
  };
1750
1791
  const openProcessExplorer = async () => {
1751
1792
  // @ts-ignore
1752
- return invoke('Developer.openProcessExplorer');
1793
+ return invoke$1('Developer.openProcessExplorer');
1753
1794
  };
1754
1795
  const reloadColorTheme = async () => {
1755
1796
  // @ts-ignore
1756
- return invoke('Developer.reloadColorTheme');
1797
+ return invoke$1('Developer.reloadColorTheme');
1757
1798
  };
1758
1799
  const reloadIconTheme = async () => {
1759
1800
  // @ts-ignore
1760
- return invoke('Developer.reloadIconTheme');
1801
+ return invoke$1('Developer.reloadIconTheme');
1761
1802
  };
1762
1803
  const toggleDeveloperTools = async () => {
1763
1804
  // @ts-ignore
1764
- return invoke('Developer.toggleDeveloperTools');
1805
+ return invoke$1('Developer.toggleDeveloperTools');
1765
1806
  };
1766
1807
 
1767
1808
  const TestFrameWorkComponentDeveloper = {
@@ -1793,12 +1834,12 @@ const executeMock$1 = id => {
1793
1834
 
1794
1835
  const showSaveFilePicker = async () => {
1795
1836
  // @ts-ignore
1796
- await invoke('FilePicker.showSaveFilePicker');
1837
+ await invoke$1('FilePicker.showSaveFilePicker');
1797
1838
  };
1798
1839
  const mockSaveFilePicker = async fn => {
1799
1840
  const id = registerMock(fn);
1800
1841
  // @ts-ignore
1801
- await invoke('FilePicker.mockSaveFilePicker', id);
1842
+ await invoke$1('FilePicker.mockSaveFilePicker', id);
1802
1843
  };
1803
1844
  const executeMock = id => {
1804
1845
  return executeMock$1(id);
@@ -1811,185 +1852,234 @@ const TestFrameWorkComponentDialog = {
1811
1852
  showSaveFilePicker
1812
1853
  };
1813
1854
 
1855
+ const areSelectionsEqual = (a, b) => {
1856
+ if (a.length !== b.length) {
1857
+ return false;
1858
+ }
1859
+ for (let i = 0; i < a.length; i++) {
1860
+ if (a[i] !== b[i]) {
1861
+ return false;
1862
+ }
1863
+ }
1864
+ return true;
1865
+ };
1866
+
1867
+ const send = async port => {
1868
+ const rpcId = 9001;
1869
+ await sendMessagePortToEditorWorker(port, rpcId);
1870
+ };
1871
+ const launchEditorWorkerRpc = async () => {
1872
+ const rpc = await TransferMessagePortRpcParent.create({
1873
+ commandMap: {},
1874
+ send
1875
+ });
1876
+ return rpc;
1877
+ };
1878
+
1879
+ let rpcPromise;
1880
+ const getRpc = () => {
1881
+ if (!rpcPromise) {
1882
+ rpcPromise = launchEditorWorkerRpc();
1883
+ }
1884
+ return rpcPromise;
1885
+ };
1886
+ const invoke = async (method, ...params) => {
1887
+ const rpc = await getRpc();
1888
+ return rpc.invoke(method, ...params);
1889
+ };
1890
+
1814
1891
  const setCursor = async (rowIndex, columnIndex) => {
1815
- await invoke('Editor.cursorSet', rowIndex, columnIndex);
1892
+ await invoke$1('Editor.cursorSet', rowIndex, columnIndex);
1816
1893
  };
1817
1894
  const openCompletion = async () => {
1818
- await invoke('Editor.openCompletion');
1895
+ await invoke$1('Editor.openCompletion');
1819
1896
  };
1820
1897
  const closeCompletion = async () => {
1821
1898
  // @ts-ignore
1822
- await invoke('EditorCompletion.close');
1899
+ await invoke$1('EditorCompletion.close');
1823
1900
  };
1824
1901
  const openEditorContextMenu = async () => {
1825
- await invoke('Editor.handleContextMenu', 0, 0);
1902
+ await invoke$1('Editor.handleContextMenu', 0, 0);
1826
1903
  };
1827
1904
  const invokeTabCompletion = async () => {
1828
- await invoke('Editor.tabCompletion');
1905
+ await invoke$1('Editor.tabCompletion');
1829
1906
  };
1830
1907
  const executeTabCompletion = async () => {
1831
- await invoke('Editor.tabCompletion');
1908
+ await invoke$1('Editor.tabCompletion');
1832
1909
  };
1833
1910
  const invokeBraceCompletion = async text => {
1834
- await invoke('Editor.braceCompletion', text);
1911
+ await invoke$1('Editor.braceCompletion', text);
1835
1912
  };
1836
1913
  const cursorCharacterRight = async () => {
1837
- await invoke('Editor.cursorCharacterRight');
1914
+ await invoke$1('Editor.cursorCharacterRight');
1838
1915
  };
1839
1916
  const cursorCharacterLeft = async () => {
1840
- await invoke('Editor.cursorCharacterLeft');
1917
+ await invoke$1('Editor.cursorCharacterLeft');
1841
1918
  };
1842
1919
  const copyLineDown = async () => {
1843
- await invoke('Editor.copyLineDown');
1920
+ await invoke$1('Editor.copyLineDown');
1844
1921
  };
1845
1922
  const cursorDown = async () => {
1846
- await invoke('Editor.cursorDown');
1923
+ await invoke$1('Editor.cursorDown');
1847
1924
  };
1848
1925
  const cursorUp = async () => {
1849
- await invoke('Editor.cursorUp');
1926
+ await invoke$1('Editor.cursorUp');
1850
1927
  };
1851
1928
  const cursorWordLeft = async () => {
1852
- await invoke('Editor.cursorWordLeft');
1929
+ await invoke$1('Editor.cursorWordLeft');
1853
1930
  };
1854
1931
  const cursorWordRight = async () => {
1855
- await invoke('Editor.cursorWordRight');
1932
+ await invoke$1('Editor.cursorWordRight');
1856
1933
  };
1857
1934
  const goToDefinition = async () => {
1858
- await invoke('Editor.goToDefinition');
1935
+ await invoke$1('Editor.goToDefinition');
1859
1936
  };
1860
1937
  const openHover = async () => {
1861
- await invoke('Editor.showHover2');
1938
+ await invoke$1('Editor.showHover2');
1862
1939
  };
1863
1940
  const goToTypeDefinition = async () => {
1864
- await invoke('Editor.goToTypeDefinition');
1941
+ await invoke$1('Editor.goToTypeDefinition');
1865
1942
  };
1866
1943
  const type = async text => {
1867
- await invoke('Editor.type', text);
1944
+ await invoke$1('Editor.type', text);
1868
1945
  };
1869
1946
  const findAllReferences = async () => {
1870
1947
  // @ts-ignore
1871
- await invoke('SideBar.show', 'References', /* focus */true);
1948
+ await invoke$1('SideBar.show', 'References', /* focus */true);
1872
1949
  };
1873
1950
  const findAllImplementations = async () => {
1874
1951
  // @ts-ignore
1875
- await invoke('SideBar.show', 'Implementations', /* focus */true);
1952
+ await invoke$1('SideBar.show', 'Implementations', /* focus */true);
1876
1953
  };
1877
1954
  const setSelections = async selections => {
1878
- await invoke('Editor.setSelections', selections);
1955
+ await invoke$1('Editor.setSelections', selections);
1879
1956
  };
1880
1957
  const openFindWidget = async () => {
1881
- await invoke('Editor.openFind');
1958
+ await invoke$1('Editor.openFind');
1882
1959
  };
1883
1960
  const setDeltaY = async deltaY => {
1884
- await invoke('Editor.setDeltaY', deltaY);
1961
+ await invoke$1('Editor.setDeltaY', deltaY);
1885
1962
  };
1886
1963
  const format = async () => {
1887
- await invoke('Editor.format');
1964
+ await invoke$1('Editor.format');
1888
1965
  };
1889
1966
  const insertLineBreak = async () => {
1890
- await invoke('Editor.insertLineBreak');
1967
+ await invoke$1('Editor.insertLineBreak');
1891
1968
  };
1892
1969
  const openSourceActions = async () => {
1893
- await invoke('Editor.showSourceActions2');
1970
+ await invoke$1('Editor.showSourceActions2');
1894
1971
  };
1895
1972
  const sourceActionsSelectCurrent = async () => {
1896
- await invoke('EditorSourceActions.selectCurrent');
1973
+ await invoke$1('EditorSourceActions.selectCurrent');
1897
1974
  };
1898
1975
  const openCompletionDetails = async () => {
1899
- await invoke('EditorCompletion.openDetails');
1976
+ await invoke$1('EditorCompletion.openDetails');
1900
1977
  };
1901
1978
  const closeCompletionDetails = async () => {
1902
1979
  // @ts-ignore
1903
- await invoke('EditorCompletion.closeDetails');
1980
+ await invoke$1('EditorCompletion.closeDetails');
1904
1981
  };
1905
1982
  const toggleCompletionDetails = async () => {
1906
1983
  // @ts-ignore
1907
- await invoke('EditorCompletion.toggleDetails');
1984
+ await invoke$1('EditorCompletion.toggleDetails');
1908
1985
  };
1909
1986
  const organizeImports = async () => {
1910
- await invoke('Editor.organizeImports');
1987
+ await invoke$1('Editor.organizeImports');
1911
1988
  };
1912
1989
  const addAllMissingImports = async () => {
1913
- await invoke('Editor.addAllMissingImports');
1990
+ await invoke$1('Editor.addAllMissingImports');
1914
1991
  };
1915
1992
  const sortImports = async () => {
1916
- await invoke('Editor.sortImports');
1993
+ await invoke$1('Editor.sortImports');
1917
1994
  };
1918
1995
  const toggleLineComment = async () => {
1919
- await invoke('Editor.toggleLineComment');
1996
+ await invoke$1('Editor.toggleLineComment');
1920
1997
  };
1921
1998
  const toggleBlockComment = async () => {
1922
- await invoke('Editor.toggleBlockComment');
1999
+ await invoke$1('Editor.toggleBlockComment');
1923
2000
  };
1924
2001
  const selectAll$1 = async () => {
1925
- await invoke('Editor.toggleBlockComment');
2002
+ await invoke$1('Editor.toggleBlockComment');
1926
2003
  };
1927
2004
  const openColorPicker = async () => {
1928
- await invoke('Editor.openColorPicker');
2005
+ await invoke$1('Editor.openColorPicker');
1929
2006
  };
1930
2007
  const openFind = async () => {
1931
2008
  // @ts-ignore
1932
- await invoke('Editor.openFind2');
2009
+ await invoke$1('Editor.openFind2');
1933
2010
  };
1934
2011
  const deleteAllLeft = async () => {
1935
- await invoke('Editor.deleteAllLeft');
2012
+ await invoke$1('Editor.deleteAllLeft');
1936
2013
  };
1937
2014
  const deleteAllRight = async () => {
1938
- await invoke('Editor.deleteAllRight');
2015
+ await invoke$1('Editor.deleteAllRight');
1939
2016
  };
1940
2017
  const cursorWordPartLeft = async () => {
1941
- await invoke('Editor.cursorWordPartLeft');
2018
+ await invoke$1('Editor.cursorWordPartLeft');
1942
2019
  };
1943
2020
  const cursorWordPartRight = async () => {
1944
- await invoke('Editor.cursorWordPartRight');
2021
+ await invoke$1('Editor.cursorWordPartRight');
1945
2022
  };
1946
2023
  const cursorEnd = async () => {
1947
- await invoke('Editor.cursorEnd');
2024
+ await invoke$1('Editor.cursorEnd');
1948
2025
  };
1949
2026
  const cursorHome = async () => {
1950
- await invoke('Editor.cursorHome');
2027
+ await invoke$1('Editor.cursorHome');
1951
2028
  };
1952
2029
  const copyLineUp = async () => {
1953
- await invoke('Editor.copyLineUp');
2030
+ await invoke$1('Editor.copyLineUp');
1954
2031
  };
1955
2032
  const copy = async () => {
1956
- await invoke('Editor.copy');
2033
+ await invoke$1('Editor.copy');
1957
2034
  };
1958
2035
  const closeColorPicker = async () => {
1959
- await invoke('Editor.closeColorPicker');
2036
+ await invoke$1('Editor.closeColorPicker');
1960
2037
  };
1961
2038
  const openContextMenu$1 = async () => {
1962
2039
  const button = 0;
1963
2040
  const x = 0;
1964
2041
  const y = 0;
1965
- await invoke('Editor.contextMenu', button, x, y);
2042
+ await invoke$1('Editor.contextMenu', button, x, y);
1966
2043
  };
1967
2044
  const getText = async () => {
1968
- return invoke('Editor.getText');
2045
+ return invoke$1('Editor.getText');
1969
2046
  };
1970
2047
  const rename$1 = async () => {
1971
- await invoke('Editor.rename');
2048
+ await invoke$1('Editor.rename');
1972
2049
  };
1973
2050
  const showHover = async () => {
1974
- await invoke('Editor.showHover2');
2051
+ await invoke$1('Editor.showHover2');
1975
2052
  };
1976
2053
  const openRename = async () => {
1977
- await invoke('Editor.openRename');
2054
+ await invoke$1('Editor.openRename');
1978
2055
  };
1979
2056
  const growSelection = async () => {
1980
2057
  // @ts-ignore
1981
- await invoke('Editor.selectionGrow');
2058
+ await invoke$1('Editor.selectionGrow');
1982
2059
  };
1983
2060
  const getSelections = async () => {
2061
+ const keys = await invoke('Editor.getKeys');
2062
+ const key = keys.at(-1);
2063
+ const numeric = Number.parseInt(key);
1984
2064
  // @ts-ignore
1985
- return invoke('Editor.getSelections');
2065
+ return invoke('Editor.getSelections', numeric);
1986
2066
  };
1987
2067
  const shouldHaveText = async expectedText => {
1988
- const text = await invoke('Editor.getText');
2068
+ const text = await invoke$1('Editor.getText');
1989
2069
  if (text !== expectedText) {
1990
2070
  throw new Error(`Expected editor to have text ${expectedText} but was ${text}`);
1991
2071
  }
1992
2072
  };
2073
+ const shouldHaveSelections = async expectedSelections => {
2074
+ const keys = await invoke('Editor.getKeys');
2075
+ const key = keys.at(-1);
2076
+ const numeric = Number.parseInt(key);
2077
+ // @ts-ignore
2078
+ const selections = await invoke('Editor.getSelections', numeric);
2079
+ if (!areSelectionsEqual(selections, expectedSelections)) {
2080
+ throw new Error(`Expected editor to have selections ${expectedSelections} but was ${selections}`);
2081
+ }
2082
+ };
1993
2083
 
1994
2084
  const TestFrameWorkComponentEditor = {
1995
2085
  __proto__: null,
@@ -2040,6 +2130,7 @@ const TestFrameWorkComponentEditor = {
2040
2130
  setCursor,
2041
2131
  setDeltaY,
2042
2132
  setSelections,
2133
+ shouldHaveSelections,
2043
2134
  shouldHaveText,
2044
2135
  showHover,
2045
2136
  sortImports,
@@ -2051,10 +2142,10 @@ const TestFrameWorkComponentEditor = {
2051
2142
  };
2052
2143
 
2053
2144
  const selectIndex$5 = async index => {
2054
- await invoke('EditorCompletion.selectIndex', index);
2145
+ await invoke$1('EditorCompletion.selectIndex', index);
2055
2146
  };
2056
2147
  const selectCurrentIndex$1 = async () => {
2057
- await invoke('EditorCompletion.selectCurrentIndex');
2148
+ await invoke$1('EditorCompletion.selectCurrentIndex');
2058
2149
  };
2059
2150
 
2060
2151
  const TestFrameWorkComponentEditorCompletion = {
@@ -2066,117 +2157,117 @@ const TestFrameWorkComponentEditorCompletion = {
2066
2157
  /* eslint-disable @typescript-eslint/prefer-readonly-parameter-types */
2067
2158
  const openContextMenu = async index => {
2068
2159
  // @ts-ignore
2069
- await invoke('Explorer.handleContextMenuKeyboard', index);
2160
+ await invoke$1('Explorer.handleContextMenuKeyboard', index);
2070
2161
  };
2071
2162
  const handleDragLeave = async () => {
2072
- await invoke('Explorer.handleDragLeave');
2163
+ await invoke$1('Explorer.handleDragLeave');
2073
2164
  };
2074
2165
  const handleBlur = async () => {
2075
- await invoke('Explorer.handleBlur');
2166
+ await invoke$1('Explorer.handleBlur');
2076
2167
  };
2077
2168
  const handleInputBlur = async () => {
2078
- await invoke('Explorer.handleInputBlur');
2169
+ await invoke$1('Explorer.handleInputBlur');
2079
2170
  };
2080
2171
  const focus$1 = async () => {
2081
- await invoke('Explorer.focusIndex', -1);
2172
+ await invoke$1('Explorer.focusIndex', -1);
2082
2173
  };
2083
2174
  const focusNext$7 = async () => {
2084
2175
  // @ts-ignore
2085
- await invoke('Explorer.focusNext');
2176
+ await invoke$1('Explorer.focusNext');
2086
2177
  };
2087
2178
  const selectUp = async () => {
2088
- await invoke('Explorer.selectUp');
2179
+ await invoke$1('Explorer.selectUp');
2089
2180
  };
2090
2181
  const handleDragOverIndex = async index => {
2091
2182
  // @ts-ignore
2092
- await invoke('Explorer.handleDragOverIndex', index);
2183
+ await invoke$1('Explorer.handleDragOverIndex', index);
2093
2184
  };
2094
2185
  const selectDown = async () => {
2095
- await invoke('Explorer.selectDown');
2186
+ await invoke$1('Explorer.selectDown');
2096
2187
  };
2097
2188
  const refresh = async () => {
2098
- await invoke('Explorer.refresh');
2189
+ await invoke$1('Explorer.refresh');
2099
2190
  };
2100
2191
  const focusIndex$4 = async index => {
2101
- await invoke('Explorer.focusIndex', index);
2192
+ await invoke$1('Explorer.focusIndex', index);
2102
2193
  };
2103
2194
  const clickCurrent = async () => {
2104
- await invoke('Explorer.handleClickCurrent');
2195
+ await invoke$1('Explorer.handleClickCurrent');
2105
2196
  };
2106
2197
  const handleArrowLeft$1 = async () => {
2107
- await invoke('Explorer.handleArrowLeft');
2198
+ await invoke$1('Explorer.handleArrowLeft');
2108
2199
  };
2109
2200
  const focusLast$5 = async () => {
2110
- await invoke('Explorer.focusLast');
2201
+ await invoke$1('Explorer.focusLast');
2111
2202
  };
2112
2203
  const focusFirst$6 = async () => {
2113
- await invoke('Explorer.focusFirst');
2204
+ await invoke$1('Explorer.focusFirst');
2114
2205
  };
2115
2206
  const removeDirent = async () => {
2116
- await invoke('Explorer.removeDirent');
2207
+ await invoke$1('Explorer.removeDirent');
2117
2208
  };
2118
2209
  const expandRecursively = async () => {
2119
- await invoke('Explorer.expandRecursively');
2210
+ await invoke$1('Explorer.expandRecursively');
2120
2211
  };
2121
2212
  const newFile = async () => {
2122
- await invoke('Explorer.newFile');
2213
+ await invoke$1('Explorer.newFile');
2123
2214
  };
2124
2215
  const newFolder = async () => {
2125
- await invoke('Explorer.newFolder');
2216
+ await invoke$1('Explorer.newFolder');
2126
2217
  };
2127
2218
  const handleClick$1 = async index => {
2128
- await invoke('Explorer.handleClick', index);
2219
+ await invoke$1('Explorer.handleClick', index);
2129
2220
  };
2130
2221
  const handleClickAt$2 = async (preventDefault, button, ctrlKey, shiftKey, x, y) => {
2131
2222
  // @ts-ignore
2132
- await invoke('Explorer.handleClickAt', preventDefault, button, ctrlKey, shiftKey, x, y);
2223
+ await invoke$1('Explorer.handleClickAt', preventDefault, button, ctrlKey, shiftKey, x, y);
2133
2224
  };
2134
2225
  const handleDrop = async (x, y, fileIds, fileList) => {
2135
2226
  // @ts-ignore
2136
- await invoke('Explorer.handleDrop', x, y, fileIds, fileIds);
2227
+ await invoke$1('Explorer.handleDrop', x, y, fileIds, fileIds);
2137
2228
  };
2138
2229
  const rename = async () => {
2139
- await invoke('Explorer.renameDirent');
2230
+ await invoke$1('Explorer.renameDirent');
2140
2231
  };
2141
2232
  const selectAll = async () => {
2142
- await invoke('Explorer.selectAll');
2233
+ await invoke$1('Explorer.selectAll');
2143
2234
  };
2144
2235
  const renameDirent = async () => {
2145
- await invoke('Explorer.renameDirent');
2236
+ await invoke$1('Explorer.renameDirent');
2146
2237
  };
2147
2238
  const cancelEdit = async () => {
2148
- await invoke('Explorer.cancelEdit');
2239
+ await invoke$1('Explorer.cancelEdit');
2149
2240
  };
2150
2241
  const acceptEdit = async () => {
2151
- await invoke('Explorer.acceptEdit');
2242
+ await invoke$1('Explorer.acceptEdit');
2152
2243
  };
2153
2244
  const updateEditingValue = async value => {
2154
- await invoke('Explorer.updateEditingValue', value);
2245
+ await invoke$1('Explorer.updateEditingValue', value);
2155
2246
  };
2156
2247
  const expandAll = async () => {
2157
- await invoke('Explorer.expandAll');
2248
+ await invoke$1('Explorer.expandAll');
2158
2249
  };
2159
2250
  const handleDragOver = async (x, y) => {
2160
- await invoke('Explorer.handleDragOver', x, y);
2251
+ await invoke$1('Explorer.handleDragOver', x, y);
2161
2252
  };
2162
2253
  const handleCut = async () => {
2163
2254
  // @ts-ignore
2164
- await invoke('Explorer.handleCut');
2255
+ await invoke$1('Explorer.handleCut');
2165
2256
  };
2166
2257
  const handleCopy = async () => {
2167
2258
  // @ts-ignore
2168
- await invoke('Explorer.handleCopy');
2259
+ await invoke$1('Explorer.handleCopy');
2169
2260
  };
2170
2261
  const handlePaste = async () => {
2171
2262
  // @ts-ignore
2172
- await invoke('Explorer.handlePaste');
2263
+ await invoke$1('Explorer.handlePaste');
2173
2264
  };
2174
2265
  const selectIndices = async indices => {
2175
- await invoke('Explorer.selectIndices', indices);
2266
+ await invoke$1('Explorer.selectIndices', indices);
2176
2267
  };
2177
2268
  const toggleIndividualSelection = async index => {
2178
2269
  // @ts-ignore
2179
- await invoke('Explorer.toggleIndividualSelection', index);
2270
+ await invoke$1('Explorer.toggleIndividualSelection', index);
2180
2271
  };
2181
2272
 
2182
2273
  const TestFrameWorkComponentExplorer = {
@@ -2221,12 +2312,12 @@ const TestFrameWorkComponentExplorer = {
2221
2312
  const addWebExtension = async relativePath => {
2222
2313
  // TODO compute absolutePath
2223
2314
  const absolutePath = relativePath;
2224
- await invoke('ExtensionMeta.addWebExtension', absolutePath);
2315
+ await invoke$1('ExtensionMeta.addWebExtension', absolutePath);
2225
2316
  };
2226
2317
  const addNodeExtension = async relativePath => {
2227
2318
  // TODO compute absolutePath
2228
2319
  const absolutePath = relativePath;
2229
- await invoke('ExtensionMeta.addNodeExtension', absolutePath);
2320
+ await invoke$1('ExtensionMeta.addNodeExtension', absolutePath);
2230
2321
  };
2231
2322
 
2232
2323
  const TestFrameWorkComponentExtension = {
@@ -2236,10 +2327,10 @@ const TestFrameWorkComponentExtension = {
2236
2327
  };
2237
2328
 
2238
2329
  const selectFeature = name => {
2239
- return invoke('ExtensionDetail.selectFeature', name);
2330
+ return invoke$1('ExtensionDetail.selectFeature', name);
2240
2331
  };
2241
2332
  const selectTab$1 = name => {
2242
- return invoke('ExtensionDetail.selectTab', name);
2333
+ return invoke$1('ExtensionDetail.selectTab', name);
2243
2334
  };
2244
2335
  const selectDetails = async () => {
2245
2336
  await selectTab$1('Details');
@@ -2252,11 +2343,11 @@ const selectChangelog = async () => {
2252
2343
  };
2253
2344
  const open$4 = extensionId => {
2254
2345
  const uri = `extension-detail://${extensionId}`;
2255
- return invoke('Main.openUri', uri);
2346
+ return invoke$1('Main.openUri', uri);
2256
2347
  };
2257
2348
  const openFeature = featureName => {
2258
2349
  // @ts-ignore
2259
- return invoke('ExtensionDetail.handleFeaturesClick', featureName);
2350
+ return invoke$1('ExtensionDetail.handleFeaturesClick', featureName);
2260
2351
  };
2261
2352
  const openThemes = async () => {
2262
2353
  await openFeature('Theme');
@@ -2278,7 +2369,7 @@ const openSettings = async () => {
2278
2369
  };
2279
2370
  const handleScroll$1 = async scrollTop => {
2280
2371
  // @ts-ignore
2281
- return invoke('ExtensionDetail.handleScroll', scrollTop);
2372
+ return invoke$1('ExtensionDetail.handleScroll', scrollTop);
2282
2373
  };
2283
2374
 
2284
2375
  const TestFrameWorkComponentExtensionDetail = {
@@ -2315,16 +2406,16 @@ const {
2315
2406
  } = Character;
2316
2407
 
2317
2408
  const writeFile = async (uri, content) => {
2318
- await invoke('FileSystem.writeFile', uri, content);
2409
+ await invoke$1('FileSystem.writeFile', uri, content);
2319
2410
  };
2320
2411
  const readFile = async uri => {
2321
- return invoke('FileSystem.readFile', uri);
2412
+ return invoke$1('FileSystem.readFile', uri);
2322
2413
  };
2323
2414
  const mkdir = async uri => {
2324
- await invoke('FileSystem.mkdir', uri);
2415
+ await invoke$1('FileSystem.mkdir', uri);
2325
2416
  };
2326
2417
  const remove = async uri => {
2327
- await invoke('FileSystem.remove', uri);
2418
+ await invoke$1('FileSystem.remove', uri);
2328
2419
  };
2329
2420
  const getTmpDir = async ({
2330
2421
  scheme = Memfs
@@ -2334,19 +2425,19 @@ const getTmpDir = async ({
2334
2425
  return 'memfs:///workspace';
2335
2426
  default:
2336
2427
  // @ts-ignore
2337
- return invoke('PlatformPaths.getTmpDir');
2428
+ return invoke$1('PlatformPaths.getTmpDir');
2338
2429
  }
2339
2430
  };
2340
2431
  const chmod = async (uri, permissions) => {
2341
2432
  // @ts-ignore
2342
- await invoke('FileSystem.chmod', uri, permissions);
2433
+ await invoke$1('FileSystem.chmod', uri, permissions);
2343
2434
  };
2344
2435
  const createExecutable = async content => {
2345
2436
  const tmpDir = await getTmpDir({
2346
2437
  scheme: 'file'
2347
2438
  });
2348
2439
  // @ts-ignore
2349
- const nodePath = await invoke('PlatformPaths.getNodePath');
2440
+ const nodePath = await invoke$1('PlatformPaths.getNodePath');
2350
2441
  const gitPath = `${tmpDir}/git`;
2351
2442
  await writeFile(gitPath, `#!${nodePath}
2352
2443
  ${content}`);
@@ -2355,10 +2446,10 @@ const createExecutable = async content => {
2355
2446
  };
2356
2447
  const createExecutableFrom = async uri => {
2357
2448
  // @ts-ignore
2358
- const testPath = await invoke('PlatformPaths.getTestPath');
2449
+ const testPath = await invoke$1('PlatformPaths.getTestPath');
2359
2450
  const absolutePath = testPath + Slash + uri;
2360
2451
  // @ts-ignore
2361
- const content = await invoke('Ajax.getText', absolutePath);
2452
+ const content = await invoke$1('Ajax.getText', absolutePath);
2362
2453
  return createExecutable(content);
2363
2454
  };
2364
2455
 
@@ -2375,10 +2466,10 @@ const TestFrameWorkComponentFileSystem = {
2375
2466
  };
2376
2467
 
2377
2468
  const focusNext$6 = async () => {
2378
- await invoke('FindWidget.focusNext');
2469
+ await invoke$1('FindWidget.focusNext');
2379
2470
  };
2380
2471
  const setValue$2 = async value => {
2381
- await invoke('FindWidget.handleInput', value);
2472
+ await invoke$1('FindWidget.handleInput', value);
2382
2473
  };
2383
2474
 
2384
2475
  const TestFrameWorkComponentFindWidget = {
@@ -2388,7 +2479,7 @@ const TestFrameWorkComponentFindWidget = {
2388
2479
  };
2389
2480
 
2390
2481
  const setIconTheme = async id => {
2391
- await invoke('IconTheme.setIconTheme', id);
2482
+ await invoke$1('IconTheme.setIconTheme', id);
2392
2483
  };
2393
2484
 
2394
2485
  const TestFrameWorkComponentIconTheme = {
@@ -2397,19 +2488,19 @@ const TestFrameWorkComponentIconTheme = {
2397
2488
  };
2398
2489
 
2399
2490
  const selectIndex$4 = async index => {
2400
- return invoke('IframeInspector.selectIndex', index);
2491
+ return invoke$1('IframeInspector.selectIndex', index);
2401
2492
  };
2402
2493
  const focusNext$5 = async () => {
2403
- return invoke('IframeInspector.focusNext');
2494
+ return invoke$1('IframeInspector.focusNext');
2404
2495
  };
2405
2496
  const focusPrevious$5 = async () => {
2406
- return invoke('IframeInspector.focusPrevious');
2497
+ return invoke$1('IframeInspector.focusPrevious');
2407
2498
  };
2408
2499
  const focusFirst$5 = async () => {
2409
- return invoke('IframeInspector.focusFirst');
2500
+ return invoke$1('IframeInspector.focusFirst');
2410
2501
  };
2411
2502
  const focusLast$4 = async () => {
2412
- return invoke('IframeInspector.focusLast');
2503
+ return invoke$1('IframeInspector.focusLast');
2413
2504
  };
2414
2505
 
2415
2506
  const TestFrameWorkComponentIframeInspector = {
@@ -2422,70 +2513,70 @@ const TestFrameWorkComponentIframeInspector = {
2422
2513
  };
2423
2514
 
2424
2515
  const open$3 = async () => {
2425
- await invoke('Main.openUri', 'app://keybindings');
2516
+ await invoke$1('Main.openUri', 'app://keybindings');
2426
2517
  };
2427
2518
  const handleInput$3 = value => {
2428
- return invoke('KeyBindings.handleInput', value);
2519
+ return invoke$1('KeyBindings.handleInput', value);
2429
2520
  };
2430
2521
  const handleClick = (x, y) => {
2431
- return invoke('KeyBindings.handleClick', x, y);
2522
+ return invoke$1('KeyBindings.handleClick', x, y);
2432
2523
  };
2433
2524
  const handleWheel$1 = (deltaMode, deltaY) => {
2434
- return invoke('KeyBindings.handleWheel', deltaMode, deltaY);
2525
+ return invoke$1('KeyBindings.handleWheel', deltaMode, deltaY);
2435
2526
  };
2436
2527
  const handleDoubleClick = (x, y) => {
2437
- return invoke('KeyBindings.handleDoubleClick', x, y);
2528
+ return invoke$1('KeyBindings.handleDoubleClick', x, y);
2438
2529
  };
2439
2530
  const focusNext$4 = () => {
2440
- return invoke('KeyBindings.focusNext');
2531
+ return invoke$1('KeyBindings.focusNext');
2441
2532
  };
2442
2533
  const focusPrevious$4 = () => {
2443
- return invoke('KeyBindings.focusPrevious');
2534
+ return invoke$1('KeyBindings.focusPrevious');
2444
2535
  };
2445
2536
  const focusFirst$4 = () => {
2446
- return invoke('KeyBindings.focusFirst');
2537
+ return invoke$1('KeyBindings.focusFirst');
2447
2538
  };
2448
2539
  const focusLast$3 = () => {
2449
- return invoke('KeyBindings.focusLast');
2540
+ return invoke$1('KeyBindings.focusLast');
2450
2541
  };
2451
2542
  const toggleRecordingKeys = () => {
2452
- return invoke('KeyBindings.toggleRecordingKeys');
2543
+ return invoke$1('KeyBindings.toggleRecordingKeys');
2453
2544
  };
2454
2545
  const startRecordingKeys = () => {
2455
- return invoke('KeyBindings.startRecordingKeys');
2546
+ return invoke$1('KeyBindings.startRecordingKeys');
2456
2547
  };
2457
2548
  const clearInput = () => {
2458
- return invoke('KeyBindings.clearInput');
2549
+ return invoke$1('KeyBindings.clearInput');
2459
2550
  };
2460
2551
  const sortByPrecedence = () => {
2461
- return invoke('KeyBindings.sortByPrecedence');
2552
+ return invoke$1('KeyBindings.sortByPrecedence');
2462
2553
  };
2463
2554
  const stopRecordingKeys = () => {
2464
- return invoke('KeyBindings.stopRecordingKeys');
2555
+ return invoke$1('KeyBindings.stopRecordingKeys');
2465
2556
  };
2466
2557
  const handleContextMenu = (button, x, y) => {
2467
- return invoke('KeyBindings.handleContextMenu', button, x, y);
2558
+ return invoke$1('KeyBindings.handleContextMenu', button, x, y);
2468
2559
  };
2469
2560
  const copyCommandId = () => {
2470
- return invoke('KeyBindings.copyCommandId');
2561
+ return invoke$1('KeyBindings.copyCommandId');
2471
2562
  };
2472
2563
  const copyCommandTitle = () => {
2473
- return invoke('KeyBindings.copyCommandTitle');
2564
+ return invoke$1('KeyBindings.copyCommandTitle');
2474
2565
  };
2475
2566
  const addKeyBinding = () => {
2476
- return invoke('KeyBindings.addKeyBinding');
2567
+ return invoke$1('KeyBindings.addKeyBinding');
2477
2568
  };
2478
2569
  const removeKeyBinding = () => {
2479
- return invoke('KeyBindings.removeKeyBinding');
2570
+ return invoke$1('KeyBindings.removeKeyBinding');
2480
2571
  };
2481
2572
  const changeWhenExpression = () => {
2482
- return invoke('KeyBindings.changeWhenExpression');
2573
+ return invoke$1('KeyBindings.changeWhenExpression');
2483
2574
  };
2484
2575
  const showSameKeyBindings = () => {
2485
- return invoke('KeyBindings.showSameKeyBindings');
2576
+ return invoke$1('KeyBindings.showSameKeyBindings');
2486
2577
  };
2487
2578
  const resetKeyBinding = () => {
2488
- return invoke('KeyBindings.resetKeyBinding');
2579
+ return invoke$1('KeyBindings.resetKeyBinding');
2489
2580
  };
2490
2581
 
2491
2582
  const TestFrameWorkComponentKeyBindingsEditor = {
@@ -2561,7 +2652,7 @@ const press = async key => {
2561
2652
  ...keyOptions
2562
2653
  };
2563
2654
  // @ts-ignore
2564
- await invoke('TestFrameWork.performKeyBoardAction', 'press', options);
2655
+ await invoke$1('TestFrameWork.performKeyBoardAction', 'press', options);
2565
2656
  };
2566
2657
 
2567
2658
  const TestFrameWorkComponentKeyBoard = {
@@ -2570,40 +2661,40 @@ const TestFrameWorkComponentKeyBoard = {
2570
2661
  };
2571
2662
 
2572
2663
  const openUri = async uri => {
2573
- await invoke('Main.openUri', uri);
2664
+ await invoke$1('Main.openUri', uri);
2574
2665
  };
2575
2666
  const splitRight = async () => {
2576
- await invoke('Main.splitRight');
2667
+ await invoke$1('Main.splitRight');
2577
2668
  };
2578
2669
  const openKeyBindings = async () => {
2579
- await invoke('Main.openKeyBindings');
2670
+ await invoke$1('Main.openKeyBindings');
2580
2671
  };
2581
2672
  const closeAllEditors = async () => {
2582
- await invoke('Main.closeAllEditors');
2673
+ await invoke$1('Main.closeAllEditors');
2583
2674
  };
2584
2675
  const closeTabsLeft = async () => {
2585
- await invoke('Main.closeTabsLeft');
2676
+ await invoke$1('Main.closeTabsLeft');
2586
2677
  };
2587
2678
  const closeTabsRight = async () => {
2588
- await invoke('Main.closeTabsRight');
2679
+ await invoke$1('Main.closeTabsRight');
2589
2680
  };
2590
2681
  const closeOthers = async () => {
2591
- await invoke('Main.closeOthers');
2682
+ await invoke$1('Main.closeOthers');
2592
2683
  };
2593
2684
  const closeActiveEditor = async () => {
2594
- await invoke('Main.closeActiveEditor');
2685
+ await invoke$1('Main.closeActiveEditor');
2595
2686
  };
2596
2687
  const focusFirst$3 = async () => {
2597
- await invoke('Main.focusFirst');
2688
+ await invoke$1('Main.focusFirst');
2598
2689
  };
2599
2690
  const focusNext$3 = async () => {
2600
- await invoke('Main.focusNext');
2691
+ await invoke$1('Main.focusNext');
2601
2692
  };
2602
2693
  const focusPrevious$3 = async () => {
2603
- await invoke('Main.focusPrevious');
2694
+ await invoke$1('Main.focusPrevious');
2604
2695
  };
2605
2696
  const focusLast$2 = async () => {
2606
- await invoke('Main.focusLast');
2697
+ await invoke$1('Main.focusLast');
2607
2698
  };
2608
2699
 
2609
2700
  const TestFrameWorkComponentMain = {
@@ -2626,19 +2717,19 @@ const Script = 2;
2626
2717
 
2627
2718
  const show$2 = async () => {
2628
2719
  // @ts-ignore
2629
- await invoke('Panel.selectIndex', 1);
2720
+ await invoke$1('Panel.selectIndex', 1);
2630
2721
  };
2631
2722
  const handleFilterInput$1 = async text => {
2632
2723
  // @ts-ignore
2633
- await invoke('Output.handleFilterInput', text, Script);
2724
+ await invoke$1('Output.handleFilterInput', text, Script);
2634
2725
  };
2635
2726
  const selectChannel = async channelId => {
2636
2727
  // @ts-ignore
2637
- await invoke('Output.selectChannel', channelId);
2728
+ await invoke$1('Output.selectChannel', channelId);
2638
2729
  };
2639
2730
  const clear$1 = async () => {
2640
2731
  // @ts-ignore
2641
- await invoke('Output.clear');
2732
+ await invoke$1('Output.clear');
2642
2733
  };
2643
2734
 
2644
2735
  const TestFrameWorkComponentOutput = {
@@ -2650,7 +2741,7 @@ const TestFrameWorkComponentOutput = {
2650
2741
  };
2651
2742
 
2652
2743
  const open$2 = async id => {
2653
- await invoke('Layout.showPanel', id);
2744
+ await invoke$1('Layout.showPanel', id);
2654
2745
  };
2655
2746
 
2656
2747
  const TestFrameWorkComponentPanel = {
@@ -2678,7 +2769,7 @@ const isFirefox$1 = getIsFirefox();
2678
2769
 
2679
2770
  const getNodePath$1 = () => {
2680
2771
  // @ts-ignore
2681
- return invoke(/* Platform.getNodePath */'Platform.getNodePath');
2772
+ return invoke$1(/* Platform.getNodePath */'Platform.getNodePath');
2682
2773
  };
2683
2774
 
2684
2775
  const getNodePath = () => {
@@ -2696,43 +2787,43 @@ const TestFrameWorkComponentPlatform = {
2696
2787
 
2697
2788
  const show$1 = async () => {
2698
2789
  // @ts-ignore
2699
- await invoke('Panel.selectIndex', 0);
2790
+ await invoke$1('Panel.selectIndex', 0);
2700
2791
  };
2701
2792
  const handleFilterInput = async text => {
2702
2793
  // @ts-ignore
2703
- await invoke('Problems.handleFilterInput', text);
2794
+ await invoke$1('Problems.handleFilterInput', text);
2704
2795
  };
2705
2796
  const copyMessage = async () => {
2706
2797
  // @ts-ignore
2707
- await invoke('Problems.copyMessage');
2798
+ await invoke$1('Problems.copyMessage');
2708
2799
  };
2709
2800
  const focusIndex$3 = async index => {
2710
2801
  // @ts-ignore
2711
- await invoke('Problems.focusIndex', index);
2802
+ await invoke$1('Problems.focusIndex', index);
2712
2803
  };
2713
2804
  const handleArrowLeft = async () => {
2714
2805
  // @ts-ignore
2715
- await invoke('Problems.handleArrowLeft');
2806
+ await invoke$1('Problems.handleArrowLeft');
2716
2807
  };
2717
2808
  const handleArrowRight = async () => {
2718
2809
  // @ts-ignore
2719
- await invoke('Problems.handleArrowRight');
2810
+ await invoke$1('Problems.handleArrowRight');
2720
2811
  };
2721
2812
  const handleClickAt$1 = async (x, y) => {
2722
2813
  // @ts-ignore
2723
- await invoke('Problems.handleClickAt', x, y);
2814
+ await invoke$1('Problems.handleClickAt', x, y);
2724
2815
  };
2725
2816
  const handleIconThemeChange = async () => {
2726
2817
  // @ts-ignore
2727
- await invoke('Problems.handleIconThemeChange');
2818
+ await invoke$1('Problems.handleIconThemeChange');
2728
2819
  };
2729
2820
  const viewAsList = async () => {
2730
2821
  // @ts-ignore
2731
- await invoke('Problems.viewAsList');
2822
+ await invoke$1('Problems.viewAsList');
2732
2823
  };
2733
2824
  const viewAsTable = async () => {
2734
2825
  // @ts-ignore
2735
- await invoke('Problems.viewAsTable');
2826
+ await invoke$1('Problems.viewAsTable');
2736
2827
  };
2737
2828
 
2738
2829
  const TestFrameWorkComponentProblems = {
@@ -2753,59 +2844,59 @@ const QuickPick = 'QuickPick';
2753
2844
 
2754
2845
  const open$1 = async () => {
2755
2846
  // @ts-ignore
2756
- await invoke('Viewlet.openWidget', QuickPick, 'everything');
2847
+ await invoke$1('Viewlet.openWidget', QuickPick, 'everything');
2757
2848
  };
2758
2849
  const handleInput$2 = async value => {
2759
2850
  // @ts-ignore
2760
- await invoke('QuickPick.handleInput', value, 0);
2851
+ await invoke$1('QuickPick.handleInput', value, 0);
2761
2852
  };
2762
2853
  const handleClickAt = async (x, y) => {
2763
2854
  // @ts-ignore
2764
- await invoke('QuickPick.handleClickAt', x, y);
2855
+ await invoke$1('QuickPick.handleClickAt', x, y);
2765
2856
  };
2766
2857
  const setValue$1 = async value => {
2767
2858
  // @ts-ignore
2768
- await invoke('QuickPick.setValue', value);
2859
+ await invoke$1('QuickPick.setValue', value);
2769
2860
  };
2770
2861
  const focusNext$2 = async () => {
2771
2862
  // @ts-ignore
2772
- await invoke('QuickPick.focusNext');
2863
+ await invoke$1('QuickPick.focusNext');
2773
2864
  };
2774
2865
  const focusFirst$2 = async () => {
2775
2866
  // @ts-ignore
2776
- await invoke('QuickPick.focusFirst');
2867
+ await invoke$1('QuickPick.focusFirst');
2777
2868
  };
2778
2869
  const focusLast$1 = async () => {
2779
2870
  // @ts-ignore
2780
- await invoke('QuickPick.focusLast');
2871
+ await invoke$1('QuickPick.focusLast');
2781
2872
  };
2782
2873
  const focusIndex$2 = async index => {
2783
2874
  // @ts-ignore
2784
- await invoke('QuickPick.focusIndex', index);
2875
+ await invoke$1('QuickPick.focusIndex', index);
2785
2876
  };
2786
2877
  const focusPrevious$2 = async () => {
2787
2878
  // @ts-ignore
2788
- await invoke('QuickPick.focusPrevious');
2879
+ await invoke$1('QuickPick.focusPrevious');
2789
2880
  };
2790
2881
  const selectItem = async label => {
2791
2882
  // @ts-ignore
2792
- await invoke('QuickPick.selectItem', label);
2883
+ await invoke$1('QuickPick.selectItem', label);
2793
2884
  };
2794
2885
  const selectIndex$3 = async index => {
2795
2886
  // @ts-ignore
2796
- await invoke('QuickPick.selectIndex', index);
2887
+ await invoke$1('QuickPick.selectIndex', index);
2797
2888
  };
2798
2889
  const selectCurrentIndex = async () => {
2799
2890
  // @ts-ignore
2800
- await invoke('QuickPick.selectCurrentIndex');
2891
+ await invoke$1('QuickPick.selectCurrentIndex');
2801
2892
  };
2802
2893
  const executeCommand = async label => {
2803
2894
  // @ts-ignore
2804
- await invoke('QuickPick.showCommands');
2895
+ await invoke$1('QuickPick.showCommands');
2805
2896
  // @ts-ignore
2806
- await invoke('QuickPick.handleInput', label, 0);
2897
+ await invoke$1('QuickPick.handleInput', label, 0);
2807
2898
  // @ts-ignore
2808
- await invoke('QuickPick.selectItem', label);
2899
+ await invoke$1('QuickPick.selectItem', label);
2809
2900
  };
2810
2901
 
2811
2902
  const TestFrameWorkComponentQuickPick = {
@@ -2827,35 +2918,35 @@ const TestFrameWorkComponentQuickPick = {
2827
2918
 
2828
2919
  const handleClickSectionWatch = async () => {
2829
2920
  // @ts-ignore
2830
- await invoke('Run And Debug.handleClickSectionWatch');
2921
+ await invoke$1('Run And Debug.handleClickSectionWatch');
2831
2922
  };
2832
2923
  const addWatchExpression = async expression => {
2833
2924
  // @ts-ignore
2834
- await invoke('Run And Debug.addWatchExpression', expression);
2925
+ await invoke$1('Run And Debug.addWatchExpression', expression);
2835
2926
  };
2836
2927
  const handleWatchValueChange = async () => {
2837
2928
  // @ts-ignore
2838
- await invoke('Run And Debug.handleWatchValueChange');
2929
+ await invoke$1('Run And Debug.handleWatchValueChange');
2839
2930
  };
2840
2931
  const acceptWatchExpressionEdit = async () => {
2841
2932
  // @ts-ignore
2842
- await invoke('Run And Debug.acceptWatchExpressionEdit');
2933
+ await invoke$1('Run And Debug.acceptWatchExpressionEdit');
2843
2934
  };
2844
2935
  const selectIndex$2 = async index => {
2845
2936
  // @ts-ignore
2846
- await invoke('Run And Debug.selectIndex', index);
2937
+ await invoke$1('Run And Debug.selectIndex', index);
2847
2938
  };
2848
2939
  const setPauseOnExceptions = async value => {
2849
2940
  // @ts-ignore
2850
- await invoke('Run And Debug.setPauseOnExceptions', value);
2941
+ await invoke$1('Run And Debug.setPauseOnExceptions', value);
2851
2942
  };
2852
2943
  const handleRename = async () => {
2853
2944
  // @ts-ignore
2854
- await invoke('Run And Debug.handleRename');
2945
+ await invoke$1('Run And Debug.handleRename');
2855
2946
  };
2856
2947
  const handleSpace = async () => {
2857
2948
  // @ts-ignore
2858
- await invoke('Run And Debug.handleSpace');
2949
+ await invoke$1('Run And Debug.handleSpace');
2859
2950
  };
2860
2951
 
2861
2952
  const TestFrameWorkComponentRunAndDebug = {
@@ -2872,77 +2963,77 @@ const TestFrameWorkComponentRunAndDebug = {
2872
2963
 
2873
2964
  const setValue = async value => {
2874
2965
  // @ts-ignore
2875
- await invoke('Search.handleInput', value, Script);
2966
+ await invoke$1('Search.handleInput', value, Script);
2876
2967
  };
2877
2968
  const setReplaceValue = async value => {
2878
2969
  // @ts-ignore
2879
- await invoke('Search.handleReplaceInput', value, Script);
2970
+ await invoke$1('Search.handleReplaceInput', value, Script);
2880
2971
  };
2881
2972
  const setExcludeValue = async value => {
2882
2973
  // @ts-ignore
2883
- await invoke('Search.handleExcludeInput', value, Script);
2974
+ await invoke$1('Search.handleExcludeInput', value, Script);
2884
2975
  };
2885
2976
  const replaceAll = async () => {
2886
- await invoke('Search.replaceAll');
2977
+ await invoke$1('Search.replaceAll');
2887
2978
  };
2888
2979
  const setIncludeValue = async value => {
2889
2980
  // @ts-ignore
2890
- await invoke('Search.handleIncludeInput', value, Script);
2981
+ await invoke$1('Search.handleIncludeInput', value, Script);
2891
2982
  };
2892
2983
  const clearSearchResults = async () => {
2893
- await invoke('Search.clearSearchResults');
2984
+ await invoke$1('Search.clearSearchResults');
2894
2985
  };
2895
2986
  const openDetails = async () => {
2896
- await invoke('Search.openDetails');
2987
+ await invoke$1('Search.openDetails');
2897
2988
  };
2898
2989
  const collapseDetails = async () => {
2899
- await invoke('Search.collapseDetails');
2990
+ await invoke$1('Search.collapseDetails');
2900
2991
  };
2901
2992
  const dismissItem = async () => {
2902
- await invoke('Search.dismissItem');
2993
+ await invoke$1('Search.dismissItem');
2903
2994
  };
2904
2995
  const focusFirst$1 = async () => {
2905
- await invoke('Search.focusFirst');
2996
+ await invoke$1('Search.focusFirst');
2906
2997
  };
2907
2998
  const focusIndex$1 = async index => {
2908
- await invoke('Search.focusIndex', index);
2999
+ await invoke$1('Search.focusIndex', index);
2909
3000
  };
2910
3001
  const selectIndex$1 = async index => {
2911
- await invoke('Search.selectIndex', index);
3002
+ await invoke$1('Search.selectIndex', index);
2912
3003
  };
2913
3004
  const focusNext$1 = async () => {
2914
- await invoke('Search.focusNext');
3005
+ await invoke$1('Search.focusNext');
2915
3006
  };
2916
3007
  const handleWheel = async (deltaMode, deltaY) => {
2917
- await invoke('Search.handleWheel', deltaMode, deltaY);
3008
+ await invoke$1('Search.handleWheel', deltaMode, deltaY);
2918
3009
  };
2919
3010
  const focusNextPage = async () => {
2920
3011
  // @ts-ignore
2921
- await invoke('Search.focusPage');
3012
+ await invoke$1('Search.focusPage');
2922
3013
  };
2923
3014
  const focusPreviousPage = async () => {
2924
- await invoke('Search.focusPreviousPage');
3015
+ await invoke$1('Search.focusPreviousPage');
2925
3016
  };
2926
3017
  const focusPrevious$1 = async () => {
2927
- await invoke('Search.focusPrevious');
3018
+ await invoke$1('Search.focusPrevious');
2928
3019
  };
2929
3020
  const toggleSearchDetails = async () => {
2930
- await invoke('Search.toggleSearchDetails');
3021
+ await invoke$1('Search.toggleSearchDetails');
2931
3022
  };
2932
3023
  const toggleMatchCase = async () => {
2933
- await invoke('Search.toggleMatchCase');
3024
+ await invoke$1('Search.toggleMatchCase');
2934
3025
  };
2935
3026
  const toggleMatchWholeWord = async () => {
2936
- await invoke('Search.toggleMatchWholeWord');
3027
+ await invoke$1('Search.toggleMatchWholeWord');
2937
3028
  };
2938
3029
  const togglePreserveCase = async () => {
2939
- await invoke('Search.togglePreserveCase');
3030
+ await invoke$1('Search.togglePreserveCase');
2940
3031
  };
2941
3032
  const toggleUseRegularExpression = async () => {
2942
- await invoke('Search.toggleUseRegularExpression');
3033
+ await invoke$1('Search.toggleUseRegularExpression');
2943
3034
  };
2944
3035
  const toggleReplace = async () => {
2945
- await invoke('Search.toggleReplace');
3036
+ await invoke$1('Search.toggleReplace');
2946
3037
  };
2947
3038
 
2948
3039
  const TestFrameWorkComponentSearch = {
@@ -2974,7 +3065,7 @@ const TestFrameWorkComponentSearch = {
2974
3065
 
2975
3066
  const update$1 = settings => {
2976
3067
  // @ts-ignore
2977
- return invoke('Preferences.update', settings);
3068
+ return invoke$1('Preferences.update', settings);
2978
3069
  };
2979
3070
 
2980
3071
  const TestFrameWorkComponentSettings = {
@@ -2983,27 +3074,27 @@ const TestFrameWorkComponentSettings = {
2983
3074
  };
2984
3075
 
2985
3076
  const show = async () => {
2986
- return invoke('Main.openUri', 'settings://');
3077
+ return invoke$1('Main.openUri', 'settings://');
2987
3078
  };
2988
3079
  const handleInput$1 = async searchValue => {
2989
3080
  // @ts-ignore
2990
- return invoke('Settings.handleInput', searchValue, Script);
3081
+ return invoke$1('Settings.handleInput', searchValue, Script);
2991
3082
  };
2992
3083
  const usePreviousSearchValue = async () => {
2993
3084
  // @ts-ignore
2994
- return invoke('Settings.usePreviousSearchValue');
3085
+ return invoke$1('Settings.usePreviousSearchValue');
2995
3086
  };
2996
3087
  const useNextSearchValue = async () => {
2997
3088
  // @ts-ignore
2998
- return invoke('Settings.useNextSearchValue');
3089
+ return invoke$1('Settings.useNextSearchValue');
2999
3090
  };
3000
3091
  const clear = async searchValue => {
3001
3092
  // @ts-ignore
3002
- return invoke('Settings.clear', searchValue, Script);
3093
+ return invoke$1('Settings.clear', searchValue, Script);
3003
3094
  };
3004
3095
  const selectTab = async tabId => {
3005
3096
  // @ts-ignore
3006
- return invoke('Settings.handleClickTab', tabId);
3097
+ return invoke$1('Settings.handleClickTab', tabId);
3007
3098
  };
3008
3099
  const selectWorkspace = async () => {
3009
3100
  await selectTab('workspace');
@@ -3016,7 +3107,7 @@ const selectExtensions = async () => {
3016
3107
  };
3017
3108
  const handleScroll = async scrollTop => {
3018
3109
  // @ts-ignore
3019
- await invoke('Settings.handleScroll', scrollTop, Script);
3110
+ await invoke$1('Settings.handleScroll', scrollTop, Script);
3020
3111
  };
3021
3112
 
3022
3113
  const TestFrameWorkComponentSettingsView = {
@@ -3034,10 +3125,10 @@ const TestFrameWorkComponentSettingsView = {
3034
3125
  };
3035
3126
 
3036
3127
  const open = async id => {
3037
- await invoke('SideBar.openViewlet', id);
3128
+ await invoke$1('SideBar.openViewlet', id);
3038
3129
  };
3039
3130
  const hide = async () => {
3040
- await invoke('Layout.hideSideBar');
3131
+ await invoke$1('Layout.hideSideBar');
3041
3132
  };
3042
3133
 
3043
3134
  const TestFrameWorkComponentSideBar = {
@@ -3048,16 +3139,16 @@ const TestFrameWorkComponentSideBar = {
3048
3139
 
3049
3140
  const selectIndex = async index => {
3050
3141
  // @ts-ignore
3051
- await invoke('Source Control.selectIndex');
3142
+ await invoke$1('Source Control.selectIndex');
3052
3143
  };
3053
3144
  const acceptInput = async () => {
3054
- await invoke('Source Control.acceptInput');
3145
+ await invoke$1('Source Control.acceptInput');
3055
3146
  };
3056
3147
  const handleInput = async text => {
3057
- await invoke('Source Control.handleInput', text);
3148
+ await invoke$1('Source Control.handleInput', text);
3058
3149
  };
3059
3150
  const handleClickSourceControlButtons = async (index, name) => {
3060
- await invoke('Source Control.handleClickSourceControlButtons', index, name);
3151
+ await invoke$1('Source Control.handleClickSourceControlButtons', index, name);
3061
3152
  };
3062
3153
 
3063
3154
  const TestFrameWorkComponentSourceControl = {
@@ -3069,7 +3160,7 @@ const TestFrameWorkComponentSourceControl = {
3069
3160
  };
3070
3161
 
3071
3162
  const update = async () => {
3072
- await invoke('StatusBar.updateStatusBarItems');
3163
+ await invoke$1('StatusBar.updateStatusBarItems');
3073
3164
  };
3074
3165
 
3075
3166
  const TestFrameWorkComponentStatusBar = {
@@ -3078,56 +3169,56 @@ const TestFrameWorkComponentStatusBar = {
3078
3169
  };
3079
3170
 
3080
3171
  const closeMenu = async () => {
3081
- await invoke('TitleBarMenuBar.closeMenu');
3172
+ await invoke$1('TitleBarMenuBar.closeMenu');
3082
3173
  };
3083
3174
  const focus = async () => {
3084
- await invoke('TitleBarMenuBar.focus');
3175
+ await invoke$1('TitleBarMenuBar.focus');
3085
3176
  };
3086
3177
  const focusFirst = async () => {
3087
- await invoke('TitleBarMenuBar.focusFirst');
3178
+ await invoke$1('TitleBarMenuBar.focusFirst');
3088
3179
  };
3089
3180
  const focusIndex = async index => {
3090
3181
  // @ts-ignore
3091
- await invoke('TitleBarMenuBar.focusIndex', index);
3182
+ await invoke$1('TitleBarMenuBar.focusIndex', index);
3092
3183
  };
3093
3184
  const focusLast = async () => {
3094
- await invoke('TitleBarMenuBar.focusLast');
3185
+ await invoke$1('TitleBarMenuBar.focusLast');
3095
3186
  };
3096
3187
  const focusNext = async () => {
3097
- await invoke('TitleBarMenuBar.focusNext');
3188
+ await invoke$1('TitleBarMenuBar.focusNext');
3098
3189
  };
3099
3190
  const focusPrevious = async () => {
3100
- await invoke('TitleBarMenuBar.focusPrevious');
3191
+ await invoke$1('TitleBarMenuBar.focusPrevious');
3101
3192
  };
3102
3193
  const handleKeyArrowDown = async () => {
3103
- await invoke('TitleBarMenuBar.handleKeyArrowDown');
3194
+ await invoke$1('TitleBarMenuBar.handleKeyArrowDown');
3104
3195
  };
3105
3196
  const handleKeyArrowLeft = async () => {
3106
- await invoke('TitleBarMenuBar.handleKeyArrowLeft');
3197
+ await invoke$1('TitleBarMenuBar.handleKeyArrowLeft');
3107
3198
  };
3108
3199
  const handleKeyArrowRight = async () => {
3109
- await invoke('TitleBarMenuBar.handleKeyArrowRight');
3200
+ await invoke$1('TitleBarMenuBar.handleKeyArrowRight');
3110
3201
  };
3111
3202
  const handleKeyArrowUp = async () => {
3112
- await invoke('TitleBarMenuBar.handleKeyArrowUp');
3203
+ await invoke$1('TitleBarMenuBar.handleKeyArrowUp');
3113
3204
  };
3114
3205
  const handleKeyEnd = async () => {
3115
- await invoke('TitleBarMenuBar.handleKeyEnd');
3206
+ await invoke$1('TitleBarMenuBar.handleKeyEnd');
3116
3207
  };
3117
3208
  const handleKeyHome = async () => {
3118
- await invoke('TitleBarMenuBar.handleKeyHome');
3209
+ await invoke$1('TitleBarMenuBar.handleKeyHome');
3119
3210
  };
3120
3211
  const handleKeySpace = async () => {
3121
- await invoke('TitleBarMenuBar.handleKeySpace');
3212
+ await invoke$1('TitleBarMenuBar.handleKeySpace');
3122
3213
  };
3123
3214
  const handleKeyEscape = async () => {
3124
- await invoke('TitleBarMenuBar.handleKeyEscape');
3215
+ await invoke$1('TitleBarMenuBar.handleKeyEscape');
3125
3216
  };
3126
3217
  const toggleIndex = async index => {
3127
- await invoke('TitleBarMenuBar.toggleIndex', index);
3218
+ await invoke$1('TitleBarMenuBar.toggleIndex', index);
3128
3219
  };
3129
3220
  const toggleMenu = async () => {
3130
- await invoke('TitleBarMenuBar.toggleMenu');
3221
+ await invoke$1('TitleBarMenuBar.toggleMenu');
3131
3222
  };
3132
3223
 
3133
3224
  const TestFrameWorkComponentTitleBarMenuBar = {
@@ -3177,7 +3268,7 @@ const getPortTuple = () => {
3177
3268
  };
3178
3269
 
3179
3270
  const getWebViewInfo = async webViewId => {
3180
- const info = await invoke('WebView.getWebViewInfo2', webViewId);
3271
+ const info = await invoke$1('WebView.getWebViewInfo2', webViewId);
3181
3272
  return info;
3182
3273
  };
3183
3274
 
@@ -3237,7 +3328,7 @@ const TestFrameWorkComponentWebView = {
3237
3328
  };
3238
3329
 
3239
3330
  const setPath = async path => {
3240
- await invoke('Workspace.setPath', path);
3331
+ await invoke$1('Workspace.setPath', path);
3241
3332
  };
3242
3333
  const openTmpDir = async () => {
3243
3334
  const tmpDir = await getTmpDir();