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