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