@lvce-editor/test-worker 13.11.0 → 13.13.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.
@@ -1100,11 +1100,12 @@ const Web = 1;
1100
1100
  const Remote = 3;
1101
1101
 
1102
1102
  const EditorWorker = 99;
1103
+ const OpenerWorker = 4561;
1103
1104
  const RendererWorker = 1;
1104
1105
  const TestWorker = 9001;
1105
1106
 
1106
1107
  const rpcs = Object.create(null);
1107
- const set$3 = (id, rpc) => {
1108
+ const set$4 = (id, rpc) => {
1108
1109
  rpcs[id] = rpc;
1109
1110
  };
1110
1111
  const get$1 = id => {
@@ -1137,7 +1138,7 @@ const create = rpcId => {
1137
1138
  const mockRpc = createMockRpc({
1138
1139
  commandMap
1139
1140
  });
1140
- set$3(rpcId, mockRpc);
1141
+ set$4(rpcId, mockRpc);
1141
1142
  // @ts-ignore
1142
1143
  mockRpc[Symbol.dispose] = () => {
1143
1144
  remove$1(rpcId);
@@ -1146,41 +1147,61 @@ const create = rpcId => {
1146
1147
  return mockRpc;
1147
1148
  },
1148
1149
  set(rpc) {
1149
- set$3(rpcId, rpc);
1150
+ set$4(rpcId, rpc);
1150
1151
  }
1151
1152
  };
1152
1153
  };
1153
1154
 
1154
1155
  const {
1155
- invoke: invoke$1,
1156
- set: set$2
1156
+ invoke: invoke$2,
1157
+ set: set$3
1157
1158
  } = create(EditorWorker);
1158
1159
 
1159
1160
  const {
1160
- invoke,
1161
+ invoke: invoke$1,
1161
1162
  invokeAndTransfer,
1162
- set: set$1
1163
+ set: set$2
1163
1164
  } = create(RendererWorker);
1164
1165
  const sendMessagePortToEditorWorker = async (port, rpcId) => {
1165
1166
  const command = 'HandleMessagePort.handleMessagePort';
1166
1167
  await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToEditorWorker', port, command, rpcId);
1167
1168
  };
1169
+ const sendMessagePortToOpenerWorker = async (port, rpcId) => {
1170
+ const command = 'HandleMessagePort.handleMessagePort';
1171
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToOpenerWorker', port, command, rpcId);
1172
+ };
1168
1173
  const readFile$1 = async uri => {
1169
- return invoke('FileSystem.readFile', uri);
1174
+ return invoke$1('FileSystem.readFile', uri);
1170
1175
  };
1171
1176
  const getPreference = async key => {
1172
- return await invoke('Preferences.get', key);
1177
+ return await invoke$1('Preferences.get', key);
1173
1178
  };
1174
1179
 
1175
- const send = async port => {
1180
+ const {
1181
+ invoke,
1182
+ set: set$1
1183
+ } = create(OpenerWorker);
1184
+
1185
+ const send$1 = async port => {
1176
1186
  await sendMessagePortToEditorWorker(port, TestWorker);
1177
1187
  };
1178
1188
  const initializeEditorWorker = async () => {
1189
+ const rpc = await LazyTransferMessagePortRpcParent.create({
1190
+ commandMap: {},
1191
+ send: send$1
1192
+ });
1193
+ set$3(rpc);
1194
+ };
1195
+
1196
+ const send = async port => {
1197
+ await sendMessagePortToOpenerWorker(port, TestWorker);
1198
+ };
1199
+ const initializeOpenerWorker = async () => {
1179
1200
  const rpc = await LazyTransferMessagePortRpcParent.create({
1180
1201
  commandMap: {},
1181
1202
  send
1182
1203
  });
1183
- set$2(rpc);
1204
+ set$1(rpc);
1184
1205
  };
1185
1206
 
1186
1207
  class AssertionError extends Error {
@@ -1203,7 +1224,7 @@ const getLocatorInvoke = locator => {
1203
1224
  const module = get(locator.webViewId);
1204
1225
  return module.invoke;
1205
1226
  }
1206
- return invoke;
1227
+ return invoke$1;
1207
1228
  };
1208
1229
 
1209
1230
  const locatorInvoke = async (locator, method, ...params) => {
@@ -1614,29 +1635,29 @@ const skipTest = async id => {
1614
1635
  const state = 'skip';
1615
1636
  const background = 'yellow';
1616
1637
  const text = `test skipped ${id}`;
1617
- await invoke('TestFrameWork.showOverlay', state, background, text);
1638
+ await invoke$1('TestFrameWork.showOverlay', state, background, text);
1618
1639
  };
1619
1640
  const {
1620
1641
  expect
1621
1642
  } = Expect$1;
1622
1643
 
1623
1644
  const show$7 = async () => {
1624
- return invoke('About.showAbout');
1645
+ return invoke$1('About.showAbout');
1625
1646
  };
1626
1647
  const handleClickOk = async () => {
1627
- return invoke('About.handleClickOk');
1648
+ return invoke$1('About.handleClickOk');
1628
1649
  };
1629
1650
  const handleClickClose$1 = async () => {
1630
- return invoke('About.handleClickClose');
1651
+ return invoke$1('About.handleClickClose');
1631
1652
  };
1632
1653
  const handleClickCopy = async () => {
1633
- return invoke('About.handleClickCopy');
1654
+ return invoke$1('About.handleClickCopy');
1634
1655
  };
1635
1656
  const focusNext$9 = async () => {
1636
- return invoke('About.focusNext');
1657
+ return invoke$1('About.focusNext');
1637
1658
  };
1638
1659
  const focusPrevious$8 = async () => {
1639
- return invoke('About.focusPrevious');
1660
+ return invoke$1('About.focusPrevious');
1640
1661
  };
1641
1662
 
1642
1663
  const About = {
@@ -1649,40 +1670,40 @@ const About = {
1649
1670
  };
1650
1671
 
1651
1672
  const focus$2 = async () => {
1652
- await invoke('ActivityBar.focus');
1673
+ await invoke$1('ActivityBar.focus');
1653
1674
  };
1654
1675
  const toggleActivityBarItem = async id => {
1655
- await invoke('ActivityBar.toggleActivityBarItem', id);
1676
+ await invoke$1('ActivityBar.toggleActivityBarItem', id);
1656
1677
  };
1657
1678
  const focusFirst$7 = async () => {
1658
- await invoke('ActivityBar.focusFirst');
1679
+ await invoke$1('ActivityBar.focusFirst');
1659
1680
  };
1660
1681
  const setAccountEnabled = async enabled => {
1661
- await invoke('ActivityBar.setAccountEnabled', enabled);
1682
+ await invoke$1('ActivityBar.setAccountEnabled', enabled);
1662
1683
  };
1663
1684
  const focusLast$6 = async () => {
1664
- await invoke('ActivityBar.focusLast');
1685
+ await invoke$1('ActivityBar.focusLast');
1665
1686
  };
1666
1687
  const focusNext$8 = async () => {
1667
- await invoke('ActivityBar.focusNext');
1688
+ await invoke$1('ActivityBar.focusNext');
1668
1689
  };
1669
1690
  const focusPrevious$7 = async () => {
1670
- await invoke('ActivityBar.focusPrevious');
1691
+ await invoke$1('ActivityBar.focusPrevious');
1671
1692
  };
1672
1693
  const handleClick$4 = async index => {
1673
- await invoke('ActivityBar.handleClick', index);
1694
+ await invoke$1('ActivityBar.handleClick', index);
1674
1695
  };
1675
1696
  const handleContextMenu$5 = async () => {
1676
- await invoke('ActivityBar.handleContextMenu');
1697
+ await invoke$1('ActivityBar.handleContextMenu');
1677
1698
  };
1678
1699
  const setUpdateState = async config => {
1679
- await invoke('ActivityBar.setUpdateState', config);
1700
+ await invoke$1('ActivityBar.setUpdateState', config);
1680
1701
  };
1681
1702
  const selectCurrent = async () => {
1682
- await invoke('ActivityBar.selectCurrent');
1703
+ await invoke$1('ActivityBar.selectCurrent');
1683
1704
  };
1684
1705
  const handleClickSettings$1 = async (x, y) => {
1685
- await invoke('ActivityBar.handleClickSettings', x, y);
1706
+ await invoke$1('ActivityBar.handleClickSettings', x, y);
1686
1707
  };
1687
1708
 
1688
1709
  const ActivityBar = {
@@ -1700,89 +1721,125 @@ const ActivityBar = {
1700
1721
  toggleActivityBarItem
1701
1722
  };
1702
1723
 
1724
+ const handleChatListContextMenu = async (eventX, eventY) => {
1725
+ await invoke$1('Chat.handleChatListContextMenu', eventX, eventY);
1726
+ };
1727
+ const setBackendUrl = async url => {
1728
+ await invoke$1('Chat.setBackendUrl', url);
1729
+ };
1703
1730
  const handleClickBack = async () => {
1704
- await invoke('Chat.handleClickBack');
1731
+ await invoke$1('Chat.handleClickBack');
1732
+ };
1733
+ const setNewChatModelPickerEnabled = async enabled => {
1734
+ await invoke$1('Chat.setNewChatModelPickerEnabled', enabled);
1705
1735
  };
1706
1736
  const handleClickSettings = async () => {
1707
- await invoke('Chat.handleClickSettings');
1737
+ await invoke$1('Chat.handleClickSettings');
1708
1738
  };
1709
1739
  const selectIndex$7 = async index => {
1710
- await invoke('Chat.selectIndex', index);
1740
+ await invoke$1('Chat.selectIndex', index);
1711
1741
  };
1712
1742
  const handleClickClose = async () => {
1713
- await invoke('Chat.handleClickClose');
1743
+ await invoke$1('Chat.handleClickClose');
1714
1744
  };
1715
1745
  const handleClickNew = async () => {
1716
- await invoke('Chat.handleClickNew');
1746
+ await invoke$1('Chat.handleClickNew');
1717
1747
  };
1718
1748
  const enterNewLine = async () => {
1719
- await invoke('Chat.enterNewLine');
1749
+ await invoke$1('Chat.enterNewLine');
1720
1750
  };
1721
1751
  const show$6 = async () => {
1722
- await invoke('Layout.showSecondarySideBar');
1723
- await invoke('Chat.reset');
1752
+ await invoke$1('Layout.showSecondarySideBar');
1753
+ await invoke$1('Chat.reset');
1724
1754
  };
1725
1755
  const getSelectedSessionId = async () => {
1726
- return invoke('Chat.getSelectedSessionId');
1756
+ return invoke$1('Chat.getSelectedSessionId');
1727
1757
  };
1728
1758
  const handleInput$7 = async text => {
1729
- await invoke('Chat.handleInput', 'composer', text, 'script');
1759
+ await invoke$1('Chat.handleInput', 'composer', text, 'script');
1730
1760
  };
1731
1761
  const reset = async () => {
1732
- await invoke('Chat.reset');
1762
+ await invoke$1('Chat.reset');
1733
1763
  };
1734
1764
  const mockOpenApiStreamFinish = async () => {
1735
- await invoke('Chat.mockOpenApiStreamFinish');
1765
+ await invoke$1('Chat.mockOpenApiStreamFinish');
1736
1766
  };
1737
1767
  const mockOpenApiStreamPushChunk = async chunk => {
1738
- await invoke('Chat.mockOpenApiStreamPushChunk', chunk);
1768
+ await invoke$1('Chat.mockOpenApiStreamPushChunk', chunk);
1739
1769
  };
1740
1770
  const handleSubmit = async () => {
1741
- await invoke('Chat.handleSubmit');
1771
+ await invoke$1('Chat.handleSubmit');
1742
1772
  };
1743
1773
  const setStreamingEnabled = async enabled => {
1744
- await invoke('Chat.setStreamingEnabled', enabled);
1774
+ await invoke$1('Chat.setStreamingEnabled', enabled);
1745
1775
  };
1746
1776
  const useMockApi = async () => {
1747
- await invoke('Chat.useMockApi', true);
1777
+ await invoke$1('Chat.useMockApi', true);
1778
+ };
1779
+ const setAuthEnabled = async enabled => {
1780
+ await invoke$1('Chat.setAuthEnabled', enabled);
1781
+ };
1782
+ const mockBackendAuthResponse = async response => {
1783
+ await invoke$1('Chat.mockBackendAuthResponse', response);
1748
1784
  };
1749
1785
  const mockOpenApiRequestGetAll = async () => {
1750
- return invoke('Chat.mockOpenApiRequestGetAll');
1786
+ return invoke$1('Chat.mockOpenApiRequestGetAll');
1751
1787
  };
1752
1788
  const rerender = async () => {
1753
- await invoke('Chat.rerender');
1789
+ await invoke$1('Chat.rerender');
1790
+ };
1791
+ const setSearchEnabled = async enabled => {
1792
+ await invoke$1('Chat.setSearchEnabled', enabled);
1754
1793
  };
1755
1794
  const mockOpenApiRequestReset = async () => {
1756
- await invoke('Chat.mockOpenApiRequestReset');
1795
+ await invoke$1('Chat.mockOpenApiRequestReset');
1757
1796
  };
1758
1797
  const mockOpenApiStreamReset = async () => {
1759
- await invoke('Chat.mockOpenApiStreamReset');
1798
+ await invoke$1('Chat.mockOpenApiStreamReset');
1760
1799
  };
1761
1800
  const handleClickDelete = async () => {
1762
- await invoke('Chat.handleClickDelete');
1801
+ await invoke$1('Chat.handleClickDelete');
1763
1802
  };
1764
1803
  const deleteSessionAtIndex = async index => {
1765
- await invoke('Chat.deleteSessionAtIndex', index);
1804
+ await invoke$1('Chat.deleteSessionAtIndex', index);
1766
1805
  };
1767
1806
  const handleModelChange = async modelId => {
1768
- await invoke('Chat.handleModelChange', modelId);
1807
+ await invoke$1('Chat.handleModelChange', modelId);
1808
+ };
1809
+ const handleInputPaste$1 = async () => {
1810
+ await invoke$1('Chat.handleInputPaste');
1811
+ };
1812
+ const handleInputCopy$1 = async () => {
1813
+ await invoke$1('Chat.handleInputCopy');
1814
+ };
1815
+ const handleInputCut$1 = async () => {
1816
+ await invoke$1('Chat.handleInputCut');
1769
1817
  };
1770
1818
  const mockOpenAiResponse = async options => {
1771
- return invoke('Chat.mockOpenAiResponse', options);
1819
+ return invoke$1('Chat.mockOpenAiResponse', options);
1820
+ };
1821
+ const handleInputFocus = async () => {
1822
+ return invoke$1('Chat.handleInputFocus');
1772
1823
  };
1773
1824
 
1774
1825
  const Chat = {
1775
1826
  deleteSessionAtIndex,
1776
1827
  enterNewLine,
1777
1828
  getSelectedSessionId,
1829
+ handleChatListContextMenu,
1778
1830
  handleClickBack,
1779
1831
  handleClickClose,
1780
1832
  handleClickDelete,
1781
1833
  handleClickNew,
1782
1834
  handleClickSettings,
1783
1835
  handleInput: handleInput$7,
1836
+ handleInputCopy: handleInputCopy$1,
1837
+ handleInputCut: handleInputCut$1,
1838
+ handleInputFocus,
1839
+ handleInputPaste: handleInputPaste$1,
1784
1840
  handleModelChange,
1785
1841
  handleSubmit,
1842
+ mockBackendAuthResponse,
1786
1843
  mockOpenAiResponse,
1787
1844
  mockOpenApiRequestGetAll,
1788
1845
  mockOpenApiRequestReset,
@@ -1792,22 +1849,26 @@ const Chat = {
1792
1849
  rerender,
1793
1850
  reset,
1794
1851
  selectIndex: selectIndex$7,
1852
+ setAuthEnabled,
1853
+ setBackendUrl,
1854
+ setNewChatModelPickerEnabled,
1855
+ setSearchEnabled,
1795
1856
  setStreamingEnabled,
1796
1857
  show: show$6,
1797
1858
  useMockApi
1798
1859
  };
1799
1860
 
1800
1861
  const readNativeFiles = async () => {
1801
- await invoke('ClipBoard.readNativeFiles');
1862
+ await invoke$1('ClipBoard.readNativeFiles');
1802
1863
  };
1803
1864
  const writeNativeFiles = async uris => {
1804
- await invoke('ClipBoard.writeNativeFiles', uris);
1865
+ await invoke$1('ClipBoard.writeNativeFiles', uris);
1805
1866
  };
1806
1867
  const enableMemoryClipBoard = async () => {
1807
- await invoke('ClipBoard.enableMemoryClipBoard');
1868
+ await invoke$1('ClipBoard.enableMemoryClipBoard');
1808
1869
  };
1809
1870
  const disableMemoryClipBoard = async () => {
1810
- await invoke('ClipBoard.disableMemoryClipBoard');
1871
+ await invoke$1('ClipBoard.disableMemoryClipBoard');
1811
1872
  };
1812
1873
  const matchesExpectedText$1 = (actualText, expectedText) => {
1813
1874
  if (typeof expectedText === 'string') {
@@ -1816,13 +1877,13 @@ const matchesExpectedText$1 = (actualText, expectedText) => {
1816
1877
  return expectedText.test(actualText);
1817
1878
  };
1818
1879
  const shouldHaveText$1 = async expectedText => {
1819
- const actualText = await invoke('ClipBoard.readMemoryText');
1880
+ const actualText = await invoke$1('ClipBoard.readMemoryText');
1820
1881
  if (!matchesExpectedText$1(actualText, expectedText)) {
1821
1882
  throw new AssertionError(`expected clipboard to have text "${expectedText}" but was "${actualText}"`);
1822
1883
  }
1823
1884
  };
1824
1885
  const writeText = async text => {
1825
- await invoke('ClipBoard.writeText', text);
1886
+ await invoke$1('ClipBoard.writeText', text);
1826
1887
  };
1827
1888
 
1828
1889
  const ClipBoard = {
@@ -1835,7 +1896,7 @@ const ClipBoard = {
1835
1896
  };
1836
1897
 
1837
1898
  const setRelativeX = async x => {
1838
- await invoke('ColorPicker.setRelativeX', x);
1899
+ await invoke$1('ColorPicker.setRelativeX', x);
1839
1900
  };
1840
1901
 
1841
1902
  const ColorPicker = {
@@ -1843,7 +1904,7 @@ const ColorPicker = {
1843
1904
  };
1844
1905
 
1845
1906
  const execute$1 = async (id, ...args) => {
1846
- return invoke(id, ...args);
1907
+ return invoke$1(id, ...args);
1847
1908
  };
1848
1909
 
1849
1910
  const Command = {
@@ -1851,7 +1912,7 @@ const Command = {
1851
1912
  };
1852
1913
 
1853
1914
  const selectItem$1 = async text => {
1854
- await invoke('Menu.selectItem', text);
1915
+ await invoke$1('Menu.selectItem', text);
1855
1916
  };
1856
1917
 
1857
1918
  const ContextMenu = {
@@ -1859,28 +1920,28 @@ const ContextMenu = {
1859
1920
  };
1860
1921
 
1861
1922
  const openIframeInspector = async () => {
1862
- return invoke('Developer.openIframeInspector');
1923
+ return invoke$1('Developer.openIframeInspector');
1863
1924
  };
1864
1925
  const openCacheFolder = async () => {
1865
- return invoke('Developer.openCacheFolder');
1926
+ return invoke$1('Developer.openCacheFolder');
1866
1927
  };
1867
1928
  const openConfigFolder = async () => {
1868
- return invoke('Developer.openConfigFolder');
1929
+ return invoke$1('Developer.openConfigFolder');
1869
1930
  };
1870
1931
  const openLogsFolder = async () => {
1871
- return invoke('Developer.openLogsFolder');
1932
+ return invoke$1('Developer.openLogsFolder');
1872
1933
  };
1873
1934
  const openProcessExplorer = async () => {
1874
- return invoke('Developer.openProcessExplorer');
1935
+ return invoke$1('Developer.openProcessExplorer');
1875
1936
  };
1876
1937
  const reloadColorTheme = async () => {
1877
- return invoke('Developer.reloadColorTheme');
1938
+ return invoke$1('Developer.reloadColorTheme');
1878
1939
  };
1879
1940
  const reloadIconTheme = async () => {
1880
- return invoke('Developer.reloadIconTheme');
1941
+ return invoke$1('Developer.reloadIconTheme');
1881
1942
  };
1882
1943
  const toggleDeveloperTools = async () => {
1883
- return invoke('Developer.toggleDeveloperTools');
1944
+ return invoke$1('Developer.toggleDeveloperTools');
1884
1945
  };
1885
1946
 
1886
1947
  const Developer = {
@@ -1910,15 +1971,15 @@ const executeMock$1 = (id, ...args) => {
1910
1971
  };
1911
1972
 
1912
1973
  const showSaveFilePicker = async () => {
1913
- await invoke('FilePicker.showSaveFilePicker');
1974
+ await invoke$1('FilePicker.showSaveFilePicker');
1914
1975
  };
1915
1976
  const mockSaveFilePicker = async fn => {
1916
1977
  const id = registerMock(fn);
1917
- await invoke('FilePicker.mockSaveFilePicker', id);
1978
+ await invoke$1('FilePicker.mockSaveFilePicker', id);
1918
1979
  };
1919
1980
  const mockConfirm = async fn => {
1920
1981
  const id = registerMock(fn);
1921
- await invoke('ConfirmPrompt.mock', id);
1982
+ await invoke$1('ConfirmPrompt.mock', id);
1922
1983
  };
1923
1984
  const executeMock = (id, ...args) => {
1924
1985
  return executeMock$1(id, ...args);
@@ -1960,7 +2021,7 @@ const areSelectionsEqual = (a, b) => {
1960
2021
  };
1961
2022
 
1962
2023
  const getEditorKey = async () => {
1963
- const keys = await invoke$1('Editor.getKeys');
2024
+ const keys = await invoke$2('Editor.getKeys');
1964
2025
  if (keys.length === 0) {
1965
2026
  throw new Error(`no editor found`);
1966
2027
  }
@@ -1972,15 +2033,15 @@ const getEditorKey = async () => {
1972
2033
  const Script = 2;
1973
2034
 
1974
2035
  const update$1 = settings => {
1975
- return invoke('Preferences.update', settings);
2036
+ return invoke$1('Preferences.update', settings);
1976
2037
  };
1977
2038
  const enableDiagnostics$1 = () => {
1978
- return invoke('Preferences.update', {
2039
+ return invoke$1('Preferences.update', {
1979
2040
  'editor.diagnostics': true
1980
2041
  });
1981
2042
  };
1982
2043
  const disableDiagnostics$1 = () => {
1983
- return invoke('Preferences.update', {
2044
+ return invoke$1('Preferences.update', {
1984
2045
  'editor.diagnostics': false
1985
2046
  });
1986
2047
  };
@@ -1992,245 +2053,245 @@ const Settings = {
1992
2053
  };
1993
2054
 
1994
2055
  const setCursor = async (rowIndex, columnIndex) => {
1995
- await invoke('Editor.cursorSet', rowIndex, columnIndex);
2056
+ await invoke$1('Editor.cursorSet', rowIndex, columnIndex);
1996
2057
  };
1997
2058
  const cancelSelection = async () => {
1998
- await invoke('Editor.cancelSelection');
2059
+ await invoke$1('Editor.cancelSelection');
1999
2060
  };
2000
2061
  const openCompletion = async () => {
2001
- await invoke('Editor.openCompletion');
2062
+ await invoke$1('Editor.openCompletion');
2002
2063
  };
2003
2064
  const closeCompletion = async () => {
2004
- await invoke('EditorCompletion.close');
2065
+ await invoke$1('EditorCompletion.close');
2005
2066
  };
2006
2067
  const openEditorContextMenu = async () => {
2007
- await invoke('Editor.handleContextMenu', 0, 0);
2068
+ await invoke$1('Editor.handleContextMenu', 0, 0);
2008
2069
  };
2009
2070
  const invokeTabCompletion = async () => {
2010
- await invoke('Editor.tabCompletion');
2071
+ await invoke$1('Editor.tabCompletion');
2011
2072
  };
2012
2073
  const executeTabCompletion = async () => {
2013
- await invoke('Editor.tabCompletion');
2074
+ await invoke$1('Editor.tabCompletion');
2014
2075
  };
2015
2076
  const invokeBraceCompletion = async text => {
2016
- await invoke('Editor.braceCompletion', text);
2077
+ await invoke$1('Editor.braceCompletion', text);
2017
2078
  };
2018
2079
  const cursorCharacterRight = async () => {
2019
- await invoke('Editor.cursorCharacterRight');
2080
+ await invoke$1('Editor.cursorCharacterRight');
2020
2081
  };
2021
2082
  const cursorCharacterLeft = async () => {
2022
- await invoke('Editor.cursorCharacterLeft');
2083
+ await invoke$1('Editor.cursorCharacterLeft');
2023
2084
  };
2024
2085
  const copyLineDown = async () => {
2025
- await invoke('Editor.copyLineDown');
2086
+ await invoke$1('Editor.copyLineDown');
2026
2087
  };
2027
2088
  const cursorDown = async () => {
2028
- await invoke('Editor.cursorDown');
2089
+ await invoke$1('Editor.cursorDown');
2029
2090
  };
2030
2091
  const selectDown$1 = async () => {
2031
- await invoke('Editor.selectDown');
2092
+ await invoke$1('Editor.selectDown');
2032
2093
  };
2033
2094
  const selectLine = async () => {
2034
- await invoke('Editor.selectLine');
2095
+ await invoke$1('Editor.selectLine');
2035
2096
  };
2036
2097
  const selectAllLeft = async () => {
2037
- await invoke('Editor.selectAllLeft');
2098
+ await invoke$1('Editor.selectAllLeft');
2038
2099
  };
2039
2100
  const selectionGrow = async () => {
2040
- await invoke('Editor.selectionGrow');
2101
+ await invoke$1('Editor.selectionGrow');
2041
2102
  };
2042
2103
  const selectAllRight = async () => {
2043
- await invoke('Editor.selectAllRight');
2104
+ await invoke$1('Editor.selectAllRight');
2044
2105
  };
2045
2106
  const selectAllOccurrences = async () => {
2046
- await invoke('Editor.selectAllOccurrences');
2107
+ await invoke$1('Editor.selectAllOccurrences');
2047
2108
  };
2048
2109
  const selectUp$1 = async () => {
2049
- await invoke('Editor.selectUp');
2110
+ await invoke$1('Editor.selectUp');
2050
2111
  };
2051
2112
  const cursorUp = async () => {
2052
- await invoke('Editor.cursorUp');
2113
+ await invoke$1('Editor.cursorUp');
2053
2114
  };
2054
2115
  const cursorWordLeft = async () => {
2055
- await invoke('Editor.cursorWordLeft');
2116
+ await invoke$1('Editor.cursorWordLeft');
2056
2117
  };
2057
2118
  const setText = async text => {
2058
- await invoke('Editor.setText', text);
2119
+ await invoke$1('Editor.setText', text);
2059
2120
  };
2060
2121
  const deleteAll = async () => {
2061
- await invoke('Editor.deleteAll');
2122
+ await invoke$1('Editor.deleteAll');
2062
2123
  };
2063
2124
  const selectCharacterLeft = async () => {
2064
- await invoke('Editor.selectCharacterLeft');
2125
+ await invoke$1('Editor.selectCharacterLeft');
2065
2126
  };
2066
2127
  const selectCharacterRight = async () => {
2067
- await invoke('Editor.selectCharacterRight');
2128
+ await invoke$1('Editor.selectCharacterRight');
2068
2129
  };
2069
2130
  const deleteCharacterLeft = async () => {
2070
- await invoke('Editor.deleteCharacterLeft');
2131
+ await invoke$1('Editor.deleteCharacterLeft');
2071
2132
  };
2072
2133
  const deleteWordPartRight = async () => {
2073
- await invoke('Editor.deleteWordPartRight');
2134
+ await invoke$1('Editor.deleteWordPartRight');
2074
2135
  };
2075
2136
  const deleteWordRight = async () => {
2076
- await invoke('Editor.deleteWordRight');
2137
+ await invoke$1('Editor.deleteWordRight');
2077
2138
  };
2078
2139
  const deleteWordPartLeft = async () => {
2079
- await invoke('Editor.deleteWordPartLeft');
2140
+ await invoke$1('Editor.deleteWordPartLeft');
2080
2141
  };
2081
2142
  const deleteWordLeft = async () => {
2082
- await invoke('Editor.deleteWordLeft');
2143
+ await invoke$1('Editor.deleteWordLeft');
2083
2144
  };
2084
2145
  const deleteHorizontalRight = async () => {
2085
- await invoke('Editor.deleteHorizontalRight');
2146
+ await invoke$1('Editor.deleteHorizontalRight');
2086
2147
  };
2087
2148
  const deleteCharacterRight = async () => {
2088
- await invoke('Editor.deleteCharacterRight');
2149
+ await invoke$1('Editor.deleteCharacterRight');
2089
2150
  };
2090
2151
  const cursorWordRight = async () => {
2091
- await invoke('Editor.cursorWordRight');
2152
+ await invoke$1('Editor.cursorWordRight');
2092
2153
  };
2093
2154
  const goToDefinition = async () => {
2094
- await invoke('Editor.goToDefinition');
2155
+ await invoke$1('Editor.goToDefinition');
2095
2156
  };
2096
2157
  const openHover = async () => {
2097
- await invoke('Editor.showHover2');
2158
+ await invoke$1('Editor.showHover2');
2098
2159
  };
2099
2160
  const goToTypeDefinition = async () => {
2100
- await invoke('Editor.goToTypeDefinition');
2161
+ await invoke$1('Editor.goToTypeDefinition');
2101
2162
  };
2102
2163
  const type = async text => {
2103
- await invoke('Editor.type', text);
2164
+ await invoke$1('Editor.type', text);
2104
2165
  };
2105
2166
  const findAllReferences = async () => {
2106
- await invoke('SideBar.show', 'References', /* focus */true);
2167
+ await invoke$1('SideBar.show', 'References', /* focus */true);
2107
2168
  };
2108
2169
  const findAllImplementations = async () => {
2109
- await invoke('SideBar.show', 'Implementations', /* focus */true);
2170
+ await invoke$1('SideBar.show', 'Implementations', /* focus */true);
2110
2171
  };
2111
2172
  const setSelections = async selections => {
2112
- await invoke('Editor.setSelections', selections);
2173
+ await invoke$1('Editor.setSelections', selections);
2113
2174
  };
2114
2175
  const selectNextOccurrence = async () => {
2115
- await invoke('Editor.selectNextOccurrence');
2176
+ await invoke$1('Editor.selectNextOccurrence');
2116
2177
  };
2117
2178
  const selectPreviousOccurrence = async () => {
2118
- await invoke('Editor.selectPreviousOccurrence');
2179
+ await invoke$1('Editor.selectPreviousOccurrence');
2119
2180
  };
2120
2181
  const openFindWidget = async () => {
2121
- await invoke('Editor.openFind');
2182
+ await invoke$1('Editor.openFind');
2122
2183
  };
2123
2184
  const setDeltaY$1 = async deltaY => {
2124
- await invoke('Editor.setDeltaY', deltaY);
2185
+ await invoke$1('Editor.setDeltaY', deltaY);
2125
2186
  };
2126
2187
  const format = async () => {
2127
- await invoke('Editor.format');
2188
+ await invoke$1('Editor.format');
2128
2189
  };
2129
2190
  const unIndent = async () => {
2130
- await invoke('Editor.unIndent');
2191
+ await invoke$1('Editor.unIndent');
2131
2192
  };
2132
2193
  const insertLineBreak = async () => {
2133
- await invoke('Editor.insertLineBreak');
2194
+ await invoke$1('Editor.insertLineBreak');
2134
2195
  };
2135
2196
  const openSourceActions = async () => {
2136
- await invoke('Editor.showSourceActions2');
2197
+ await invoke$1('Editor.showSourceActions2');
2137
2198
  };
2138
2199
  const sourceActionsSelectCurrent = async () => {
2139
- await invoke('EditorSourceActions.selectCurrent');
2200
+ await invoke$1('EditorSourceActions.selectCurrent');
2140
2201
  };
2141
2202
  const openCompletionDetails = async () => {
2142
- await invoke('EditorCompletion.openDetails');
2203
+ await invoke$1('EditorCompletion.openDetails');
2143
2204
  };
2144
2205
  const closeCompletionDetails = async () => {
2145
- await invoke('EditorCompletion.closeDetails');
2206
+ await invoke$1('EditorCompletion.closeDetails');
2146
2207
  };
2147
2208
  const toggleCompletionDetails = async () => {
2148
- await invoke('EditorCompletion.toggleDetails');
2209
+ await invoke$1('EditorCompletion.toggleDetails');
2149
2210
  };
2150
2211
  const organizeImports = async () => {
2151
- await invoke('Editor.organizeImports');
2212
+ await invoke$1('Editor.organizeImports');
2152
2213
  };
2153
2214
  const addAllMissingImports = async () => {
2154
- await invoke('Editor.addAllMissingImports');
2215
+ await invoke$1('Editor.addAllMissingImports');
2155
2216
  };
2156
2217
  const sortImports = async () => {
2157
- await invoke('Editor.sortImports');
2218
+ await invoke$1('Editor.sortImports');
2158
2219
  };
2159
2220
  const toggleLineComment = async () => {
2160
- await invoke('Editor.toggleLineComment');
2221
+ await invoke$1('Editor.toggleLineComment');
2161
2222
  };
2162
2223
  const toggleBlockComment = async () => {
2163
- await invoke('Editor.toggleBlockComment');
2224
+ await invoke$1('Editor.toggleBlockComment');
2164
2225
  };
2165
2226
  const selectAll$1 = async () => {
2166
- await invoke('Editor.toggleBlockComment');
2227
+ await invoke$1('Editor.toggleBlockComment');
2167
2228
  };
2168
2229
  const openColorPicker = async () => {
2169
- await invoke('Editor.openColorPicker');
2230
+ await invoke$1('Editor.openColorPicker');
2170
2231
  };
2171
2232
  const openFind = async () => {
2172
- await invoke('Editor.openFind2');
2233
+ await invoke$1('Editor.openFind2');
2173
2234
  };
2174
2235
  const deleteAllLeft = async () => {
2175
- await invoke('Editor.deleteAllLeft');
2236
+ await invoke$1('Editor.deleteAllLeft');
2176
2237
  };
2177
2238
  const deleteAllRight = async () => {
2178
- await invoke('Editor.deleteAllRight');
2239
+ await invoke$1('Editor.deleteAllRight');
2179
2240
  };
2180
2241
  const cursorWordPartLeft = async () => {
2181
- await invoke('Editor.cursorWordPartLeft');
2242
+ await invoke$1('Editor.cursorWordPartLeft');
2182
2243
  };
2183
2244
  const cursorWordPartRight = async () => {
2184
- await invoke('Editor.cursorWordPartRight');
2245
+ await invoke$1('Editor.cursorWordPartRight');
2185
2246
  };
2186
2247
  const cursorEnd = async () => {
2187
- await invoke('Editor.cursorEnd');
2248
+ await invoke$1('Editor.cursorEnd');
2188
2249
  };
2189
2250
  const cursorHome = async () => {
2190
- await invoke('Editor.cursorHome');
2251
+ await invoke$1('Editor.cursorHome');
2191
2252
  };
2192
2253
  const copyLineUp = async () => {
2193
- await invoke('Editor.copyLineUp');
2254
+ await invoke$1('Editor.copyLineUp');
2194
2255
  };
2195
2256
  const copy$1 = async () => {
2196
- await invoke('Editor.copy');
2257
+ await invoke$1('Editor.copy');
2197
2258
  };
2198
2259
  const closeColorPicker = async () => {
2199
- await invoke('Editor.closeColorPicker');
2260
+ await invoke$1('Editor.closeColorPicker');
2200
2261
  };
2201
2262
  const openContextMenu$1 = async () => {
2202
2263
  const button = 0;
2203
2264
  const x = 0;
2204
2265
  const y = 0;
2205
- await invoke('Editor.contextMenu', button, x, y);
2266
+ await invoke$1('Editor.contextMenu', button, x, y);
2206
2267
  };
2207
2268
  const getText = async () => {
2208
- return invoke('Editor.getText');
2269
+ return invoke$1('Editor.getText');
2209
2270
  };
2210
2271
  const rename$1 = async () => {
2211
- await invoke('Editor.rename');
2272
+ await invoke$1('Editor.rename');
2212
2273
  };
2213
2274
  const showHover = async () => {
2214
- await invoke('Editor.showHover2');
2275
+ await invoke$1('Editor.showHover2');
2215
2276
  };
2216
2277
  const openRename = async () => {
2217
- await invoke('Editor.openRename');
2278
+ await invoke$1('Editor.openRename');
2218
2279
  };
2219
2280
  const rename2 = async newName => {
2220
2281
  await openRename();
2221
- await invoke('EditorRename.handleInput', newName, Script);
2222
- await invoke('EditorRename.accept');
2282
+ await invoke$1('EditorRename.handleInput', newName, Script);
2283
+ await invoke$1('EditorRename.accept');
2223
2284
  };
2224
2285
  const growSelection = async () => {
2225
- await invoke('Editor.selectionGrow');
2286
+ await invoke$1('Editor.selectionGrow');
2226
2287
  };
2227
2288
  const getSelections = async () => {
2228
2289
  const key = await getEditorKey();
2229
- return invoke$1('Editor.getSelections', key);
2290
+ return invoke$2('Editor.getSelections', key);
2230
2291
  };
2231
2292
  const shouldHaveText = async expectedText => {
2232
2293
  const key = await getEditorKey();
2233
- const text = await invoke$1('Editor.getText', key);
2294
+ const text = await invoke$2('Editor.getText', key);
2234
2295
  if (text !== expectedText) {
2235
2296
  throw new Error(`Expected editor to have text ${expectedText} but was ${text}`);
2236
2297
  }
@@ -2255,7 +2316,7 @@ const areTokensEqual = (actual, expected) => {
2255
2316
  };
2256
2317
  const shouldHaveTokens = async expectedTokens => {
2257
2318
  const key = await getEditorKey();
2258
- const text = await invoke$1('Editor.getTokens', key);
2319
+ const text = await invoke$2('Editor.getTokens', key);
2259
2320
  if (!areTokensEqual(text, expectedTokens)) {
2260
2321
  const stringifiedActual = JSON.stringify(text);
2261
2322
  const stringifiedExpected = JSON.stringify(expectedTokens);
@@ -2264,20 +2325,20 @@ const shouldHaveTokens = async expectedTokens => {
2264
2325
  };
2265
2326
  const shouldHaveSelections = async expectedSelections => {
2266
2327
  const key = await getEditorKey();
2267
- const selections = await invoke$1('Editor.getSelections', key);
2328
+ const selections = await invoke$2('Editor.getSelections', key);
2268
2329
  if (!areSelectionsEqual(selections, expectedSelections)) {
2269
2330
  throw new Error(`Expected editor to have selections ${expectedSelections} but was ${selections}`);
2270
2331
  }
2271
2332
  };
2272
2333
  const undo = async () => {
2273
- await invoke$1('Editor.undo');
2334
+ await invoke$2('Editor.undo');
2274
2335
  };
2275
2336
  const redo = async () => {
2276
- await invoke$1('Editor.redo');
2337
+ await invoke$2('Editor.redo');
2277
2338
  };
2278
2339
  const shouldHaveDiagnostics = async expectedDiagnostics => {
2279
2340
  const key = await getEditorKey();
2280
- const diagnostics = await invoke$1('Editor.getDiagnostics', key);
2341
+ const diagnostics = await invoke$2('Editor.getDiagnostics', key);
2281
2342
  if (!areDiagnosticsEqual(diagnostics, expectedDiagnostics)) {
2282
2343
  const stringifiedActual = JSON.stringify(diagnostics);
2283
2344
  const stringifiedExpected = JSON.stringify(expectedDiagnostics);
@@ -2396,19 +2457,19 @@ const Editor = {
2396
2457
  };
2397
2458
 
2398
2459
  const selectIndex$6 = async index => {
2399
- await invoke('EditorCompletion.selectIndex', index);
2460
+ await invoke$1('EditorCompletion.selectIndex', index);
2400
2461
  };
2401
2462
  const selectCurrentIndex$2 = async () => {
2402
- await invoke('EditorCompletion.selectCurrentIndex');
2463
+ await invoke$1('EditorCompletion.selectCurrentIndex');
2403
2464
  };
2404
2465
  const close$2 = async () => {
2405
- await invoke('EditorCompletion.close');
2466
+ await invoke$1('EditorCompletion.close');
2406
2467
  };
2407
2468
  const handleWheel$2 = async (deltaMode, deltaY) => {
2408
- await invoke('EditorCompletion.handleWheel', deltaMode, deltaY);
2469
+ await invoke$1('EditorCompletion.handleWheel', deltaMode, deltaY);
2409
2470
  };
2410
2471
  const handlePointerdown = async (clientX, clientY) => {
2411
- await invoke('EditorCompletion.handlePointerdown', clientX, clientY);
2472
+ await invoke$1('EditorCompletion.handlePointerdown', clientX, clientY);
2412
2473
  };
2413
2474
 
2414
2475
  const EditorCompletion = {
@@ -2420,10 +2481,10 @@ const EditorCompletion = {
2420
2481
  };
2421
2482
 
2422
2483
  const show$5 = async () => {
2423
- await invoke('Editor.showHover2');
2484
+ await invoke$1('Editor.showHover2');
2424
2485
  };
2425
2486
  const close$1 = async () => {
2426
- await invoke('EditorHover.close');
2487
+ await invoke$1('EditorHover.close');
2427
2488
  };
2428
2489
 
2429
2490
  const EditorHover = {
@@ -2432,13 +2493,13 @@ const EditorHover = {
2432
2493
  };
2433
2494
 
2434
2495
  const handleInput$6 = async value => {
2435
- await invoke('EditorRename.handleInput', value, Script);
2496
+ await invoke$1('EditorRename.handleInput', value, Script);
2436
2497
  };
2437
2498
  const accept = async () => {
2438
- await invoke('EditorRename.accept');
2499
+ await invoke$1('EditorRename.accept');
2439
2500
  };
2440
2501
  const cancel = async () => {
2441
- await invoke('EditorRename.cancel');
2502
+ await invoke$1('EditorRename.cancel');
2442
2503
  };
2443
2504
 
2444
2505
  const EditorRename = {
@@ -2448,10 +2509,10 @@ const EditorRename = {
2448
2509
  };
2449
2510
 
2450
2511
  const selectIndex$5 = async index => {
2451
- await invoke('EditorSourceAction.selectIndex', index);
2512
+ await invoke$1('EditorSourceAction.selectIndex', index);
2452
2513
  };
2453
2514
  const selectCurrentIndex$1 = async () => {
2454
- await invoke('EditorSourceAction.selectCurrentIndex');
2515
+ await invoke$1('EditorSourceAction.selectCurrentIndex');
2455
2516
  };
2456
2517
 
2457
2518
  const EditorSourceAction = {
@@ -2460,124 +2521,124 @@ const EditorSourceAction = {
2460
2521
  };
2461
2522
 
2462
2523
  const openContextMenu = async index => {
2463
- await invoke('Explorer.handleContextMenuKeyboard', index);
2524
+ await invoke$1('Explorer.handleContextMenuKeyboard', index);
2464
2525
  };
2465
2526
  const handleDragLeave = async () => {
2466
- await invoke('Explorer.handleDragLeave');
2527
+ await invoke$1('Explorer.handleDragLeave');
2467
2528
  };
2468
2529
  const handleBlur = async () => {
2469
- await invoke('Explorer.handleBlur');
2530
+ await invoke$1('Explorer.handleBlur');
2470
2531
  };
2471
2532
  const handleEscape = async () => {
2472
- await invoke('Explorer.handleEscape');
2533
+ await invoke$1('Explorer.handleEscape');
2473
2534
  };
2474
2535
  const handleInputBlur = async () => {
2475
- await invoke('Explorer.handleInputBlur');
2536
+ await invoke$1('Explorer.handleInputBlur');
2476
2537
  };
2477
2538
  const focus$1 = async () => {
2478
- await invoke('Explorer.focusIndex', -1);
2539
+ await invoke$1('Explorer.focusIndex', -1);
2479
2540
  };
2480
2541
  const setDeltaY = async deltaY => {
2481
- await invoke('Explorer.setDeltaY', deltaY);
2542
+ await invoke$1('Explorer.setDeltaY', deltaY);
2482
2543
  };
2483
2544
  const focusNext$7 = async () => {
2484
- await invoke('Explorer.focusNext');
2545
+ await invoke$1('Explorer.focusNext');
2485
2546
  };
2486
2547
  const selectUp = async () => {
2487
- await invoke('Explorer.selectUp');
2548
+ await invoke$1('Explorer.selectUp');
2488
2549
  };
2489
2550
  const handleDragOverIndex = async index => {
2490
- await invoke('Explorer.handleDragOverIndex', index);
2551
+ await invoke$1('Explorer.handleDragOverIndex', index);
2491
2552
  };
2492
2553
  const selectDown = async () => {
2493
- await invoke('Explorer.selectDown');
2554
+ await invoke$1('Explorer.selectDown');
2494
2555
  };
2495
2556
  const collapseAll$2 = async () => {
2496
- await invoke('Explorer.collapseAll');
2557
+ await invoke$1('Explorer.collapseAll');
2497
2558
  };
2498
2559
  const refresh$1 = async () => {
2499
- await invoke('Explorer.refresh');
2560
+ await invoke$1('Explorer.refresh');
2500
2561
  };
2501
2562
  const focusIndex$5 = async index => {
2502
- await invoke('Explorer.focusIndex', index);
2563
+ await invoke$1('Explorer.focusIndex', index);
2503
2564
  };
2504
2565
  const clickCurrent = async () => {
2505
- await invoke('Explorer.handleClickCurrent');
2566
+ await invoke$1('Explorer.handleClickCurrent');
2506
2567
  };
2507
2568
  const handleArrowLeft$1 = async () => {
2508
- await invoke('Explorer.handleArrowLeft');
2569
+ await invoke$1('Explorer.handleArrowLeft');
2509
2570
  };
2510
2571
  const focusLast$5 = async () => {
2511
- await invoke('Explorer.focusLast');
2572
+ await invoke$1('Explorer.focusLast');
2512
2573
  };
2513
2574
  const focusFirst$6 = async () => {
2514
- await invoke('Explorer.focusFirst');
2575
+ await invoke$1('Explorer.focusFirst');
2515
2576
  };
2516
2577
  const removeDirent = async () => {
2517
- await invoke('Explorer.removeDirent');
2578
+ await invoke$1('Explorer.removeDirent');
2518
2579
  };
2519
2580
  const expandRecursively = async () => {
2520
- await invoke('Explorer.expandRecursively');
2581
+ await invoke$1('Explorer.expandRecursively');
2521
2582
  };
2522
2583
  const newFile = async () => {
2523
- await invoke('Explorer.newFile');
2584
+ await invoke$1('Explorer.newFile');
2524
2585
  };
2525
2586
  const newFolder = async () => {
2526
- await invoke('Explorer.newFolder');
2587
+ await invoke$1('Explorer.newFolder');
2527
2588
  };
2528
2589
  const copyPath$2 = async () => {
2529
- await invoke('Explorer.copyPath');
2590
+ await invoke$1('Explorer.copyPath');
2530
2591
  };
2531
2592
  const copyRelativePath$1 = async () => {
2532
- await invoke('Explorer.copyRelativePath');
2593
+ await invoke$1('Explorer.copyRelativePath');
2533
2594
  };
2534
2595
  const handleClick$3 = async index => {
2535
- await invoke('Explorer.handleClick', index);
2596
+ await invoke$1('Explorer.handleClick', index);
2536
2597
  };
2537
2598
  const handleClickAt$2 = async (preventDefault, button, ctrlKey, shiftKey, x, y) => {
2538
- await invoke('Explorer.handleClickAt', preventDefault, button, ctrlKey, shiftKey, x, y);
2599
+ await invoke$1('Explorer.handleClickAt', preventDefault, button, ctrlKey, shiftKey, x, y);
2539
2600
  };
2540
2601
  const handleDrop = async (x, y, fileIds, fileList) => {
2541
- await invoke('Explorer.handleDrop', x, y, fileIds, fileIds);
2602
+ await invoke$1('Explorer.handleDrop', x, y, fileIds, fileIds);
2542
2603
  };
2543
2604
  const rename = async () => {
2544
- await invoke('Explorer.renameDirent');
2605
+ await invoke$1('Explorer.renameDirent');
2545
2606
  };
2546
2607
  const selectAll = async () => {
2547
- await invoke('Explorer.selectAll');
2608
+ await invoke$1('Explorer.selectAll');
2548
2609
  };
2549
2610
  const renameDirent = async () => {
2550
- await invoke('Explorer.renameDirent');
2611
+ await invoke$1('Explorer.renameDirent');
2551
2612
  };
2552
2613
  const cancelEdit = async () => {
2553
- await invoke('Explorer.cancelEdit');
2614
+ await invoke$1('Explorer.cancelEdit');
2554
2615
  };
2555
2616
  const acceptEdit = async () => {
2556
- await invoke('Explorer.acceptEdit');
2617
+ await invoke$1('Explorer.acceptEdit');
2557
2618
  };
2558
2619
  const updateEditingValue = async value => {
2559
- await invoke('Explorer.updateEditingValue', value);
2620
+ await invoke$1('Explorer.updateEditingValue', value);
2560
2621
  };
2561
2622
  const expandAll = async () => {
2562
- await invoke('Explorer.expandAll');
2623
+ await invoke$1('Explorer.expandAll');
2563
2624
  };
2564
2625
  const handleDragOver = async (x, y) => {
2565
- await invoke('Explorer.handleDragOver', x, y);
2626
+ await invoke$1('Explorer.handleDragOver', x, y);
2566
2627
  };
2567
2628
  const handleCut = async () => {
2568
- await invoke('Explorer.handleCut');
2629
+ await invoke$1('Explorer.handleCut');
2569
2630
  };
2570
2631
  const handleCopy = async () => {
2571
- await invoke('Explorer.handleCopy');
2632
+ await invoke$1('Explorer.handleCopy');
2572
2633
  };
2573
2634
  const handlePaste = async () => {
2574
- await invoke('Explorer.handlePaste');
2635
+ await invoke$1('Explorer.handlePaste');
2575
2636
  };
2576
2637
  const selectIndices = async indices => {
2577
- await invoke('Explorer.selectIndices', indices);
2638
+ await invoke$1('Explorer.selectIndices', indices);
2578
2639
  };
2579
2640
  const toggleIndividualSelection = async index => {
2580
- await invoke('Explorer.toggleIndividualSelection', index);
2641
+ await invoke$1('Explorer.toggleIndividualSelection', index);
2581
2642
  };
2582
2643
 
2583
2644
  const Explorer = {
@@ -2626,12 +2687,12 @@ const Explorer = {
2626
2687
  const addWebExtension = async relativePath => {
2627
2688
  // TODO compute absolutePath
2628
2689
  const absolutePath = relativePath;
2629
- await invoke('ExtensionMeta.addWebExtension', absolutePath);
2690
+ await invoke$1('ExtensionMeta.addWebExtension', absolutePath);
2630
2691
  };
2631
2692
  const addNodeExtension = async relativePath => {
2632
2693
  // TODO compute absolutePath
2633
2694
  const absolutePath = relativePath;
2634
- await invoke('ExtensionMeta.addNodeExtension', absolutePath);
2695
+ await invoke$1('ExtensionMeta.addNodeExtension', absolutePath);
2635
2696
  };
2636
2697
 
2637
2698
  const Extension = {
@@ -2640,28 +2701,28 @@ const Extension = {
2640
2701
  };
2641
2702
 
2642
2703
  const handleClickCategory = async categoryId => {
2643
- await invoke('ExtensionDetail.handleClickCategory', categoryId);
2704
+ await invoke$1('ExtensionDetail.handleClickCategory', categoryId);
2644
2705
  };
2645
2706
  const handleReadmeContextMenu = async (x, y, nodeName, href) => {
2646
- await invoke('ExtensionDetail.handleReadmeContextMenu', x, y, nodeName, href);
2707
+ await invoke$1('ExtensionDetail.handleReadmeContextMenu', x, y, nodeName, href);
2647
2708
  };
2648
2709
  const copyReadmeLink = async href => {
2649
- await invoke('ExtensionDetail.copyReadmeLink', href);
2710
+ await invoke$1('ExtensionDetail.copyReadmeLink', href);
2650
2711
  };
2651
2712
  const handleClickEnable = async () => {
2652
- await invoke('ExtensionDetail.handleClickEnable');
2713
+ await invoke$1('ExtensionDetail.handleClickEnable');
2653
2714
  };
2654
2715
  const handleClickDisable = async () => {
2655
- await invoke('ExtensionDetail.handleClickDisable');
2716
+ await invoke$1('ExtensionDetail.handleClickDisable');
2656
2717
  };
2657
2718
  const handleClickSetColorTheme = async () => {
2658
- await invoke('ExtensionDetail.handleClickSetColorTheme');
2719
+ await invoke$1('ExtensionDetail.handleClickSetColorTheme');
2659
2720
  };
2660
2721
  const selectFeature = name => {
2661
- return invoke('ExtensionDetail.selectFeature', name);
2722
+ return invoke$1('ExtensionDetail.selectFeature', name);
2662
2723
  };
2663
2724
  const selectTab$2 = name => {
2664
- return invoke('ExtensionDetail.selectTab', name);
2725
+ return invoke$1('ExtensionDetail.selectTab', name);
2665
2726
  };
2666
2727
  const selectDetails = async () => {
2667
2728
  await selectTab$2('Details');
@@ -2673,23 +2734,23 @@ const selectChangelog = async () => {
2673
2734
  await selectTab$2('Changelog');
2674
2735
  };
2675
2736
  const focusNextTab = async () => {
2676
- await invoke('ExtensionDetail.focusNextTab');
2737
+ await invoke$1('ExtensionDetail.focusNextTab');
2677
2738
  };
2678
2739
  const focusPreviousTab = async () => {
2679
- await invoke('ExtensionDetail.focusPreviousTab');
2740
+ await invoke$1('ExtensionDetail.focusPreviousTab');
2680
2741
  };
2681
2742
  const open$8 = extensionId => {
2682
2743
  const uri = `extension-detail://${extensionId}`;
2683
- return invoke('Main.openUri', uri);
2744
+ return invoke$1('Main.openUri', uri);
2684
2745
  };
2685
2746
  const handleClickUninstall = () => {
2686
- return invoke('ExtensionDetail.handleClickUninstall');
2747
+ return invoke$1('ExtensionDetail.handleClickUninstall');
2687
2748
  };
2688
2749
  const handleImageContextMenu = () => {
2689
- return invoke('ExtensionDetail.handleImageContextMenu');
2750
+ return invoke$1('ExtensionDetail.handleImageContextMenu');
2690
2751
  };
2691
2752
  const openFeature = featureName => {
2692
- return invoke('ExtensionDetail.handleFeaturesClick', featureName);
2753
+ return invoke$1('ExtensionDetail.handleFeaturesClick', featureName);
2693
2754
  };
2694
2755
  const openThemes = async () => {
2695
2756
  await openFeature('Theme');
@@ -2710,13 +2771,13 @@ const openSettings = async () => {
2710
2771
  await openFeature('Settings');
2711
2772
  };
2712
2773
  const handleScroll$1 = async scrollTop => {
2713
- return invoke('ExtensionDetail.handleScroll', scrollTop);
2774
+ return invoke$1('ExtensionDetail.handleScroll', scrollTop);
2714
2775
  };
2715
2776
  const hideSizeLink = async () => {
2716
- return invoke('ExtensionDetail.hideSizeLink');
2777
+ return invoke$1('ExtensionDetail.hideSizeLink');
2717
2778
  };
2718
2779
  const handleTabFocus = async tabName => {
2719
- return invoke('ExtensionDetail.handleTabFocus', tabName);
2780
+ return invoke$1('ExtensionDetail.handleTabFocus', tabName);
2720
2781
  };
2721
2782
 
2722
2783
  const ExtensionDetail = {
@@ -2749,10 +2810,10 @@ const ExtensionDetail = {
2749
2810
  };
2750
2811
 
2751
2812
  const open$7 = async id => {
2752
- await invoke('SideBar.openViewlet', id);
2813
+ await invoke$1('SideBar.openViewlet', id);
2753
2814
  };
2754
2815
  const hide = async () => {
2755
- await invoke('Layout.hideSideBar');
2816
+ await invoke$1('Layout.hideSideBar');
2756
2817
  };
2757
2818
 
2758
2819
  const SideBar = {
@@ -2764,25 +2825,25 @@ const open$6 = async () => {
2764
2825
  await open$7('Extensions');
2765
2826
  };
2766
2827
  const handleInput$5 = async value => {
2767
- await invoke('Extensions.handleInput', value, Script$1);
2828
+ await invoke$1('Extensions.handleInput', value, Script$1);
2768
2829
  };
2769
2830
  const handleClick$2 = async index => {
2770
- await invoke('Extensions.handleClick', index);
2831
+ await invoke$1('Extensions.handleClick', index);
2771
2832
  };
2772
2833
  const handleClickFilter = async () => {
2773
- await invoke('Extensions.handleClickFilter');
2834
+ await invoke$1('Extensions.handleClickFilter');
2774
2835
  };
2775
2836
  const handleContextMenu$4 = async (button, x, y) => {
2776
- await invoke('Extensions.handleContextMenu', button, x, y);
2837
+ await invoke$1('Extensions.handleContextMenu', button, x, y);
2777
2838
  };
2778
2839
  const copyExtensionInfo = async () => {
2779
- await invoke('Extensions.copyExtensionInfo');
2840
+ await invoke$1('Extensions.copyExtensionInfo');
2780
2841
  };
2781
2842
  const copyExtensionId = async () => {
2782
- await invoke('Extensions.copyExtensionId');
2843
+ await invoke$1('Extensions.copyExtensionId');
2783
2844
  };
2784
2845
  const clearSearchResults$1 = async () => {
2785
- await invoke('Extensions.clearSearchResults');
2846
+ await invoke$1('Extensions.clearSearchResults');
2786
2847
  };
2787
2848
 
2788
2849
  const ExtensionSearch = {
@@ -2810,7 +2871,7 @@ const toFileUrl = url => {
2810
2871
 
2811
2872
  const getDirents = async fileUrl => {
2812
2873
  const allDirents = [];
2813
- const dirents = await invoke('FileSystem.readDirWithFileTypes', fileUrl);
2874
+ const dirents = await invoke$1('FileSystem.readDirWithFileTypes', fileUrl);
2814
2875
  for (const dirent of dirents) {
2815
2876
  if (dirent.type === Directory) {
2816
2877
  const subDirents = await getDirents(`${fileUrl}/${dirent.name}`);
@@ -2873,7 +2934,7 @@ const getFileMapWeb = async url => {
2873
2934
  const loadFixtureToMemFs = async fileMap => {
2874
2935
  for (const [path, content] of Object.entries(fileMap)) {
2875
2936
  const memfsPath = `memfs:///fixture/${path}`;
2876
- await invoke('FileSystem.writeFile', memfsPath, content);
2937
+ await invoke$1('FileSystem.writeFile', memfsPath, content);
2877
2938
  }
2878
2939
  return `memfs:///fixture`;
2879
2940
  };
@@ -2893,20 +2954,20 @@ const stringifyJson = data => {
2893
2954
  };
2894
2955
 
2895
2956
  const writeFile = async (uri, content) => {
2896
- await invoke('FileSystem.writeFile', uri, content);
2957
+ await invoke$1('FileSystem.writeFile', uri, content);
2897
2958
  };
2898
2959
  const writeJson = async (uri, data) => {
2899
2960
  const content = stringifyJson(data);
2900
2961
  await writeFile(uri, content);
2901
2962
  };
2902
2963
  const readFile = async uri => {
2903
- return invoke('FileSystem.readFile', uri);
2964
+ return invoke$1('FileSystem.readFile', uri);
2904
2965
  };
2905
2966
  const addFileHandle = async file => {
2906
- await invoke('FileSystem.addFileHandle', file);
2967
+ await invoke$1('FileSystem.addFileHandle', file);
2907
2968
  };
2908
2969
  const mkdir = async uri => {
2909
- await invoke('FileSystem.mkdir', uri);
2970
+ await invoke$1('FileSystem.mkdir', uri);
2910
2971
  };
2911
2972
  const setFiles = async files => {
2912
2973
  // TODO maybe have a method to send all the files to file system worker directly
@@ -2915,10 +2976,10 @@ const setFiles = async files => {
2915
2976
  }));
2916
2977
  };
2917
2978
  const readDir = async uri => {
2918
- return invoke('FileSystem.readDirWithFileTypes', uri);
2979
+ return invoke$1('FileSystem.readDirWithFileTypes', uri);
2919
2980
  };
2920
2981
  const remove = async uri => {
2921
- await invoke('FileSystem.remove', uri);
2982
+ await invoke$1('FileSystem.remove', uri);
2922
2983
  };
2923
2984
  const getTmpDir = async ({
2924
2985
  scheme = Memfs
@@ -2927,17 +2988,17 @@ const getTmpDir = async ({
2927
2988
  case Memfs:
2928
2989
  return 'memfs:///workspace';
2929
2990
  default:
2930
- return invoke('PlatformPaths.getTmpDir');
2991
+ return invoke$1('PlatformPaths.getTmpDir');
2931
2992
  }
2932
2993
  };
2933
2994
  const chmod = async (uri, permissions) => {
2934
- await invoke('FileSystem.chmod', uri, permissions);
2995
+ await invoke$1('FileSystem.chmod', uri, permissions);
2935
2996
  };
2936
2997
  const createExecutable = async content => {
2937
2998
  const tmpDir = await getTmpDir({
2938
2999
  scheme: 'file'
2939
3000
  });
2940
- const nodePath = await invoke('PlatformPaths.getNodePath');
3001
+ const nodePath = await invoke$1('PlatformPaths.getNodePath');
2941
3002
  const gitPath = `${tmpDir}/git`;
2942
3003
  await writeFile(gitPath, `#!${nodePath}
2943
3004
  ${content}`);
@@ -2945,9 +3006,9 @@ const createExecutable = async content => {
2945
3006
  return gitPath;
2946
3007
  };
2947
3008
  const createExecutableFrom = async uri => {
2948
- const testPath = await invoke('PlatformPaths.getTestPath');
3009
+ const testPath = await invoke$1('PlatformPaths.getTestPath');
2949
3010
  const absolutePath = testPath + Slash + uri;
2950
- const content = await invoke('Ajax.getText', absolutePath);
3011
+ const content = await invoke$1('Ajax.getText', absolutePath);
2951
3012
  return createExecutable(content);
2952
3013
  };
2953
3014
  const createDroppedFileHandle = async () => {
@@ -2956,7 +3017,7 @@ const createDroppedFileHandle = async () => {
2956
3017
  create: true
2957
3018
  });
2958
3019
  const file = await fileHandle.getFile();
2959
- const id = await invoke('FileSystemHandle.addFileHandle', fileHandle);
3020
+ const id = await invoke$1('FileSystemHandle.addFileHandle', fileHandle);
2960
3021
  return {
2961
3022
  file,
2962
3023
  id
@@ -2990,49 +3051,49 @@ const FileSystem = {
2990
3051
  };
2991
3052
 
2992
3053
  const focusNext$6 = async () => {
2993
- await invoke('FindWidget.focusNext');
3054
+ await invoke$1('FindWidget.focusNext');
2994
3055
  };
2995
3056
  const focusPrevious$6 = async () => {
2996
- await invoke('FindWidget.focusPrevious');
3057
+ await invoke$1('FindWidget.focusPrevious');
2997
3058
  };
2998
3059
  const close = async () => {
2999
- await invoke('FindWidget.close');
3060
+ await invoke$1('FindWidget.close');
3000
3061
  };
3001
3062
  const setReplaceValue$1 = async value => {
3002
- await invoke('FindWidget.handleReplaceInput', value, Script);
3063
+ await invoke$1('FindWidget.handleReplaceInput', value, Script);
3003
3064
  };
3004
3065
  const setValue$2 = async value => {
3005
- await invoke('FindWidget.handleInput', value, Script);
3066
+ await invoke$1('FindWidget.handleInput', value, Script);
3006
3067
  };
3007
3068
  const toggleReplace$1 = async () => {
3008
- await invoke('FindWidget.toggleReplace');
3069
+ await invoke$1('FindWidget.toggleReplace');
3009
3070
  };
3010
3071
  const toggleMatchCase$1 = async () => {
3011
- await invoke('FindWidget.toggleMatchCase');
3072
+ await invoke$1('FindWidget.toggleMatchCase');
3012
3073
  };
3013
3074
  const toggleMatchWholeWord$1 = async () => {
3014
- await invoke('FindWidget.toggleMatchWholeWord');
3075
+ await invoke$1('FindWidget.toggleMatchWholeWord');
3015
3076
  };
3016
3077
  const togglePreserveCase$1 = async () => {
3017
- await invoke('FindWidget.togglePreserveCase');
3078
+ await invoke$1('FindWidget.togglePreserveCase');
3018
3079
  };
3019
3080
  const toggleUseRegularExpression$1 = async () => {
3020
- await invoke('FindWidget.toggleUseRegularExpression');
3081
+ await invoke$1('FindWidget.toggleUseRegularExpression');
3021
3082
  };
3022
3083
  const replace = async () => {
3023
- await invoke('FindWidget.replace');
3084
+ await invoke$1('FindWidget.replace');
3024
3085
  };
3025
3086
  const replaceAll$1 = async () => {
3026
- await invoke('FindWidget.replaceAll');
3087
+ await invoke$1('FindWidget.replaceAll');
3027
3088
  };
3028
3089
  const focusElement = async whenExpression => {
3029
- await invoke('FindWidget.focusElement', whenExpression);
3090
+ await invoke$1('FindWidget.focusElement', whenExpression);
3030
3091
  };
3031
3092
  const focusNextElement = async () => {
3032
- await invoke('FindWidget.focusNextElement');
3093
+ await invoke$1('FindWidget.focusNextElement');
3033
3094
  };
3034
3095
  const focusPreviousElement = async () => {
3035
- await invoke('FindWidget.focusPreviousElement');
3096
+ await invoke$1('FindWidget.focusPreviousElement');
3036
3097
  };
3037
3098
 
3038
3099
  const FindWidget = {
@@ -3054,7 +3115,7 @@ const FindWidget = {
3054
3115
  };
3055
3116
 
3056
3117
  const setIconTheme = async id => {
3057
- await invoke('IconTheme.setIconTheme', id);
3118
+ await invoke$1('IconTheme.setIconTheme', id);
3058
3119
  };
3059
3120
 
3060
3121
  const IconTheme = {
@@ -3062,19 +3123,19 @@ const IconTheme = {
3062
3123
  };
3063
3124
 
3064
3125
  const selectIndex$4 = async index => {
3065
- return invoke('IframeInspector.selectIndex', index);
3126
+ return invoke$1('IframeInspector.selectIndex', index);
3066
3127
  };
3067
3128
  const focusNext$5 = async () => {
3068
- return invoke('IframeInspector.focusNext');
3129
+ return invoke$1('IframeInspector.focusNext');
3069
3130
  };
3070
3131
  const focusPrevious$5 = async () => {
3071
- return invoke('IframeInspector.focusPrevious');
3132
+ return invoke$1('IframeInspector.focusPrevious');
3072
3133
  };
3073
3134
  const focusFirst$5 = async () => {
3074
- return invoke('IframeInspector.focusFirst');
3135
+ return invoke$1('IframeInspector.focusFirst');
3075
3136
  };
3076
3137
  const focusLast$4 = async () => {
3077
- return invoke('IframeInspector.focusLast');
3138
+ return invoke$1('IframeInspector.focusLast');
3078
3139
  };
3079
3140
 
3080
3141
  const IframeInspector = {
@@ -3086,73 +3147,73 @@ const IframeInspector = {
3086
3147
  };
3087
3148
 
3088
3149
  const open$5 = async () => {
3089
- await invoke('Main.openUri', 'app://keybindings');
3150
+ await invoke$1('Main.openUri', 'app://keybindings');
3090
3151
  };
3091
3152
  const handleInput$4 = value => {
3092
- return invoke('KeyBindings.handleInput', value);
3153
+ return invoke$1('KeyBindings.handleInput', value);
3093
3154
  };
3094
3155
  const handleClick$1 = (x, y) => {
3095
- return invoke('KeyBindings.handleClick', x, y);
3156
+ return invoke$1('KeyBindings.handleClick', x, y);
3096
3157
  };
3097
3158
  const handleWheel$1 = (deltaMode, deltaY) => {
3098
- return invoke('KeyBindings.handleWheel', deltaMode, deltaY);
3159
+ return invoke$1('KeyBindings.handleWheel', deltaMode, deltaY);
3099
3160
  };
3100
3161
  const handleDoubleClick = (x, y) => {
3101
- return invoke('KeyBindings.handleDoubleClick', x, y);
3162
+ return invoke$1('KeyBindings.handleDoubleClick', x, y);
3102
3163
  };
3103
3164
  const focusNext$4 = () => {
3104
- return invoke('KeyBindings.focusNext');
3165
+ return invoke$1('KeyBindings.focusNext');
3105
3166
  };
3106
3167
  const focusPrevious$4 = () => {
3107
- return invoke('KeyBindings.focusPrevious');
3168
+ return invoke$1('KeyBindings.focusPrevious');
3108
3169
  };
3109
3170
  const focusFirst$4 = () => {
3110
- return invoke('KeyBindings.focusFirst');
3171
+ return invoke$1('KeyBindings.focusFirst');
3111
3172
  };
3112
3173
  const focusIndex$4 = index => {
3113
- return invoke('KeyBindings.focusIndex', index);
3174
+ return invoke$1('KeyBindings.focusIndex', index);
3114
3175
  };
3115
3176
  const focusLast$3 = () => {
3116
- return invoke('KeyBindings.focusLast');
3177
+ return invoke$1('KeyBindings.focusLast');
3117
3178
  };
3118
3179
  const toggleRecordingKeys = () => {
3119
- return invoke('KeyBindings.toggleRecordingKeys');
3180
+ return invoke$1('KeyBindings.toggleRecordingKeys');
3120
3181
  };
3121
3182
  const startRecordingKeys = () => {
3122
- return invoke('KeyBindings.startRecordingKeys');
3183
+ return invoke$1('KeyBindings.startRecordingKeys');
3123
3184
  };
3124
3185
  const clearInput = () => {
3125
- return invoke('KeyBindings.clearInput');
3186
+ return invoke$1('KeyBindings.clearInput');
3126
3187
  };
3127
3188
  const sortByPrecedence = () => {
3128
- return invoke('KeyBindings.sortByPrecedence');
3189
+ return invoke$1('KeyBindings.sortByPrecedence');
3129
3190
  };
3130
3191
  const stopRecordingKeys = () => {
3131
- return invoke('KeyBindings.stopRecordingKeys');
3192
+ return invoke$1('KeyBindings.stopRecordingKeys');
3132
3193
  };
3133
3194
  const handleContextMenu$3 = (button, x, y) => {
3134
- return invoke('KeyBindings.handleContextMenu', button, x, y);
3195
+ return invoke$1('KeyBindings.handleContextMenu', button, x, y);
3135
3196
  };
3136
3197
  const copyCommandId = () => {
3137
- return invoke('KeyBindings.copyCommandId');
3198
+ return invoke$1('KeyBindings.copyCommandId');
3138
3199
  };
3139
3200
  const copyCommandTitle = () => {
3140
- return invoke('KeyBindings.copyCommandTitle');
3201
+ return invoke$1('KeyBindings.copyCommandTitle');
3141
3202
  };
3142
3203
  const addKeyBinding = () => {
3143
- return invoke('KeyBindings.addKeyBinding');
3204
+ return invoke$1('KeyBindings.addKeyBinding');
3144
3205
  };
3145
3206
  const removeKeyBinding = () => {
3146
- return invoke('KeyBindings.removeKeyBinding');
3207
+ return invoke$1('KeyBindings.removeKeyBinding');
3147
3208
  };
3148
3209
  const changeWhenExpression = () => {
3149
- return invoke('KeyBindings.changeWhenExpression');
3210
+ return invoke$1('KeyBindings.changeWhenExpression');
3150
3211
  };
3151
3212
  const showSameKeyBindings = () => {
3152
- return invoke('KeyBindings.showSameKeyBindings');
3213
+ return invoke$1('KeyBindings.showSameKeyBindings');
3153
3214
  };
3154
3215
  const resetKeyBinding = () => {
3155
- return invoke('KeyBindings.resetKeyBinding');
3216
+ return invoke$1('KeyBindings.resetKeyBinding');
3156
3217
  };
3157
3218
 
3158
3219
  const KeyBindingsEditor = {
@@ -3227,7 +3288,7 @@ const press = async key => {
3227
3288
  cancelable: true,
3228
3289
  ...keyOptions
3229
3290
  };
3230
- await invoke('TestFrameWork.performKeyBoardAction', 'press', options);
3291
+ await invoke$1('TestFrameWork.performKeyBoardAction', 'press', options);
3231
3292
  };
3232
3293
 
3233
3294
  const KeyBoard = {
@@ -3235,19 +3296,19 @@ const KeyBoard = {
3235
3296
  };
3236
3297
 
3237
3298
  const open$4 = async () => {
3238
- await invoke('Main.openUri', 'language-models:///1');
3299
+ await invoke$1('Main.openUri', 'language-models:///1');
3239
3300
  };
3240
3301
  const handleFilterInput$2 = async value => {
3241
- await invoke('LanguageModels.handleFilterInput', value);
3302
+ await invoke$1('LanguageModels.handleFilterInput', value);
3242
3303
  };
3243
3304
  const clearFilterInput = async () => {
3244
- await invoke('LanguageModels.clearFilterInput');
3305
+ await invoke$1('LanguageModels.clearFilterInput');
3245
3306
  };
3246
3307
  const addModel = async () => {
3247
- await invoke('LanguageModels.addModel');
3308
+ await invoke$1('LanguageModels.addModel');
3248
3309
  };
3249
3310
  const removeModel = async id => {
3250
- await invoke('LanguageModels.removeModel', id);
3311
+ await invoke$1('LanguageModels.removeModel', id);
3251
3312
  };
3252
3313
 
3253
3314
  const LanguageModels = {
@@ -3259,67 +3320,67 @@ const LanguageModels = {
3259
3320
  };
3260
3321
 
3261
3322
  const openUri = async uri => {
3262
- await invoke('Main.openUri', uri);
3323
+ await invoke$1('Main.openUri', uri);
3263
3324
  };
3264
3325
  const splitRight = async () => {
3265
- await invoke('Main.splitRight');
3326
+ await invoke$1('Main.splitRight');
3266
3327
  };
3267
3328
  const splitDown = async () => {
3268
- await invoke('Main.splitDown');
3329
+ await invoke$1('Main.splitDown');
3269
3330
  };
3270
3331
  const openKeyBindings = async () => {
3271
- await invoke('Main.openKeyBindings');
3332
+ await invoke$1('Main.openKeyBindings');
3272
3333
  };
3273
3334
  const handleClickTogglePreview = async () => {
3274
- await invoke('Main.handleClickTogglePreview');
3335
+ await invoke$1('Main.handleClickTogglePreview');
3275
3336
  };
3276
3337
  const closeAllEditors = async () => {
3277
- await invoke('Main.closeAllEditors');
3338
+ await invoke$1('Main.closeAllEditors');
3278
3339
  };
3279
3340
  const closeTabsLeft = async () => {
3280
- await invoke('Main.closeTabsLeft');
3341
+ await invoke$1('Main.closeTabsLeft');
3281
3342
  };
3282
3343
  const handleModifiedStatusChange = async (uri, newStatus) => {
3283
- await invoke('Main.handleModifiedStatusChange', uri, newStatus);
3344
+ await invoke$1('Main.handleModifiedStatusChange', uri, newStatus);
3284
3345
  };
3285
3346
  const closeTabsRight = async () => {
3286
- await invoke('Main.closeTabsRight');
3347
+ await invoke$1('Main.closeTabsRight');
3287
3348
  };
3288
3349
  const selectTab$1 = async (groupIndex, tabIndex) => {
3289
- await invoke('Main.selectTab', groupIndex, tabIndex);
3350
+ await invoke$1('Main.selectTab', groupIndex, tabIndex);
3290
3351
  };
3291
3352
  const closeOthers = async () => {
3292
- await invoke('Main.closeOthers');
3353
+ await invoke$1('Main.closeOthers');
3293
3354
  };
3294
3355
  const closeActiveEditor = async () => {
3295
- await invoke('Main.closeActiveEditor');
3356
+ await invoke$1('Main.closeActiveEditor');
3296
3357
  };
3297
3358
  const save = async () => {
3298
- await invoke('Main.save');
3359
+ await invoke$1('Main.save');
3299
3360
  };
3300
3361
  const saveAll = async () => {
3301
- await invoke('Main.saveAll');
3362
+ await invoke$1('Main.saveAll');
3302
3363
  };
3303
3364
  const focusFirst$3 = async () => {
3304
- await invoke('Main.focusFirst');
3365
+ await invoke$1('Main.focusFirst');
3305
3366
  };
3306
3367
  const focusNext$3 = async () => {
3307
- await invoke('Main.focusNext');
3368
+ await invoke$1('Main.focusNext');
3308
3369
  };
3309
3370
  const focusPrevious$3 = async () => {
3310
- await invoke('Main.focusPrevious');
3371
+ await invoke$1('Main.focusPrevious');
3311
3372
  };
3312
3373
  const focusLast$2 = async () => {
3313
- await invoke('Main.focusLast');
3374
+ await invoke$1('Main.focusLast');
3314
3375
  };
3315
3376
  const handleTabContextMenu = async (button, x, y) => {
3316
- await invoke('Main.handleTabContextMenu', button, x, y);
3377
+ await invoke$1('Main.handleTabContextMenu', button, x, y);
3317
3378
  };
3318
3379
  const copyPath$1 = async () => {
3319
- await invoke('Main.copyPath');
3380
+ await invoke$1('Main.copyPath');
3320
3381
  };
3321
3382
  const copyRelativePath = async () => {
3322
- await invoke('Main.copyRelativePath');
3383
+ await invoke$1('Main.copyRelativePath');
3323
3384
  };
3324
3385
 
3325
3386
  const Main = {
@@ -3359,7 +3420,7 @@ const matchesExpectedText = (actualText, expectedText) => {
3359
3420
  return expectedText.test(actualText);
3360
3421
  };
3361
3422
  const shouldHaveUrl = async expectedText => {
3362
- const actualText = await invoke('Open.readMemoryUrl');
3423
+ const actualText = await invoke('Open.readOpenedUrl');
3363
3424
  if (!matchesExpectedText(actualText, expectedText)) {
3364
3425
  throw new AssertionError(`expected opened url to be "${expectedText}" but was "${actualText}"`);
3365
3426
  }
@@ -3372,11 +3433,11 @@ const Open = {
3372
3433
  };
3373
3434
 
3374
3435
  const open$3 = async id => {
3375
- await invoke('Layout.showPanel', id);
3436
+ await invoke$1('Layout.showPanel', id);
3376
3437
  };
3377
3438
  const openProblems = async () => {
3378
3439
  await open$3('Problems');
3379
- await invoke('Panel.selectIndex', 0);
3440
+ await invoke$1('Panel.selectIndex', 0);
3380
3441
  };
3381
3442
 
3382
3443
  const Panel = {
@@ -3386,19 +3447,19 @@ const Panel = {
3386
3447
 
3387
3448
  const show$4 = async () => {
3388
3449
  await open$3('Output');
3389
- await invoke('Panel.selectIndex', 1);
3450
+ await invoke$1('Panel.selectIndex', 1);
3390
3451
  };
3391
3452
  const handleFilterInput$1 = async text => {
3392
- await invoke('Output.handleFilterInput', text, Script);
3453
+ await invoke$1('Output.handleFilterInput', text, Script);
3393
3454
  };
3394
3455
  const selectChannel = async channelId => {
3395
- await invoke('Output.selectChannel', channelId);
3456
+ await invoke$1('Output.selectChannel', channelId);
3396
3457
  };
3397
3458
  const clear$2 = async () => {
3398
- await invoke('Output.clear');
3459
+ await invoke$1('Output.clear');
3399
3460
  };
3400
3461
  const saveAs = async () => {
3401
- await invoke('Output.saveAs');
3462
+ await invoke$1('Output.saveAs');
3402
3463
  };
3403
3464
 
3404
3465
  const Output = {
@@ -3423,7 +3484,7 @@ const getIsFirefox = () => {
3423
3484
  };
3424
3485
 
3425
3486
  const getNodePath$1 = () => {
3426
- return invoke(/* Platform.getNodePath */'Platform.getNodePath');
3487
+ return invoke$1(/* Platform.getNodePath */'Platform.getNodePath');
3427
3488
  };
3428
3489
 
3429
3490
  const getNodePath = () => {
@@ -3439,38 +3500,38 @@ const Platform = {
3439
3500
  };
3440
3501
 
3441
3502
  const open$2 = async uri => {
3442
- await invoke('Layout.showPreview', uri);
3503
+ await invoke$1('Layout.showPreview', uri);
3443
3504
  };
3444
3505
  const handleClick = async hdId => {
3445
- await invoke('Preview.handleClick', hdId);
3506
+ await invoke$1('Preview.handleClick', hdId);
3446
3507
  };
3447
3508
  const handleInput$3 = async (hdId, value) => {
3448
- await invoke('Preview.handleInput', hdId, value);
3509
+ await invoke$1('Preview.handleInput', hdId, value);
3449
3510
  };
3450
3511
  const handleMouseDown = async (hdId, clientX, clientY) => {
3451
- await invoke('Preview.handleMouseDown', hdId, clientX, clientY);
3512
+ await invoke$1('Preview.handleMouseDown', hdId, clientX, clientY);
3452
3513
  };
3453
3514
  const handleMouseUp = async (hdId, value, clientX, clientY) => {
3454
- await invoke('Preview.handleMouseUp', hdId, value, clientX, clientY);
3515
+ await invoke$1('Preview.handleMouseUp', hdId, value, clientX, clientY);
3455
3516
  };
3456
3517
  const handleMouseMove = async (hdId, value, clientX, clientY) => {
3457
- await invoke('Preview.handleMouseMove', hdId, value, clientX, clientY);
3518
+ await invoke$1('Preview.handleMouseMove', hdId, value, clientX, clientY);
3458
3519
  };
3459
3520
  const handleKeyDown = async (hdId, key, code) => {
3460
- await invoke('Preview.handleKeyDown', hdId, key, code);
3521
+ await invoke$1('Preview.handleKeyDown', hdId, key, code);
3461
3522
  };
3462
3523
  const setUri = async uri => {
3463
- await invoke('Preview.setUri', uri);
3524
+ await invoke$1('Preview.setUri', uri);
3464
3525
  };
3465
3526
 
3466
3527
  /**
3467
3528
  * @deprecated use waitForMutation instead
3468
3529
  */
3469
3530
  const waitForClick = async () => {
3470
- await invoke('Preview.waitForClick');
3531
+ await invoke$1('Preview.waitForClick');
3471
3532
  };
3472
3533
  const waitForMutation = async () => {
3473
- await invoke('Preview.waitForMutation');
3534
+ await invoke$1('Preview.waitForMutation');
3474
3535
  };
3475
3536
 
3476
3537
  const Preview = {
@@ -3487,34 +3548,34 @@ const Preview = {
3487
3548
  };
3488
3549
 
3489
3550
  const show$3 = async () => {
3490
- await invoke('Panel.selectIndex', 0);
3551
+ await invoke$1('Panel.selectIndex', 0);
3491
3552
  };
3492
3553
  const handleFilterInput = async text => {
3493
- await invoke('Problems.handleFilterInput', text, Script);
3554
+ await invoke$1('Problems.handleFilterInput', text, Script);
3494
3555
  };
3495
3556
  const copyMessage = async () => {
3496
- await invoke('Problems.copyMessage');
3557
+ await invoke$1('Problems.copyMessage');
3497
3558
  };
3498
3559
  const focusIndex$3 = async index => {
3499
- await invoke('Problems.focusIndex', index);
3560
+ await invoke$1('Problems.focusIndex', index);
3500
3561
  };
3501
3562
  const handleArrowLeft = async () => {
3502
- await invoke('Problems.handleArrowLeft');
3563
+ await invoke$1('Problems.handleArrowLeft');
3503
3564
  };
3504
3565
  const handleArrowRight = async () => {
3505
- await invoke('Problems.handleArrowRight');
3566
+ await invoke$1('Problems.handleArrowRight');
3506
3567
  };
3507
3568
  const handleClickAt$1 = async (x, y) => {
3508
- await invoke('Problems.handleClickAt', x, y);
3569
+ await invoke$1('Problems.handleClickAt', x, y);
3509
3570
  };
3510
3571
  const handleIconThemeChange = async () => {
3511
- await invoke('Problems.handleIconThemeChange');
3572
+ await invoke$1('Problems.handleIconThemeChange');
3512
3573
  };
3513
3574
  const viewAsList = async () => {
3514
- await invoke('Problems.viewAsList');
3575
+ await invoke$1('Problems.viewAsList');
3515
3576
  };
3516
3577
  const viewAsTable = async () => {
3517
- await invoke('Problems.viewAsTable');
3578
+ await invoke$1('Problems.viewAsTable');
3518
3579
  };
3519
3580
 
3520
3581
  const Problems = {
@@ -3538,7 +3599,7 @@ const registerCallbackCommand = async commandId => {
3538
3599
  resolve
3539
3600
  } = Promise.withResolvers();
3540
3601
  callbacks[id] = resolve;
3541
- await invoke(`Test.registerTestCommand`, commandId);
3602
+ await invoke$1(`Test.registerTestCommand`, commandId);
3542
3603
  return {
3543
3604
  promise
3544
3605
  };
@@ -3547,45 +3608,45 @@ const registerCallbackCommand = async commandId => {
3547
3608
  const QuickPick$1 = 'QuickPick';
3548
3609
 
3549
3610
  const open$1 = async () => {
3550
- await invoke('Viewlet.openWidget', QuickPick$1, 'everything');
3611
+ await invoke$1('Viewlet.openWidget', QuickPick$1, 'everything');
3551
3612
  };
3552
3613
  const handleInput$2 = async value => {
3553
- await invoke('QuickPick.handleInput', value, 0);
3614
+ await invoke$1('QuickPick.handleInput', value, 0);
3554
3615
  };
3555
3616
  const handleClickAt = async (x, y) => {
3556
- await invoke('QuickPick.handleClickAt', x, y);
3617
+ await invoke$1('QuickPick.handleClickAt', x, y);
3557
3618
  };
3558
3619
  const setValue$1 = async value => {
3559
- await invoke('QuickPick.setValue', value);
3620
+ await invoke$1('QuickPick.setValue', value);
3560
3621
  };
3561
3622
  const focusNext$2 = async () => {
3562
- await invoke('QuickPick.focusNext');
3623
+ await invoke$1('QuickPick.focusNext');
3563
3624
  };
3564
3625
  const focusFirst$2 = async () => {
3565
- await invoke('QuickPick.focusFirst');
3626
+ await invoke$1('QuickPick.focusFirst');
3566
3627
  };
3567
3628
  const focusLast$1 = async () => {
3568
- await invoke('QuickPick.focusLast');
3629
+ await invoke$1('QuickPick.focusLast');
3569
3630
  };
3570
3631
  const focusIndex$2 = async index => {
3571
- await invoke('QuickPick.focusIndex', index);
3632
+ await invoke$1('QuickPick.focusIndex', index);
3572
3633
  };
3573
3634
  const focusPrevious$2 = async () => {
3574
- await invoke('QuickPick.focusPrevious');
3635
+ await invoke$1('QuickPick.focusPrevious');
3575
3636
  };
3576
3637
  const selectItem = async label => {
3577
- await invoke('QuickPick.selectItem', label);
3638
+ await invoke$1('QuickPick.selectItem', label);
3578
3639
  };
3579
3640
  const selectIndex$3 = async index => {
3580
- await invoke('QuickPick.selectIndex', index);
3641
+ await invoke$1('QuickPick.selectIndex', index);
3581
3642
  };
3582
3643
  const selectCurrentIndex = async () => {
3583
- await invoke('QuickPick.selectCurrentIndex');
3644
+ await invoke$1('QuickPick.selectCurrentIndex');
3584
3645
  };
3585
3646
  const executeCommand = async label => {
3586
- await invoke('QuickPick.showCommands');
3587
- await invoke('QuickPick.handleInput', label, 0);
3588
- await invoke('QuickPick.selectItem', label);
3647
+ await invoke$1('QuickPick.showCommands');
3648
+ await invoke$1('QuickPick.handleInput', label, 0);
3649
+ await invoke$1('QuickPick.selectItem', label);
3589
3650
  };
3590
3651
  const selectItem2 = async ({
3591
3652
  callbackCommand,
@@ -3596,7 +3657,7 @@ const selectItem2 = async ({
3596
3657
  } = await registerCallbackCommand(callbackCommand);
3597
3658
 
3598
3659
  // @ts-ignore
3599
- invoke('QuickPick.selectItem', label);
3660
+ invoke$1('QuickPick.selectItem', label);
3600
3661
  await promise;
3601
3662
  };
3602
3663
 
@@ -3618,13 +3679,13 @@ const QuickPick = {
3618
3679
  };
3619
3680
 
3620
3681
  const clear$1 = async () => {
3621
- return invoke('References.clear');
3682
+ return invoke$1('References.clear');
3622
3683
  };
3623
3684
  const collapseAll$1 = async () => {
3624
- return invoke('References.collapseAll');
3685
+ return invoke$1('References.collapseAll');
3625
3686
  };
3626
3687
  const refresh = async () => {
3627
- return invoke('References.refresh');
3688
+ return invoke$1('References.refresh');
3628
3689
  };
3629
3690
 
3630
3691
  const References = {
@@ -3637,31 +3698,31 @@ const show$2 = async () => {
3637
3698
  await open$7('Run And Debug');
3638
3699
  };
3639
3700
  const handleClickSectionBreakPoints = async () => {
3640
- await invoke('Run And Debug.handleClickSectionBreakPoints');
3701
+ await invoke$1('Run And Debug.handleClickSectionBreakPoints');
3641
3702
  };
3642
3703
  const handleClickSectionWatch = async () => {
3643
- await invoke('Run And Debug.handleClickSectionWatch');
3704
+ await invoke$1('Run And Debug.handleClickSectionWatch');
3644
3705
  };
3645
3706
  const addWatchExpression = async expression => {
3646
- await invoke('Run And Debug.addWatchExpression', expression);
3707
+ await invoke$1('Run And Debug.addWatchExpression', expression);
3647
3708
  };
3648
3709
  const handleWatchValueChange = async () => {
3649
- await invoke('Run And Debug.handleWatchValueChange');
3710
+ await invoke$1('Run And Debug.handleWatchValueChange');
3650
3711
  };
3651
3712
  const acceptWatchExpressionEdit = async () => {
3652
- await invoke('Run And Debug.acceptWatchExpressionEdit');
3713
+ await invoke$1('Run And Debug.acceptWatchExpressionEdit');
3653
3714
  };
3654
3715
  const selectIndex$2 = async index => {
3655
- await invoke('Run And Debug.selectIndex', index);
3716
+ await invoke$1('Run And Debug.selectIndex', index);
3656
3717
  };
3657
3718
  const setPauseOnExceptions = async value => {
3658
- await invoke('Run And Debug.setPauseOnExceptions', value);
3719
+ await invoke$1('Run And Debug.setPauseOnExceptions', value);
3659
3720
  };
3660
3721
  const handleRename = async () => {
3661
- await invoke('Run And Debug.handleRename');
3722
+ await invoke$1('Run And Debug.handleRename');
3662
3723
  };
3663
3724
  const handleSpace = async () => {
3664
- await invoke('Run And Debug.handleSpace');
3725
+ await invoke$1('Run And Debug.handleSpace');
3665
3726
  };
3666
3727
 
3667
3728
  const RunAndDebug = {
@@ -3678,115 +3739,115 @@ const RunAndDebug = {
3678
3739
  };
3679
3740
 
3680
3741
  const setValue = async value => {
3681
- await invoke('Search.handleInput', value, Script);
3742
+ await invoke$1('Search.handleInput', value, Script);
3682
3743
  };
3683
3744
  const setReplaceValue = async value => {
3684
- await invoke('Search.handleReplaceInput', value, Script);
3745
+ await invoke$1('Search.handleReplaceInput', value, Script);
3685
3746
  };
3686
3747
  const setExcludeValue = async value => {
3687
- await invoke('Search.handleExcludeInput', value, Script);
3748
+ await invoke$1('Search.handleExcludeInput', value, Script);
3688
3749
  };
3689
3750
  const replaceAll = async () => {
3690
- await invoke('Search.replaceAll');
3751
+ await invoke$1('Search.replaceAll');
3691
3752
  };
3692
3753
  const setIncludeValue = async value => {
3693
- await invoke('Search.handleIncludeInput', value, Script);
3754
+ await invoke$1('Search.handleIncludeInput', value, Script);
3694
3755
  };
3695
3756
  const clearSearchResults = async () => {
3696
- await invoke('Search.clearSearchResults');
3757
+ await invoke$1('Search.clearSearchResults');
3697
3758
  };
3698
3759
  const openDetails = async () => {
3699
- await invoke('Search.openDetails');
3760
+ await invoke$1('Search.openDetails');
3700
3761
  };
3701
3762
  const collapseDetails = async () => {
3702
- await invoke('Search.collapseDetails');
3763
+ await invoke$1('Search.collapseDetails');
3703
3764
  };
3704
3765
  const dismissItem = async () => {
3705
- await invoke('Search.dismissItem');
3766
+ await invoke$1('Search.dismissItem');
3706
3767
  };
3707
3768
  const focusFirst$1 = async () => {
3708
- await invoke('Search.focusFirst');
3769
+ await invoke$1('Search.focusFirst');
3709
3770
  };
3710
3771
  const focusIndex$1 = async index => {
3711
- await invoke('Search.focusIndex', index);
3772
+ await invoke$1('Search.focusIndex', index);
3712
3773
  };
3713
3774
  const selectIndex$1 = async index => {
3714
- await invoke('Search.selectIndex', index);
3775
+ await invoke$1('Search.selectIndex', index);
3715
3776
  };
3716
3777
  const focusNext$1 = async () => {
3717
- await invoke('Search.focusNext');
3778
+ await invoke$1('Search.focusNext');
3718
3779
  };
3719
3780
  const handleWheel = async (deltaMode, deltaY) => {
3720
- await invoke('Search.handleWheel', deltaMode, deltaY);
3781
+ await invoke$1('Search.handleWheel', deltaMode, deltaY);
3721
3782
  };
3722
3783
  const focusNextPage = async () => {
3723
- await invoke('Search.focusPage');
3784
+ await invoke$1('Search.focusPage');
3724
3785
  };
3725
3786
  const focusPreviousPage = async () => {
3726
- await invoke('Search.focusPreviousPage');
3787
+ await invoke$1('Search.focusPreviousPage');
3727
3788
  };
3728
3789
  const focusPrevious$1 = async () => {
3729
- await invoke('Search.focusPrevious');
3790
+ await invoke$1('Search.focusPrevious');
3730
3791
  };
3731
3792
  const toggleSearchDetails = async () => {
3732
- await invoke('Search.toggleSearchDetails');
3793
+ await invoke$1('Search.toggleSearchDetails');
3733
3794
  };
3734
3795
  const toggleMatchCase = async () => {
3735
- await invoke('Search.toggleMatchCase');
3796
+ await invoke$1('Search.toggleMatchCase');
3736
3797
  };
3737
3798
  const toggleMatchWholeWord = async () => {
3738
- await invoke('Search.toggleMatchWholeWord');
3799
+ await invoke$1('Search.toggleMatchWholeWord');
3739
3800
  };
3740
3801
  const togglePreserveCase = async () => {
3741
- await invoke('Search.togglePreserveCase');
3802
+ await invoke$1('Search.togglePreserveCase');
3742
3803
  };
3743
3804
  const toggleUseRegularExpression = async () => {
3744
- await invoke('Search.toggleUseRegularExpression');
3805
+ await invoke$1('Search.toggleUseRegularExpression');
3745
3806
  };
3746
3807
  const toggleReplace = async () => {
3747
- await invoke('Search.toggleReplace');
3808
+ await invoke$1('Search.toggleReplace');
3748
3809
  };
3749
3810
  const open = async () => {
3750
- await invoke('SideBar.openViewlet', 'Search');
3811
+ await invoke$1('SideBar.openViewlet', 'Search');
3751
3812
  };
3752
3813
  const setLimit = async limit => {
3753
- await invoke('Search.setLimit', limit);
3814
+ await invoke$1('Search.setLimit', limit);
3754
3815
  };
3755
3816
  const handleListBlur = async () => {
3756
- await invoke('Search.handleListBlur');
3817
+ await invoke$1('Search.handleListBlur');
3757
3818
  };
3758
3819
  const collapseAll = async () => {
3759
- await invoke('Search.collapseAll');
3820
+ await invoke$1('Search.collapseAll');
3760
3821
  };
3761
3822
  const copy = async () => {
3762
- await invoke('Search.copy');
3823
+ await invoke$1('Search.copy');
3763
3824
  };
3764
3825
  const copyPath = async () => {
3765
- await invoke('Search.copyPath');
3826
+ await invoke$1('Search.copyPath');
3766
3827
  };
3767
3828
  const handleInputCut = async name => {
3768
- await invoke('Search.handleInputCut', name);
3829
+ await invoke$1('Search.handleInputCut', name);
3769
3830
  };
3770
3831
  const handleInputPaste = async name => {
3771
- await invoke('Search.handleInputPaste', name);
3832
+ await invoke$1('Search.handleInputPaste', name);
3772
3833
  };
3773
3834
  const handleInputCopy = async name => {
3774
- await invoke('Search.handleInputCopy', name);
3835
+ await invoke$1('Search.handleInputCopy', name);
3775
3836
  };
3776
3837
  const handleInputSelectionChange = async (name, start, end) => {
3777
- await invoke('Search.handleInputSelectionChange', name, start, end);
3838
+ await invoke$1('Search.handleInputSelectionChange', name, start, end);
3778
3839
  };
3779
3840
  const handleInputContextMenu = async (name, button, x, y) => {
3780
- await invoke('Search.handleInputConextMenu', name, button, x, y);
3841
+ await invoke$1('Search.handleInputConextMenu', name, button, x, y);
3781
3842
  };
3782
3843
  const handleContextMenu$2 = async (button, x, y) => {
3783
- await invoke('Search.handleContextMenu', button, x, y);
3844
+ await invoke$1('Search.handleContextMenu', button, x, y);
3784
3845
  };
3785
3846
  const enableRenderFolderPaths = async () => {
3786
- await invoke('Search.enableRenderFolderPaths');
3847
+ await invoke$1('Search.enableRenderFolderPaths');
3787
3848
  };
3788
3849
  const disableRenderFolderPaths = async () => {
3789
- await invoke('Search.disableRenderFolderPaths');
3850
+ await invoke$1('Search.disableRenderFolderPaths');
3790
3851
  };
3791
3852
 
3792
3853
  const Search = {
@@ -3830,25 +3891,25 @@ const Search = {
3830
3891
  };
3831
3892
 
3832
3893
  const show$1 = async () => {
3833
- return invoke('Main.openUri', 'settings://');
3894
+ return invoke$1('Main.openUri', 'settings://');
3834
3895
  };
3835
3896
  const handleInput$1 = async searchValue => {
3836
- return invoke('Settings.handleInput', searchValue, Script);
3897
+ return invoke$1('Settings.handleInput', searchValue, Script);
3837
3898
  };
3838
3899
  const usePreviousSearchValue = async () => {
3839
- return invoke('Settings.usePreviousSearchValue');
3900
+ return invoke$1('Settings.usePreviousSearchValue');
3840
3901
  };
3841
3902
  const useNextSearchValue = async () => {
3842
- return invoke('Settings.useNextSearchValue');
3903
+ return invoke$1('Settings.useNextSearchValue');
3843
3904
  };
3844
3905
  const clear = async searchValue => {
3845
- return invoke('Settings.clear', searchValue, Script);
3906
+ return invoke$1('Settings.clear', searchValue, Script);
3846
3907
  };
3847
3908
  const clearHistory = async () => {
3848
- return invoke('Settings.clearHistory');
3909
+ return invoke$1('Settings.clearHistory');
3849
3910
  };
3850
3911
  const selectTab = async tabId => {
3851
- return invoke('Settings.handleClickTab', tabId);
3912
+ return invoke$1('Settings.handleClickTab', tabId);
3852
3913
  };
3853
3914
  const selectWorkspace = async () => {
3854
3915
  await selectTab('workspace');
@@ -3863,10 +3924,10 @@ const selectWindow = async () => {
3863
3924
  await selectTab('window');
3864
3925
  };
3865
3926
  const handleScroll = async scrollTop => {
3866
- await invoke('Settings.handleScroll', scrollTop, Script);
3927
+ await invoke$1('Settings.handleScroll', scrollTop, Script);
3867
3928
  };
3868
3929
  const handleClickFilterButton = async (x, y) => {
3869
- await invoke('Settings.handleClickFilterButton', x, y);
3930
+ await invoke$1('Settings.handleClickFilterButton', x, y);
3870
3931
  };
3871
3932
 
3872
3933
  const SettingsView = {
@@ -3886,19 +3947,19 @@ const SettingsView = {
3886
3947
  };
3887
3948
 
3888
3949
  const selectIndex = async index => {
3889
- await invoke('Source Control.selectIndex', index);
3950
+ await invoke$1('Source Control.selectIndex', index);
3890
3951
  };
3891
3952
  const acceptInput = async () => {
3892
- await invoke('Source Control.acceptInput');
3953
+ await invoke$1('Source Control.acceptInput');
3893
3954
  };
3894
3955
  const handleInput = async text => {
3895
- await invoke('Source Control.handleInput', text, Script$1);
3956
+ await invoke$1('Source Control.handleInput', text, Script$1);
3896
3957
  };
3897
3958
  const handleClickSourceControlButtons = async (index, name) => {
3898
- await invoke('Source Control.handleClickSourceControlButtons', index, name);
3959
+ await invoke$1('Source Control.handleClickSourceControlButtons', index, name);
3899
3960
  };
3900
3961
  const handleContextMenu$1 = async (button, x, y) => {
3901
- await invoke('Source Control.handleContextMenu', button, x, y);
3962
+ await invoke$1('Source Control.handleContextMenu', button, x, y);
3902
3963
  };
3903
3964
  const show = async () => {
3904
3965
  await open$7('Source Control');
@@ -3914,7 +3975,7 @@ const SourceControl = {
3914
3975
  };
3915
3976
 
3916
3977
  const update = async () => {
3917
- await invoke('StatusBar.updateStatusBarItems');
3978
+ await invoke$1('StatusBar.updateStatusBarItems');
3918
3979
  };
3919
3980
 
3920
3981
  const StatusBar = {
@@ -3922,61 +3983,61 @@ const StatusBar = {
3922
3983
  };
3923
3984
 
3924
3985
  const closeMenu = async () => {
3925
- await invoke('TitleBar.closeMenu');
3986
+ await invoke$1('TitleBar.closeMenu');
3926
3987
  };
3927
3988
  const focus = async () => {
3928
- await invoke('TitleBar.focus');
3989
+ await invoke$1('TitleBar.focus');
3929
3990
  };
3930
3991
  const focusFirst = async () => {
3931
- await invoke('TitleBar.focusFirst');
3992
+ await invoke$1('TitleBar.focusFirst');
3932
3993
  };
3933
3994
  const setTitleTemplate = async template => {
3934
- await invoke('TitleBar.setTitleTemplate', template);
3995
+ await invoke$1('TitleBar.setTitleTemplate', template);
3935
3996
  };
3936
3997
  const focusIndex = async index => {
3937
- await invoke('TitleBar.focusIndex', index);
3998
+ await invoke$1('TitleBar.focusIndex', index);
3938
3999
  };
3939
4000
  const focusLast = async () => {
3940
- await invoke('TitleBar.focusLast');
4001
+ await invoke$1('TitleBar.focusLast');
3941
4002
  };
3942
4003
  const focusNext = async () => {
3943
- await invoke('TitleBar.focusNext');
4004
+ await invoke$1('TitleBar.focusNext');
3944
4005
  };
3945
4006
  const focusPrevious = async () => {
3946
- await invoke('TitleBar.focusPrevious');
4007
+ await invoke$1('TitleBar.focusPrevious');
3947
4008
  };
3948
4009
  const handleKeyArrowDown = async () => {
3949
- await invoke('TitleBar.handleKeyArrowDown');
4010
+ await invoke$1('TitleBar.handleKeyArrowDown');
3950
4011
  };
3951
4012
  const handleKeyArrowLeft = async () => {
3952
- await invoke('TitleBar.handleKeyArrowLeft');
4013
+ await invoke$1('TitleBar.handleKeyArrowLeft');
3953
4014
  };
3954
4015
  const handleKeyArrowRight = async () => {
3955
- await invoke('TitleBar.handleKeyArrowRight');
4016
+ await invoke$1('TitleBar.handleKeyArrowRight');
3956
4017
  };
3957
4018
  const handleKeyArrowUp = async () => {
3958
- await invoke('TitleBar.handleKeyArrowUp');
4019
+ await invoke$1('TitleBar.handleKeyArrowUp');
3959
4020
  };
3960
4021
  const handleKeyEnd = async () => {
3961
- await invoke('TitleBar.handleKeyEnd');
4022
+ await invoke$1('TitleBar.handleKeyEnd');
3962
4023
  };
3963
4024
  const handleKeyHome = async () => {
3964
- await invoke('TitleBar.handleKeyHome');
4025
+ await invoke$1('TitleBar.handleKeyHome');
3965
4026
  };
3966
4027
  const handleKeySpace = async () => {
3967
- await invoke('TitleBar.handleKeySpace');
4028
+ await invoke$1('TitleBar.handleKeySpace');
3968
4029
  };
3969
4030
  const handleKeyEscape = async () => {
3970
- await invoke('TitleBar.handleKeyEscape');
4031
+ await invoke$1('TitleBar.handleKeyEscape');
3971
4032
  };
3972
4033
  const toggleIndex = async index => {
3973
- await invoke('TitleBar.toggleIndex', index);
4034
+ await invoke$1('TitleBar.toggleIndex', index);
3974
4035
  };
3975
4036
  const toggleMenu = async () => {
3976
- await invoke('TitleBar.toggleMenu');
4037
+ await invoke$1('TitleBar.toggleMenu');
3977
4038
  };
3978
4039
  const handleContextMenu = async (button, x, y) => {
3979
- await invoke('TitleBar.handleContextMenu', button, x, y);
4040
+ await invoke$1('TitleBar.handleContextMenu', button, x, y);
3980
4041
  };
3981
4042
 
3982
4043
  const TitleBarMenuBar = {
@@ -4027,7 +4088,7 @@ const getPortTuple = () => {
4027
4088
 
4028
4089
  // TODO ask webview worker directly
4029
4090
  const getWebViewInfo = async webViewId => {
4030
- const info = await invoke('WebView.getWebViewInfo2', webViewId);
4091
+ const info = await invoke$1('WebView.getWebViewInfo2', webViewId);
4031
4092
  return info;
4032
4093
  };
4033
4094
 
@@ -4091,7 +4152,7 @@ const WebView = {
4091
4152
  };
4092
4153
 
4093
4154
  const setPath = async path => {
4094
- await invoke('Workspace.setPath', path);
4155
+ await invoke$1('Workspace.setPath', path);
4095
4156
  };
4096
4157
  const openTmpDir = async () => {
4097
4158
  const tmpDir = await getTmpDir();
@@ -4105,13 +4166,13 @@ const Workspace = {
4105
4166
  };
4106
4167
 
4107
4168
  const load = async url => {
4108
- await invoke('Audio.load', url);
4169
+ await invoke$1('Audio.load', url);
4109
4170
  };
4110
4171
  const play = async url => {
4111
- await invoke('Audio.play', url);
4172
+ await invoke$1('Audio.play', url);
4112
4173
  };
4113
4174
  const pause = async () => {
4114
- await invoke('Audio.pause');
4175
+ await invoke$1('Audio.pause');
4115
4176
  };
4116
4177
 
4117
4178
  const Audio = {
@@ -4266,7 +4327,7 @@ const executeTest = async (name, fn, globals = {}) => {
4266
4327
  // eslint-disable-next-line no-console
4267
4328
  console.info(`PASS ${name} in ${formattedDuration}`);
4268
4329
  }
4269
- await invoke('TestFrameWork.showOverlay', type, background, text);
4330
+ await invoke$1('TestFrameWork.showOverlay', type, background, text);
4270
4331
  };
4271
4332
 
4272
4333
  const hotReloadEnabled = async () => {
@@ -4316,7 +4377,7 @@ const watchForHotReload = async (platform, href) => {
4316
4377
  }
4317
4378
  const fileUrl = getFileUri(href);
4318
4379
  const callbackCommand = 'FileWatcher.handleEvent';
4319
- await invoke('FileWatcher.watchFile', TestWorker, callbackCommand, fileUrl);
4380
+ await invoke$1('FileWatcher.watchFile', TestWorker, callbackCommand, fileUrl);
4320
4381
  };
4321
4382
 
4322
4383
  // TODO move this into three steps:
@@ -4438,11 +4499,11 @@ const initializeRendererWorker = async () => {
4438
4499
  const rpc = await WebWorkerRpcClient.create({
4439
4500
  commandMap: commandMap
4440
4501
  });
4441
- set$1(rpc);
4502
+ set$2(rpc);
4442
4503
  };
4443
4504
 
4444
4505
  const listen = async () => {
4445
- await Promise.all([initializeRendererWorker(), initializeEditorWorker()]);
4506
+ await Promise.all([initializeRendererWorker(), initializeEditorWorker(), initializeOpenerWorker()]);
4446
4507
  };
4447
4508
 
4448
4509
  const main = async () => {