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