@lvce-editor/test-worker 10.14.0 → 11.0.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/testWorkerMain.js +914 -907
- package/package.json +1 -1
package/dist/testWorkerMain.js
CHANGED
|
@@ -1,46 +1,3 @@
|
|
|
1
|
-
const Directory = 3;
|
|
2
|
-
|
|
3
|
-
const Script$1 = 2;
|
|
4
|
-
|
|
5
|
-
const Web = 1;
|
|
6
|
-
const Remote = 3;
|
|
7
|
-
|
|
8
|
-
const EditorWorker = 99;
|
|
9
|
-
const RendererWorker = 1;
|
|
10
|
-
const TestWorker = 9001;
|
|
11
|
-
|
|
12
|
-
const rpcs = Object.create(null);
|
|
13
|
-
const set$2 = (id, rpc) => {
|
|
14
|
-
rpcs[id] = rpc;
|
|
15
|
-
};
|
|
16
|
-
const get$2 = id => {
|
|
17
|
-
return rpcs[id];
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const create$4 = rpcId => {
|
|
21
|
-
return {
|
|
22
|
-
async dispose() {
|
|
23
|
-
const rpc = get$2(rpcId);
|
|
24
|
-
await rpc.dispose();
|
|
25
|
-
},
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
invoke(method, ...params) {
|
|
28
|
-
const rpc = get$2(rpcId);
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
return rpc.invoke(method, ...params);
|
|
31
|
-
},
|
|
32
|
-
// @ts-ignore
|
|
33
|
-
invokeAndTransfer(method, ...params) {
|
|
34
|
-
const rpc = get$2(rpcId);
|
|
35
|
-
// @ts-ignore
|
|
36
|
-
return rpc.invokeAndTransfer(method, ...params);
|
|
37
|
-
},
|
|
38
|
-
set(rpc) {
|
|
39
|
-
set$2(rpcId, rpc);
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
|
|
44
1
|
const normalizeLine = line => {
|
|
45
2
|
if (line.startsWith('Error: ')) {
|
|
46
3
|
return line.slice('Error: '.length);
|
|
@@ -499,7 +456,7 @@ const getFirstEvent = (eventEmitter, eventMap) => {
|
|
|
499
456
|
return promise;
|
|
500
457
|
};
|
|
501
458
|
const Message$1 = 3;
|
|
502
|
-
const create$5
|
|
459
|
+
const create$5 = async ({
|
|
503
460
|
isMessagePortOpen,
|
|
504
461
|
messagePort
|
|
505
462
|
}) => {
|
|
@@ -550,14 +507,14 @@ const wrap$5 = messagePort => {
|
|
|
550
507
|
};
|
|
551
508
|
const IpcParentWithMessagePort$1 = {
|
|
552
509
|
__proto__: null,
|
|
553
|
-
create: create$5
|
|
510
|
+
create: create$5,
|
|
554
511
|
signal: signal$1,
|
|
555
512
|
wrap: wrap$5
|
|
556
513
|
};
|
|
557
514
|
|
|
558
515
|
const Two$1 = '2.0';
|
|
559
516
|
const callbacks$1 = Object.create(null);
|
|
560
|
-
const get$
|
|
517
|
+
const get$2 = id => {
|
|
561
518
|
return callbacks$1[id];
|
|
562
519
|
};
|
|
563
520
|
const remove$1 = id => {
|
|
@@ -706,7 +663,7 @@ const warn = (...args) => {
|
|
|
706
663
|
console.warn(...args);
|
|
707
664
|
};
|
|
708
665
|
const resolve$1 = (id, response) => {
|
|
709
|
-
const fn = get$
|
|
666
|
+
const fn = get$2(id);
|
|
710
667
|
if (!fn) {
|
|
711
668
|
console.log(response);
|
|
712
669
|
warn(`callback ${id} may already be disposed`);
|
|
@@ -756,7 +713,7 @@ const getErrorProperty = (error, prettyError) => {
|
|
|
756
713
|
}
|
|
757
714
|
};
|
|
758
715
|
};
|
|
759
|
-
const create$1 = (id, error) => {
|
|
716
|
+
const create$1$2 = (id, error) => {
|
|
760
717
|
return {
|
|
761
718
|
jsonrpc: Two$1,
|
|
762
719
|
id,
|
|
@@ -767,7 +724,7 @@ const getErrorResponse = (id, error, preparePrettyError, logError) => {
|
|
|
767
724
|
const prettyError = preparePrettyError(error);
|
|
768
725
|
logError(error, prettyError);
|
|
769
726
|
const errorProperty = getErrorProperty(error, prettyError);
|
|
770
|
-
return create$1(id, errorProperty);
|
|
727
|
+
return create$1$2(id, errorProperty);
|
|
771
728
|
};
|
|
772
729
|
const create$3 = (message, result) => {
|
|
773
730
|
return {
|
|
@@ -892,14 +849,14 @@ const execute$2 = (command, ...args) => {
|
|
|
892
849
|
};
|
|
893
850
|
|
|
894
851
|
const Two = '2.0';
|
|
895
|
-
const create$
|
|
852
|
+
const create$s = (method, params) => {
|
|
896
853
|
return {
|
|
897
854
|
jsonrpc: Two,
|
|
898
855
|
method,
|
|
899
856
|
params
|
|
900
857
|
};
|
|
901
858
|
};
|
|
902
|
-
const create$
|
|
859
|
+
const create$r = (id, method, params) => {
|
|
903
860
|
const message = {
|
|
904
861
|
id,
|
|
905
862
|
jsonrpc: Two,
|
|
@@ -909,14 +866,14 @@ const create$o = (id, method, params) => {
|
|
|
909
866
|
return message;
|
|
910
867
|
};
|
|
911
868
|
let id = 0;
|
|
912
|
-
const create$
|
|
869
|
+
const create$q = () => {
|
|
913
870
|
return ++id;
|
|
914
871
|
};
|
|
915
872
|
|
|
916
873
|
/* eslint-disable n/no-unsupported-features/es-syntax */
|
|
917
874
|
|
|
918
875
|
const registerPromise = map => {
|
|
919
|
-
const id = create$
|
|
876
|
+
const id = create$q();
|
|
920
877
|
const {
|
|
921
878
|
promise,
|
|
922
879
|
resolve
|
|
@@ -934,7 +891,7 @@ const invokeHelper = async (callbacks, ipc, method, params, useSendAndTransfer)
|
|
|
934
891
|
id,
|
|
935
892
|
promise
|
|
936
893
|
} = registerPromise(callbacks);
|
|
937
|
-
const message = create$
|
|
894
|
+
const message = create$r(id, method, params);
|
|
938
895
|
if (useSendAndTransfer && ipc.sendAndTransfer) {
|
|
939
896
|
ipc.sendAndTransfer(message);
|
|
940
897
|
} else {
|
|
@@ -970,7 +927,7 @@ const createRpc = ipc => {
|
|
|
970
927
|
* @deprecated
|
|
971
928
|
*/
|
|
972
929
|
send(method, ...params) {
|
|
973
|
-
const message = create$
|
|
930
|
+
const message = create$s(method, params);
|
|
974
931
|
ipc.send(message);
|
|
975
932
|
}
|
|
976
933
|
};
|
|
@@ -1006,7 +963,54 @@ const listen$1 = async (module, options) => {
|
|
|
1006
963
|
const ipc = module.wrap(rawIpc);
|
|
1007
964
|
return ipc;
|
|
1008
965
|
};
|
|
1009
|
-
|
|
966
|
+
|
|
967
|
+
/* eslint-disable @typescript-eslint/no-misused-promises */
|
|
968
|
+
|
|
969
|
+
const createSharedLazyRpc = factory => {
|
|
970
|
+
let rpcPromise;
|
|
971
|
+
const getOrCreate = () => {
|
|
972
|
+
if (!rpcPromise) {
|
|
973
|
+
rpcPromise = factory();
|
|
974
|
+
}
|
|
975
|
+
return rpcPromise;
|
|
976
|
+
};
|
|
977
|
+
return {
|
|
978
|
+
async dispose() {
|
|
979
|
+
const rpc = await getOrCreate();
|
|
980
|
+
await rpc.dispose();
|
|
981
|
+
},
|
|
982
|
+
async invoke(method, ...params) {
|
|
983
|
+
const rpc = await getOrCreate();
|
|
984
|
+
return rpc.invoke(method, ...params);
|
|
985
|
+
},
|
|
986
|
+
async invokeAndTransfer(method, ...params) {
|
|
987
|
+
const rpc = await getOrCreate();
|
|
988
|
+
return rpc.invokeAndTransfer(method, ...params);
|
|
989
|
+
},
|
|
990
|
+
async send(method, ...params) {
|
|
991
|
+
const rpc = await getOrCreate();
|
|
992
|
+
rpc.send(method, ...params);
|
|
993
|
+
}
|
|
994
|
+
};
|
|
995
|
+
};
|
|
996
|
+
const create$i = async ({
|
|
997
|
+
commandMap,
|
|
998
|
+
isMessagePortOpen,
|
|
999
|
+
send
|
|
1000
|
+
}) => {
|
|
1001
|
+
return createSharedLazyRpc(() => {
|
|
1002
|
+
return create$2({
|
|
1003
|
+
commandMap,
|
|
1004
|
+
isMessagePortOpen,
|
|
1005
|
+
send
|
|
1006
|
+
});
|
|
1007
|
+
});
|
|
1008
|
+
};
|
|
1009
|
+
const LazyTransferMessagePortRpcParent = {
|
|
1010
|
+
__proto__: null,
|
|
1011
|
+
create: create$i
|
|
1012
|
+
};
|
|
1013
|
+
const create$d = async ({
|
|
1010
1014
|
commandMap,
|
|
1011
1015
|
isMessagePortOpen,
|
|
1012
1016
|
messagePort
|
|
@@ -1024,9 +1028,9 @@ const create$g = async ({
|
|
|
1024
1028
|
};
|
|
1025
1029
|
const MessagePortRpcParent = {
|
|
1026
1030
|
__proto__: null,
|
|
1027
|
-
create: create$
|
|
1031
|
+
create: create$d
|
|
1028
1032
|
};
|
|
1029
|
-
const create$
|
|
1033
|
+
const create$4 = async ({
|
|
1030
1034
|
commandMap,
|
|
1031
1035
|
isMessagePortOpen = true,
|
|
1032
1036
|
messagePort
|
|
@@ -1043,7 +1047,7 @@ const create$7 = async ({
|
|
|
1043
1047
|
messagePort.start();
|
|
1044
1048
|
return rpc;
|
|
1045
1049
|
};
|
|
1046
|
-
const create$
|
|
1050
|
+
const create$2 = async ({
|
|
1047
1051
|
commandMap,
|
|
1048
1052
|
isMessagePortOpen,
|
|
1049
1053
|
send
|
|
@@ -1053,17 +1057,13 @@ const create$5 = async ({
|
|
|
1053
1057
|
port2
|
|
1054
1058
|
} = new MessageChannel();
|
|
1055
1059
|
await send(port1);
|
|
1056
|
-
return create$
|
|
1060
|
+
return create$4({
|
|
1057
1061
|
commandMap,
|
|
1058
1062
|
isMessagePortOpen,
|
|
1059
1063
|
messagePort: port2
|
|
1060
1064
|
});
|
|
1061
1065
|
};
|
|
1062
|
-
const
|
|
1063
|
-
__proto__: null,
|
|
1064
|
-
create: create$5
|
|
1065
|
-
};
|
|
1066
|
-
const create$2 = async ({
|
|
1066
|
+
const create$1$1 = async ({
|
|
1067
1067
|
commandMap
|
|
1068
1068
|
}) => {
|
|
1069
1069
|
// TODO create a commandMap per rpc instance
|
|
@@ -1075,73 +1075,80 @@ const create$2 = async ({
|
|
|
1075
1075
|
};
|
|
1076
1076
|
const WebWorkerRpcClient = {
|
|
1077
1077
|
__proto__: null,
|
|
1078
|
-
create: create$
|
|
1078
|
+
create: create$1$1
|
|
1079
1079
|
};
|
|
1080
1080
|
|
|
1081
|
-
const
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
const
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1081
|
+
const Directory = 3;
|
|
1082
|
+
|
|
1083
|
+
const Script$1 = 2;
|
|
1084
|
+
|
|
1085
|
+
const Web = 1;
|
|
1086
|
+
const Remote = 3;
|
|
1087
|
+
|
|
1088
|
+
const EditorWorker = 99;
|
|
1089
|
+
const RendererWorker = 1;
|
|
1090
|
+
const TestWorker = 9001;
|
|
1091
|
+
|
|
1092
|
+
const rpcs = Object.create(null);
|
|
1093
|
+
const set$3 = (id, rpc) => {
|
|
1094
|
+
rpcs[id] = rpc;
|
|
1090
1095
|
};
|
|
1091
|
-
const
|
|
1092
|
-
return
|
|
1096
|
+
const get$1 = id => {
|
|
1097
|
+
return rpcs[id];
|
|
1093
1098
|
};
|
|
1094
1099
|
|
|
1095
|
-
const
|
|
1096
|
-
let rpcPromise;
|
|
1097
|
-
let factory;
|
|
1098
|
-
const createRpc = async () => {
|
|
1099
|
-
const rpc = await factory();
|
|
1100
|
-
set$2(rpcId, rpc);
|
|
1101
|
-
};
|
|
1102
|
-
const ensureRpc = async () => {
|
|
1103
|
-
if (!rpcPromise) {
|
|
1104
|
-
rpcPromise = createRpc();
|
|
1105
|
-
}
|
|
1106
|
-
await rpcPromise;
|
|
1107
|
-
};
|
|
1100
|
+
const create$1 = rpcId => {
|
|
1108
1101
|
return {
|
|
1109
|
-
async
|
|
1110
|
-
|
|
1111
|
-
|
|
1102
|
+
async dispose() {
|
|
1103
|
+
const rpc = get$1(rpcId);
|
|
1104
|
+
await rpc.dispose();
|
|
1105
|
+
},
|
|
1106
|
+
// @ts-ignore
|
|
1107
|
+
invoke(method, ...params) {
|
|
1108
|
+
const rpc = get$1(rpcId);
|
|
1109
|
+
// @ts-ignore
|
|
1112
1110
|
return rpc.invoke(method, ...params);
|
|
1113
1111
|
},
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
const rpc = get$
|
|
1112
|
+
// @ts-ignore
|
|
1113
|
+
invokeAndTransfer(method, ...params) {
|
|
1114
|
+
const rpc = get$1(rpcId);
|
|
1115
|
+
// @ts-ignore
|
|
1117
1116
|
return rpc.invokeAndTransfer(method, ...params);
|
|
1118
1117
|
},
|
|
1119
|
-
|
|
1120
|
-
|
|
1118
|
+
set(rpc) {
|
|
1119
|
+
set$3(rpcId, rpc);
|
|
1121
1120
|
}
|
|
1122
1121
|
};
|
|
1123
1122
|
};
|
|
1124
1123
|
|
|
1125
|
-
const
|
|
1124
|
+
const {
|
|
1125
|
+
invoke: invoke$1,
|
|
1126
|
+
set: set$2
|
|
1127
|
+
} = create$1(EditorWorker);
|
|
1128
|
+
|
|
1126
1129
|
const {
|
|
1127
1130
|
invoke,
|
|
1128
|
-
|
|
1129
|
-
|
|
1131
|
+
invokeAndTransfer,
|
|
1132
|
+
set: set$1
|
|
1133
|
+
} = create$1(RendererWorker);
|
|
1134
|
+
const sendMessagePortToEditorWorker = async (port, rpcId) => {
|
|
1135
|
+
const command = 'HandleMessagePort.handleMessagePort';
|
|
1136
|
+
// @ts-ignore
|
|
1137
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToEditorWorker', port, command, rpcId);
|
|
1138
|
+
};
|
|
1139
|
+
const getPreference = async key => {
|
|
1140
|
+
return await invoke('Preferences.get', key);
|
|
1141
|
+
};
|
|
1130
1142
|
|
|
1131
1143
|
const send = async port => {
|
|
1132
1144
|
await sendMessagePortToEditorWorker(port, TestWorker);
|
|
1133
1145
|
};
|
|
1134
|
-
const
|
|
1135
|
-
const rpc = await
|
|
1146
|
+
const initializeEditorWorker = async () => {
|
|
1147
|
+
const rpc = await LazyTransferMessagePortRpcParent.create({
|
|
1136
1148
|
commandMap: {},
|
|
1137
1149
|
send
|
|
1138
1150
|
});
|
|
1139
|
-
|
|
1140
|
-
};
|
|
1141
|
-
|
|
1142
|
-
const initializeEditorWorker = async () => {
|
|
1143
|
-
// TODO use lazyrpc
|
|
1144
|
-
setFactory(launchEditorWorkerRpc);
|
|
1151
|
+
set$2(rpc);
|
|
1145
1152
|
};
|
|
1146
1153
|
|
|
1147
1154
|
/* eslint-disable no-console */
|
|
@@ -1177,7 +1184,7 @@ const getLocatorInvoke = locator => {
|
|
|
1177
1184
|
return module.invoke;
|
|
1178
1185
|
}
|
|
1179
1186
|
// @ts-ignore
|
|
1180
|
-
return invoke
|
|
1187
|
+
return invoke;
|
|
1181
1188
|
};
|
|
1182
1189
|
|
|
1183
1190
|
const locatorInvoke = async (locator, method, ...params) => {
|
|
@@ -1468,8 +1475,8 @@ class Expect {
|
|
|
1468
1475
|
}
|
|
1469
1476
|
|
|
1470
1477
|
const Expect$1 = {
|
|
1471
|
-
|
|
1472
|
-
|
|
1478
|
+
__proto__: null,
|
|
1479
|
+
expect: expect$1
|
|
1473
1480
|
};
|
|
1474
1481
|
|
|
1475
1482
|
const nameAnonymousFunction = (fn, name) => {
|
|
@@ -1593,92 +1600,92 @@ test.skip = async id => {
|
|
|
1593
1600
|
const background = 'yellow';
|
|
1594
1601
|
const text = `test skipped ${id}`;
|
|
1595
1602
|
// @ts-ignore
|
|
1596
|
-
await invoke
|
|
1603
|
+
await invoke('TestFrameWork.showOverlay', state, background, text);
|
|
1597
1604
|
};
|
|
1598
1605
|
const {
|
|
1599
1606
|
expect
|
|
1600
1607
|
} = Expect$1;
|
|
1601
1608
|
|
|
1602
1609
|
const show$6 = async () => {
|
|
1603
|
-
return invoke
|
|
1610
|
+
return invoke('About.showAbout');
|
|
1604
1611
|
};
|
|
1605
1612
|
const handleClickOk = async () => {
|
|
1606
|
-
return invoke
|
|
1613
|
+
return invoke('About.handleClickOk');
|
|
1607
1614
|
};
|
|
1608
1615
|
const handleClickClose = async () => {
|
|
1609
|
-
return invoke
|
|
1616
|
+
return invoke('About.handleClickClose');
|
|
1610
1617
|
};
|
|
1611
1618
|
const handleClickCopy = async () => {
|
|
1612
|
-
return invoke
|
|
1619
|
+
return invoke('About.handleClickCopy');
|
|
1613
1620
|
};
|
|
1614
1621
|
const focusNext$9 = async () => {
|
|
1615
|
-
return invoke
|
|
1622
|
+
return invoke('About.focusNext');
|
|
1616
1623
|
};
|
|
1617
1624
|
const focusPrevious$8 = async () => {
|
|
1618
|
-
return invoke
|
|
1625
|
+
return invoke('About.focusPrevious');
|
|
1619
1626
|
};
|
|
1620
1627
|
|
|
1621
1628
|
const About = {
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
+
__proto__: null,
|
|
1630
|
+
focusNext: focusNext$9,
|
|
1631
|
+
focusPrevious: focusPrevious$8,
|
|
1632
|
+
handleClickClose,
|
|
1633
|
+
handleClickCopy,
|
|
1634
|
+
handleClickOk,
|
|
1635
|
+
show: show$6
|
|
1629
1636
|
};
|
|
1630
1637
|
|
|
1631
1638
|
const focus$2 = async () => {
|
|
1632
|
-
await invoke
|
|
1639
|
+
await invoke('ActivityBar.focus');
|
|
1633
1640
|
};
|
|
1634
1641
|
const focusFirst$7 = async () => {
|
|
1635
|
-
await invoke
|
|
1642
|
+
await invoke('ActivityBar.focusFirst');
|
|
1636
1643
|
};
|
|
1637
1644
|
const focusLast$6 = async () => {
|
|
1638
|
-
await invoke
|
|
1645
|
+
await invoke('ActivityBar.focusLast');
|
|
1639
1646
|
};
|
|
1640
1647
|
const focusNext$8 = async () => {
|
|
1641
|
-
await invoke
|
|
1648
|
+
await invoke('ActivityBar.focusNext');
|
|
1642
1649
|
};
|
|
1643
1650
|
const focusPrevious$7 = async () => {
|
|
1644
|
-
await invoke
|
|
1651
|
+
await invoke('ActivityBar.focusPrevious');
|
|
1645
1652
|
};
|
|
1646
1653
|
const handleClick$3 = async index => {
|
|
1647
|
-
await invoke
|
|
1654
|
+
await invoke('ActivityBar.handleClick', index);
|
|
1648
1655
|
};
|
|
1649
1656
|
const handleContextMenu$5 = async () => {
|
|
1650
|
-
await invoke
|
|
1657
|
+
await invoke('ActivityBar.handleContextMenu');
|
|
1651
1658
|
};
|
|
1652
1659
|
const selectCurrent = async () => {
|
|
1653
|
-
await invoke
|
|
1660
|
+
await invoke('ActivityBar.selectCurrent');
|
|
1654
1661
|
};
|
|
1655
1662
|
|
|
1656
1663
|
const ActivityBar = {
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1664
|
+
__proto__: null,
|
|
1665
|
+
focus: focus$2,
|
|
1666
|
+
focusFirst: focusFirst$7,
|
|
1667
|
+
focusLast: focusLast$6,
|
|
1668
|
+
focusNext: focusNext$8,
|
|
1669
|
+
focusPrevious: focusPrevious$7,
|
|
1670
|
+
handleClick: handleClick$3,
|
|
1671
|
+
handleContextMenu: handleContextMenu$5,
|
|
1672
|
+
selectCurrent
|
|
1666
1673
|
};
|
|
1667
1674
|
|
|
1668
1675
|
const readNativeFiles = async () => {
|
|
1669
|
-
await invoke
|
|
1676
|
+
await invoke('ClipBoard.readNativeFiles');
|
|
1670
1677
|
};
|
|
1671
1678
|
const writeNativeFiles = async uris => {
|
|
1672
1679
|
// @ts-ignore
|
|
1673
|
-
await invoke
|
|
1680
|
+
await invoke('ClipBoard.writeNativeFiles', uris);
|
|
1674
1681
|
};
|
|
1675
1682
|
const enableMemoryClipBoard = async () => {
|
|
1676
1683
|
// @ts-ignore
|
|
1677
|
-
await invoke
|
|
1684
|
+
await invoke('ClipBoard.enableMemoryClipBoard');
|
|
1678
1685
|
};
|
|
1679
1686
|
const disableMemoryClipBoard = async () => {
|
|
1680
1687
|
// @ts-ignore
|
|
1681
|
-
await invoke
|
|
1688
|
+
await invoke('ClipBoard.disableMemoryClipBoard');
|
|
1682
1689
|
};
|
|
1683
1690
|
const matchesExpectedText = (actualText, expectedText) => {
|
|
1684
1691
|
if (typeof expectedText === 'string') {
|
|
@@ -1688,97 +1695,97 @@ const matchesExpectedText = (actualText, expectedText) => {
|
|
|
1688
1695
|
};
|
|
1689
1696
|
const shouldHaveText$1 = async expectedText => {
|
|
1690
1697
|
// @ts-ignore
|
|
1691
|
-
const actualText = await invoke
|
|
1698
|
+
const actualText = await invoke('ClipBoard.readMemoryText');
|
|
1692
1699
|
if (!matchesExpectedText(actualText, expectedText)) {
|
|
1693
1700
|
throw new AssertionError(`expected clipboard to have text "${expectedText}" but was "${actualText}"`);
|
|
1694
1701
|
}
|
|
1695
1702
|
};
|
|
1696
1703
|
const writeText = async text => {
|
|
1697
1704
|
// @ts-ignore
|
|
1698
|
-
await invoke
|
|
1705
|
+
await invoke('ClipBoard.writeText', text);
|
|
1699
1706
|
};
|
|
1700
1707
|
|
|
1701
1708
|
const ClipBoard = {
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
+
__proto__: null,
|
|
1710
|
+
disableMemoryClipBoard,
|
|
1711
|
+
enableMemoryClipBoard,
|
|
1712
|
+
readNativeFiles,
|
|
1713
|
+
shouldHaveText: shouldHaveText$1,
|
|
1714
|
+
writeNativeFiles,
|
|
1715
|
+
writeText
|
|
1709
1716
|
};
|
|
1710
1717
|
|
|
1711
1718
|
const setRelativeX = async x => {
|
|
1712
|
-
await invoke
|
|
1719
|
+
await invoke('ColorPicker.setRelativeX', x);
|
|
1713
1720
|
};
|
|
1714
1721
|
|
|
1715
1722
|
const ColorPicker = {
|
|
1716
|
-
|
|
1717
|
-
|
|
1723
|
+
__proto__: null,
|
|
1724
|
+
setRelativeX
|
|
1718
1725
|
};
|
|
1719
1726
|
|
|
1720
1727
|
const execute$1 = async (id, ...args) => {
|
|
1721
1728
|
// @ts-ignore
|
|
1722
|
-
return invoke
|
|
1729
|
+
return invoke(id, ...args);
|
|
1723
1730
|
};
|
|
1724
1731
|
|
|
1725
1732
|
const Command = {
|
|
1726
|
-
|
|
1727
|
-
|
|
1733
|
+
__proto__: null,
|
|
1734
|
+
execute: execute$1
|
|
1728
1735
|
};
|
|
1729
1736
|
|
|
1730
1737
|
const selectItem$1 = async text => {
|
|
1731
|
-
await invoke
|
|
1738
|
+
await invoke('Menu.selectItem', text);
|
|
1732
1739
|
};
|
|
1733
1740
|
|
|
1734
1741
|
const ContextMenu = {
|
|
1735
|
-
|
|
1736
|
-
|
|
1742
|
+
__proto__: null,
|
|
1743
|
+
selectItem: selectItem$1
|
|
1737
1744
|
};
|
|
1738
1745
|
|
|
1739
1746
|
const openIframeInspector = async () => {
|
|
1740
1747
|
// @ts-ignore
|
|
1741
|
-
return invoke
|
|
1748
|
+
return invoke('Developer.openIframeInspector');
|
|
1742
1749
|
};
|
|
1743
1750
|
const openCacheFolder = async () => {
|
|
1744
1751
|
// @ts-ignore
|
|
1745
|
-
return invoke
|
|
1752
|
+
return invoke('Developer.openCacheFolder');
|
|
1746
1753
|
};
|
|
1747
1754
|
const openConfigFolder = async () => {
|
|
1748
1755
|
// @ts-ignore
|
|
1749
|
-
return invoke
|
|
1756
|
+
return invoke('Developer.openConfigFolder');
|
|
1750
1757
|
};
|
|
1751
1758
|
const openLogsFolder = async () => {
|
|
1752
1759
|
// @ts-ignore
|
|
1753
|
-
return invoke
|
|
1760
|
+
return invoke('Developer.openLogsFolder');
|
|
1754
1761
|
};
|
|
1755
1762
|
const openProcessExplorer = async () => {
|
|
1756
1763
|
// @ts-ignore
|
|
1757
|
-
return invoke
|
|
1764
|
+
return invoke('Developer.openProcessExplorer');
|
|
1758
1765
|
};
|
|
1759
1766
|
const reloadColorTheme = async () => {
|
|
1760
1767
|
// @ts-ignore
|
|
1761
|
-
return invoke
|
|
1768
|
+
return invoke('Developer.reloadColorTheme');
|
|
1762
1769
|
};
|
|
1763
1770
|
const reloadIconTheme = async () => {
|
|
1764
1771
|
// @ts-ignore
|
|
1765
|
-
return invoke
|
|
1772
|
+
return invoke('Developer.reloadIconTheme');
|
|
1766
1773
|
};
|
|
1767
1774
|
const toggleDeveloperTools = async () => {
|
|
1768
1775
|
// @ts-ignore
|
|
1769
|
-
return invoke
|
|
1776
|
+
return invoke('Developer.toggleDeveloperTools');
|
|
1770
1777
|
};
|
|
1771
1778
|
|
|
1772
1779
|
const Developer = {
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1780
|
+
__proto__: null,
|
|
1781
|
+
openCacheFolder,
|
|
1782
|
+
openConfigFolder,
|
|
1783
|
+
openIframeInspector,
|
|
1784
|
+
openLogsFolder,
|
|
1785
|
+
openProcessExplorer,
|
|
1786
|
+
reloadColorTheme,
|
|
1787
|
+
reloadIconTheme,
|
|
1788
|
+
toggleDeveloperTools
|
|
1782
1789
|
};
|
|
1783
1790
|
|
|
1784
1791
|
const createId = () => {
|
|
@@ -1798,28 +1805,28 @@ const executeMock$1 = (id, ...args) => {
|
|
|
1798
1805
|
|
|
1799
1806
|
const showSaveFilePicker = async () => {
|
|
1800
1807
|
// @ts-ignore
|
|
1801
|
-
await invoke
|
|
1808
|
+
await invoke('FilePicker.showSaveFilePicker');
|
|
1802
1809
|
};
|
|
1803
1810
|
const mockSaveFilePicker = async fn => {
|
|
1804
1811
|
const id = registerMock(fn);
|
|
1805
1812
|
// @ts-ignore
|
|
1806
|
-
await invoke
|
|
1813
|
+
await invoke('FilePicker.mockSaveFilePicker', id);
|
|
1807
1814
|
};
|
|
1808
1815
|
const mockConfirm = async fn => {
|
|
1809
1816
|
const id = registerMock(fn);
|
|
1810
1817
|
// @ts-ignore
|
|
1811
|
-
await invoke
|
|
1818
|
+
await invoke('ConfirmPrompt.mock', id);
|
|
1812
1819
|
};
|
|
1813
1820
|
const executeMock = (id, ...args) => {
|
|
1814
1821
|
return executeMock$1(id, ...args);
|
|
1815
1822
|
};
|
|
1816
1823
|
|
|
1817
1824
|
const Dialog = {
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1825
|
+
__proto__: null,
|
|
1826
|
+
executeMock,
|
|
1827
|
+
mockConfirm,
|
|
1828
|
+
mockSaveFilePicker,
|
|
1829
|
+
showSaveFilePicker
|
|
1823
1830
|
};
|
|
1824
1831
|
|
|
1825
1832
|
const isDiagnosticEqual = (actual, expected) => {
|
|
@@ -1851,7 +1858,7 @@ const areSelectionsEqual = (a, b) => {
|
|
|
1851
1858
|
};
|
|
1852
1859
|
|
|
1853
1860
|
const getEditorKey = async () => {
|
|
1854
|
-
const keys = await invoke('Editor.getKeys');
|
|
1861
|
+
const keys = await invoke$1('Editor.getKeys');
|
|
1855
1862
|
if (keys.length === 0) {
|
|
1856
1863
|
throw new Error(`no editor found`);
|
|
1857
1864
|
}
|
|
@@ -1864,234 +1871,234 @@ const Script = 2;
|
|
|
1864
1871
|
|
|
1865
1872
|
const update$1 = settings => {
|
|
1866
1873
|
// @ts-ignore
|
|
1867
|
-
return invoke
|
|
1874
|
+
return invoke('Preferences.update', settings);
|
|
1868
1875
|
};
|
|
1869
1876
|
const enableDiagnostics$1 = () => {
|
|
1870
1877
|
// @ts-ignore
|
|
1871
|
-
return invoke
|
|
1878
|
+
return invoke('Preferences.update', {
|
|
1872
1879
|
'editor.diagnostics': true
|
|
1873
1880
|
});
|
|
1874
1881
|
};
|
|
1875
1882
|
const disableDiagnostics$1 = () => {
|
|
1876
1883
|
// @ts-ignore
|
|
1877
|
-
return invoke
|
|
1884
|
+
return invoke('Preferences.update', {
|
|
1878
1885
|
'editor.diagnostics': false
|
|
1879
1886
|
});
|
|
1880
1887
|
};
|
|
1881
1888
|
|
|
1882
1889
|
const Settings = {
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1890
|
+
__proto__: null,
|
|
1891
|
+
disableDiagnostics: disableDiagnostics$1,
|
|
1892
|
+
enableDiagnostics: enableDiagnostics$1,
|
|
1893
|
+
update: update$1
|
|
1887
1894
|
};
|
|
1888
1895
|
|
|
1889
1896
|
const setCursor = async (rowIndex, columnIndex) => {
|
|
1890
|
-
await invoke
|
|
1897
|
+
await invoke('Editor.cursorSet', rowIndex, columnIndex);
|
|
1891
1898
|
};
|
|
1892
1899
|
const openCompletion = async () => {
|
|
1893
|
-
await invoke
|
|
1900
|
+
await invoke('Editor.openCompletion');
|
|
1894
1901
|
};
|
|
1895
1902
|
const closeCompletion = async () => {
|
|
1896
1903
|
// @ts-ignore
|
|
1897
|
-
await invoke
|
|
1904
|
+
await invoke('EditorCompletion.close');
|
|
1898
1905
|
};
|
|
1899
1906
|
const openEditorContextMenu = async () => {
|
|
1900
|
-
await invoke
|
|
1907
|
+
await invoke('Editor.handleContextMenu', 0, 0);
|
|
1901
1908
|
};
|
|
1902
1909
|
const invokeTabCompletion = async () => {
|
|
1903
|
-
await invoke
|
|
1910
|
+
await invoke('Editor.tabCompletion');
|
|
1904
1911
|
};
|
|
1905
1912
|
const executeTabCompletion = async () => {
|
|
1906
|
-
await invoke
|
|
1913
|
+
await invoke('Editor.tabCompletion');
|
|
1907
1914
|
};
|
|
1908
1915
|
const invokeBraceCompletion = async text => {
|
|
1909
|
-
await invoke
|
|
1916
|
+
await invoke('Editor.braceCompletion', text);
|
|
1910
1917
|
};
|
|
1911
1918
|
const cursorCharacterRight = async () => {
|
|
1912
|
-
await invoke
|
|
1919
|
+
await invoke('Editor.cursorCharacterRight');
|
|
1913
1920
|
};
|
|
1914
1921
|
const cursorCharacterLeft = async () => {
|
|
1915
|
-
await invoke
|
|
1922
|
+
await invoke('Editor.cursorCharacterLeft');
|
|
1916
1923
|
};
|
|
1917
1924
|
const copyLineDown = async () => {
|
|
1918
|
-
await invoke
|
|
1925
|
+
await invoke('Editor.copyLineDown');
|
|
1919
1926
|
};
|
|
1920
1927
|
const cursorDown = async () => {
|
|
1921
|
-
await invoke
|
|
1928
|
+
await invoke('Editor.cursorDown');
|
|
1922
1929
|
};
|
|
1923
1930
|
const cursorUp = async () => {
|
|
1924
|
-
await invoke
|
|
1931
|
+
await invoke('Editor.cursorUp');
|
|
1925
1932
|
};
|
|
1926
1933
|
const cursorWordLeft = async () => {
|
|
1927
|
-
await invoke
|
|
1934
|
+
await invoke('Editor.cursorWordLeft');
|
|
1928
1935
|
};
|
|
1929
1936
|
const cursorWordRight = async () => {
|
|
1930
|
-
await invoke
|
|
1937
|
+
await invoke('Editor.cursorWordRight');
|
|
1931
1938
|
};
|
|
1932
1939
|
const goToDefinition = async () => {
|
|
1933
|
-
await invoke
|
|
1940
|
+
await invoke('Editor.goToDefinition');
|
|
1934
1941
|
};
|
|
1935
1942
|
const openHover = async () => {
|
|
1936
|
-
await invoke
|
|
1943
|
+
await invoke('Editor.showHover2');
|
|
1937
1944
|
};
|
|
1938
1945
|
const goToTypeDefinition = async () => {
|
|
1939
|
-
await invoke
|
|
1946
|
+
await invoke('Editor.goToTypeDefinition');
|
|
1940
1947
|
};
|
|
1941
1948
|
const type = async text => {
|
|
1942
|
-
await invoke
|
|
1949
|
+
await invoke('Editor.type', text);
|
|
1943
1950
|
};
|
|
1944
1951
|
const findAllReferences = async () => {
|
|
1945
1952
|
// @ts-ignore
|
|
1946
|
-
await invoke
|
|
1953
|
+
await invoke('SideBar.show', 'References', /* focus */true);
|
|
1947
1954
|
};
|
|
1948
1955
|
const findAllImplementations = async () => {
|
|
1949
1956
|
// @ts-ignore
|
|
1950
|
-
await invoke
|
|
1957
|
+
await invoke('SideBar.show', 'Implementations', /* focus */true);
|
|
1951
1958
|
};
|
|
1952
1959
|
const setSelections = async selections => {
|
|
1953
|
-
await invoke
|
|
1960
|
+
await invoke('Editor.setSelections', selections);
|
|
1954
1961
|
};
|
|
1955
1962
|
const openFindWidget = async () => {
|
|
1956
|
-
await invoke
|
|
1963
|
+
await invoke('Editor.openFind');
|
|
1957
1964
|
};
|
|
1958
1965
|
const setDeltaY = async deltaY => {
|
|
1959
|
-
await invoke
|
|
1966
|
+
await invoke('Editor.setDeltaY', deltaY);
|
|
1960
1967
|
};
|
|
1961
1968
|
const format = async () => {
|
|
1962
|
-
await invoke
|
|
1969
|
+
await invoke('Editor.format');
|
|
1963
1970
|
};
|
|
1964
1971
|
const insertLineBreak = async () => {
|
|
1965
|
-
await invoke
|
|
1972
|
+
await invoke('Editor.insertLineBreak');
|
|
1966
1973
|
};
|
|
1967
1974
|
const openSourceActions = async () => {
|
|
1968
|
-
await invoke
|
|
1975
|
+
await invoke('Editor.showSourceActions2');
|
|
1969
1976
|
};
|
|
1970
1977
|
const sourceActionsSelectCurrent = async () => {
|
|
1971
|
-
await invoke
|
|
1978
|
+
await invoke('EditorSourceActions.selectCurrent');
|
|
1972
1979
|
};
|
|
1973
1980
|
const openCompletionDetails = async () => {
|
|
1974
|
-
await invoke
|
|
1981
|
+
await invoke('EditorCompletion.openDetails');
|
|
1975
1982
|
};
|
|
1976
1983
|
const closeCompletionDetails = async () => {
|
|
1977
1984
|
// @ts-ignore
|
|
1978
|
-
await invoke
|
|
1985
|
+
await invoke('EditorCompletion.closeDetails');
|
|
1979
1986
|
};
|
|
1980
1987
|
const toggleCompletionDetails = async () => {
|
|
1981
1988
|
// @ts-ignore
|
|
1982
|
-
await invoke
|
|
1989
|
+
await invoke('EditorCompletion.toggleDetails');
|
|
1983
1990
|
};
|
|
1984
1991
|
const organizeImports = async () => {
|
|
1985
|
-
await invoke
|
|
1992
|
+
await invoke('Editor.organizeImports');
|
|
1986
1993
|
};
|
|
1987
1994
|
const addAllMissingImports = async () => {
|
|
1988
|
-
await invoke
|
|
1995
|
+
await invoke('Editor.addAllMissingImports');
|
|
1989
1996
|
};
|
|
1990
1997
|
const sortImports = async () => {
|
|
1991
|
-
await invoke
|
|
1998
|
+
await invoke('Editor.sortImports');
|
|
1992
1999
|
};
|
|
1993
2000
|
const toggleLineComment = async () => {
|
|
1994
|
-
await invoke
|
|
2001
|
+
await invoke('Editor.toggleLineComment');
|
|
1995
2002
|
};
|
|
1996
2003
|
const toggleBlockComment = async () => {
|
|
1997
|
-
await invoke
|
|
2004
|
+
await invoke('Editor.toggleBlockComment');
|
|
1998
2005
|
};
|
|
1999
2006
|
const selectAll$1 = async () => {
|
|
2000
|
-
await invoke
|
|
2007
|
+
await invoke('Editor.toggleBlockComment');
|
|
2001
2008
|
};
|
|
2002
2009
|
const openColorPicker = async () => {
|
|
2003
|
-
await invoke
|
|
2010
|
+
await invoke('Editor.openColorPicker');
|
|
2004
2011
|
};
|
|
2005
2012
|
const openFind = async () => {
|
|
2006
2013
|
// @ts-ignore
|
|
2007
|
-
await invoke
|
|
2014
|
+
await invoke('Editor.openFind2');
|
|
2008
2015
|
};
|
|
2009
2016
|
const deleteAllLeft = async () => {
|
|
2010
|
-
await invoke
|
|
2017
|
+
await invoke('Editor.deleteAllLeft');
|
|
2011
2018
|
};
|
|
2012
2019
|
const deleteAllRight = async () => {
|
|
2013
|
-
await invoke
|
|
2020
|
+
await invoke('Editor.deleteAllRight');
|
|
2014
2021
|
};
|
|
2015
2022
|
const cursorWordPartLeft = async () => {
|
|
2016
|
-
await invoke
|
|
2023
|
+
await invoke('Editor.cursorWordPartLeft');
|
|
2017
2024
|
};
|
|
2018
2025
|
const cursorWordPartRight = async () => {
|
|
2019
|
-
await invoke
|
|
2026
|
+
await invoke('Editor.cursorWordPartRight');
|
|
2020
2027
|
};
|
|
2021
2028
|
const cursorEnd = async () => {
|
|
2022
|
-
await invoke
|
|
2029
|
+
await invoke('Editor.cursorEnd');
|
|
2023
2030
|
};
|
|
2024
2031
|
const cursorHome = async () => {
|
|
2025
|
-
await invoke
|
|
2032
|
+
await invoke('Editor.cursorHome');
|
|
2026
2033
|
};
|
|
2027
2034
|
const copyLineUp = async () => {
|
|
2028
|
-
await invoke
|
|
2035
|
+
await invoke('Editor.copyLineUp');
|
|
2029
2036
|
};
|
|
2030
2037
|
const copy$1 = async () => {
|
|
2031
|
-
await invoke
|
|
2038
|
+
await invoke('Editor.copy');
|
|
2032
2039
|
};
|
|
2033
2040
|
const closeColorPicker = async () => {
|
|
2034
|
-
await invoke
|
|
2041
|
+
await invoke('Editor.closeColorPicker');
|
|
2035
2042
|
};
|
|
2036
2043
|
const openContextMenu$1 = async () => {
|
|
2037
2044
|
const button = 0;
|
|
2038
2045
|
const x = 0;
|
|
2039
2046
|
const y = 0;
|
|
2040
|
-
await invoke
|
|
2047
|
+
await invoke('Editor.contextMenu', button, x, y);
|
|
2041
2048
|
};
|
|
2042
2049
|
const getText = async () => {
|
|
2043
|
-
return invoke
|
|
2050
|
+
return invoke('Editor.getText');
|
|
2044
2051
|
};
|
|
2045
2052
|
const rename$1 = async () => {
|
|
2046
|
-
await invoke
|
|
2053
|
+
await invoke('Editor.rename');
|
|
2047
2054
|
};
|
|
2048
2055
|
const showHover = async () => {
|
|
2049
|
-
await invoke
|
|
2056
|
+
await invoke('Editor.showHover2');
|
|
2050
2057
|
};
|
|
2051
2058
|
const openRename = async () => {
|
|
2052
|
-
await invoke
|
|
2059
|
+
await invoke('Editor.openRename');
|
|
2053
2060
|
};
|
|
2054
2061
|
const rename2 = async newName => {
|
|
2055
2062
|
await openRename();
|
|
2056
2063
|
// @ts-ignore
|
|
2057
|
-
await invoke
|
|
2064
|
+
await invoke('EditorRename.handleInput', newName, Script);
|
|
2058
2065
|
// @ts-ignore
|
|
2059
|
-
await invoke
|
|
2066
|
+
await invoke('EditorRename.accept');
|
|
2060
2067
|
};
|
|
2061
2068
|
const growSelection = async () => {
|
|
2062
2069
|
// @ts-ignore
|
|
2063
|
-
await invoke
|
|
2070
|
+
await invoke('Editor.selectionGrow');
|
|
2064
2071
|
};
|
|
2065
2072
|
const getSelections = async () => {
|
|
2066
2073
|
const key = await getEditorKey();
|
|
2067
2074
|
// @ts-ignore
|
|
2068
|
-
return invoke('Editor.getSelections', key);
|
|
2075
|
+
return invoke$1('Editor.getSelections', key);
|
|
2069
2076
|
};
|
|
2070
2077
|
const shouldHaveText = async expectedText => {
|
|
2071
2078
|
const key = await getEditorKey();
|
|
2072
|
-
const text = await invoke('Editor.getText', key);
|
|
2079
|
+
const text = await invoke$1('Editor.getText', key);
|
|
2073
2080
|
if (text !== expectedText) {
|
|
2074
2081
|
throw new Error(`Expected editor to have text ${expectedText} but was ${text}`);
|
|
2075
2082
|
}
|
|
2076
2083
|
};
|
|
2077
2084
|
const shouldHaveSelections = async expectedSelections => {
|
|
2078
2085
|
const key = await getEditorKey();
|
|
2079
|
-
const selections = await invoke('Editor.getSelections', key);
|
|
2086
|
+
const selections = await invoke$1('Editor.getSelections', key);
|
|
2080
2087
|
if (!areSelectionsEqual(selections, expectedSelections)) {
|
|
2081
2088
|
throw new Error(`Expected editor to have selections ${expectedSelections} but was ${selections}`);
|
|
2082
2089
|
}
|
|
2083
2090
|
};
|
|
2084
2091
|
const undo = async () => {
|
|
2085
2092
|
// @ts-ignore
|
|
2086
|
-
await invoke('Editor.undo');
|
|
2093
|
+
await invoke$1('Editor.undo');
|
|
2087
2094
|
};
|
|
2088
2095
|
const redo = async () => {
|
|
2089
2096
|
// @ts-ignore
|
|
2090
|
-
await invoke('Editor.redo');
|
|
2097
|
+
await invoke$1('Editor.redo');
|
|
2091
2098
|
};
|
|
2092
2099
|
const shouldHaveDiagnostics = async expectedDiagnostics => {
|
|
2093
2100
|
const key = await getEditorKey();
|
|
2094
|
-
const diagnostics = await invoke('Editor.getDiagnostics', key);
|
|
2101
|
+
const diagnostics = await invoke$1('Editor.getDiagnostics', key);
|
|
2095
2102
|
if (!areDiagnosticsEqual(diagnostics, expectedDiagnostics)) {
|
|
2096
2103
|
const stringifiedActual = JSON.stringify(diagnostics);
|
|
2097
2104
|
const stringifiedExpected = JSON.stringify(expectedDiagnostics);
|
|
@@ -2120,370 +2127,370 @@ const disableDiagnostics = async () => {
|
|
|
2120
2127
|
};
|
|
2121
2128
|
|
|
2122
2129
|
const Editor = {
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2130
|
+
__proto__: null,
|
|
2131
|
+
addAllMissingImports,
|
|
2132
|
+
closeColorPicker,
|
|
2133
|
+
closeCompletion,
|
|
2134
|
+
closeCompletionDetails,
|
|
2135
|
+
copy: copy$1,
|
|
2136
|
+
copyLineDown,
|
|
2137
|
+
copyLineUp,
|
|
2138
|
+
cursorCharacterLeft,
|
|
2139
|
+
cursorCharacterRight,
|
|
2140
|
+
cursorDown,
|
|
2141
|
+
cursorEnd,
|
|
2142
|
+
cursorHome,
|
|
2143
|
+
cursorUp,
|
|
2144
|
+
cursorWordLeft,
|
|
2145
|
+
cursorWordPartLeft,
|
|
2146
|
+
cursorWordPartRight,
|
|
2147
|
+
cursorWordRight,
|
|
2148
|
+
deleteAllLeft,
|
|
2149
|
+
deleteAllRight,
|
|
2150
|
+
disableCompletionsOnType,
|
|
2151
|
+
disableDiagnostics,
|
|
2152
|
+
enableCompletionsOnType,
|
|
2153
|
+
enableDiagnostics,
|
|
2154
|
+
executeTabCompletion,
|
|
2155
|
+
findAllImplementations,
|
|
2156
|
+
findAllReferences,
|
|
2157
|
+
format,
|
|
2158
|
+
getSelections,
|
|
2159
|
+
getText,
|
|
2160
|
+
goToDefinition,
|
|
2161
|
+
goToTypeDefinition,
|
|
2162
|
+
growSelection,
|
|
2163
|
+
insertLineBreak,
|
|
2164
|
+
invokeBraceCompletion,
|
|
2165
|
+
invokeTabCompletion,
|
|
2166
|
+
openColorPicker,
|
|
2167
|
+
openCompletion,
|
|
2168
|
+
openCompletionDetails,
|
|
2169
|
+
openContextMenu: openContextMenu$1,
|
|
2170
|
+
openEditorContextMenu,
|
|
2171
|
+
openFind,
|
|
2172
|
+
openFindWidget,
|
|
2173
|
+
openHover,
|
|
2174
|
+
openRename,
|
|
2175
|
+
openSourceActions,
|
|
2176
|
+
organizeImports,
|
|
2177
|
+
redo,
|
|
2178
|
+
rename: rename$1,
|
|
2179
|
+
rename2,
|
|
2180
|
+
selectAll: selectAll$1,
|
|
2181
|
+
setCursor,
|
|
2182
|
+
setDeltaY,
|
|
2183
|
+
setSelections,
|
|
2184
|
+
shouldHaveDiagnostics,
|
|
2185
|
+
shouldHaveSelections,
|
|
2186
|
+
shouldHaveText,
|
|
2187
|
+
showHover,
|
|
2188
|
+
sortImports,
|
|
2189
|
+
sourceActionsSelectCurrent,
|
|
2190
|
+
toggleBlockComment,
|
|
2191
|
+
toggleCompletionDetails,
|
|
2192
|
+
toggleLineComment,
|
|
2193
|
+
type,
|
|
2194
|
+
undo
|
|
2188
2195
|
};
|
|
2189
2196
|
|
|
2190
2197
|
const selectIndex$6 = async index => {
|
|
2191
|
-
await invoke
|
|
2198
|
+
await invoke('EditorCompletion.selectIndex', index);
|
|
2192
2199
|
};
|
|
2193
2200
|
const selectCurrentIndex$2 = async () => {
|
|
2194
|
-
await invoke
|
|
2201
|
+
await invoke('EditorCompletion.selectCurrentIndex');
|
|
2195
2202
|
};
|
|
2196
2203
|
const close$2 = async () => {
|
|
2197
2204
|
// @ts-ignore
|
|
2198
|
-
await invoke
|
|
2205
|
+
await invoke('EditorCompletion.close');
|
|
2199
2206
|
};
|
|
2200
2207
|
const handleWheel$2 = async (deltaMode, deltaY) => {
|
|
2201
2208
|
// @ts-ignore
|
|
2202
|
-
await invoke
|
|
2209
|
+
await invoke('EditorCompletion.handleWheel', deltaMode, deltaY);
|
|
2203
2210
|
};
|
|
2204
2211
|
const handlePointerdown = async (clientX, clientY) => {
|
|
2205
2212
|
// @ts-ignore
|
|
2206
|
-
await invoke
|
|
2213
|
+
await invoke('EditorCompletion.handlePointerdown', clientX, clientY);
|
|
2207
2214
|
};
|
|
2208
2215
|
|
|
2209
2216
|
const EditorCompletion = {
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2217
|
+
__proto__: null,
|
|
2218
|
+
close: close$2,
|
|
2219
|
+
handlePointerdown,
|
|
2220
|
+
handleWheel: handleWheel$2,
|
|
2221
|
+
selectCurrentIndex: selectCurrentIndex$2,
|
|
2222
|
+
selectIndex: selectIndex$6
|
|
2216
2223
|
};
|
|
2217
2224
|
|
|
2218
2225
|
const show$5 = async () => {
|
|
2219
|
-
await invoke
|
|
2226
|
+
await invoke('Editor.showHover2');
|
|
2220
2227
|
};
|
|
2221
2228
|
const close$1 = async () => {
|
|
2222
2229
|
// @ts-ignore
|
|
2223
|
-
await invoke
|
|
2230
|
+
await invoke('EditorHover.close');
|
|
2224
2231
|
};
|
|
2225
2232
|
|
|
2226
2233
|
const EditorHover = {
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2234
|
+
__proto__: null,
|
|
2235
|
+
close: close$1,
|
|
2236
|
+
show: show$5
|
|
2230
2237
|
};
|
|
2231
2238
|
|
|
2232
2239
|
const handleInput$5 = async value => {
|
|
2233
2240
|
// @ts-ignore
|
|
2234
|
-
await invoke
|
|
2241
|
+
await invoke('EditorRename.handleInput', value, Script);
|
|
2235
2242
|
};
|
|
2236
2243
|
const accept = async () => {
|
|
2237
2244
|
// @ts-ignore
|
|
2238
|
-
await invoke
|
|
2245
|
+
await invoke('EditorRename.accept');
|
|
2239
2246
|
};
|
|
2240
2247
|
const cancel = async () => {
|
|
2241
2248
|
// @ts-ignore
|
|
2242
|
-
await invoke
|
|
2249
|
+
await invoke('EditorRename.cancel');
|
|
2243
2250
|
};
|
|
2244
2251
|
|
|
2245
2252
|
const EditorRename = {
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2253
|
+
__proto__: null,
|
|
2254
|
+
accept,
|
|
2255
|
+
cancel,
|
|
2256
|
+
handleInput: handleInput$5
|
|
2250
2257
|
};
|
|
2251
2258
|
|
|
2252
2259
|
const selectIndex$5 = async index => {
|
|
2253
2260
|
// @ts-ignore
|
|
2254
|
-
await invoke
|
|
2261
|
+
await invoke('EditorSourceAction.selectIndex', index);
|
|
2255
2262
|
};
|
|
2256
2263
|
const selectCurrentIndex$1 = async () => {
|
|
2257
2264
|
// @ts-ignore
|
|
2258
|
-
await invoke
|
|
2265
|
+
await invoke('EditorSourceAction.selectCurrentIndex');
|
|
2259
2266
|
};
|
|
2260
2267
|
|
|
2261
2268
|
const EditorSourceAction = {
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2269
|
+
__proto__: null,
|
|
2270
|
+
selectCurrentIndex: selectCurrentIndex$1,
|
|
2271
|
+
selectIndex: selectIndex$5
|
|
2265
2272
|
};
|
|
2266
2273
|
|
|
2267
2274
|
const openContextMenu = async index => {
|
|
2268
2275
|
// @ts-ignore
|
|
2269
|
-
await invoke
|
|
2276
|
+
await invoke('Explorer.handleContextMenuKeyboard', index);
|
|
2270
2277
|
};
|
|
2271
2278
|
const handleDragLeave = async () => {
|
|
2272
|
-
await invoke
|
|
2279
|
+
await invoke('Explorer.handleDragLeave');
|
|
2273
2280
|
};
|
|
2274
2281
|
const handleBlur = async () => {
|
|
2275
|
-
await invoke
|
|
2282
|
+
await invoke('Explorer.handleBlur');
|
|
2276
2283
|
};
|
|
2277
2284
|
const handleEscape = async () => {
|
|
2278
2285
|
// @ts-ignore
|
|
2279
|
-
await invoke
|
|
2286
|
+
await invoke('Explorer.handleEscape');
|
|
2280
2287
|
};
|
|
2281
2288
|
const handleInputBlur = async () => {
|
|
2282
|
-
await invoke
|
|
2289
|
+
await invoke('Explorer.handleInputBlur');
|
|
2283
2290
|
};
|
|
2284
2291
|
const focus$1 = async () => {
|
|
2285
|
-
await invoke
|
|
2292
|
+
await invoke('Explorer.focusIndex', -1);
|
|
2286
2293
|
};
|
|
2287
2294
|
const focusNext$7 = async () => {
|
|
2288
2295
|
// @ts-ignore
|
|
2289
|
-
await invoke
|
|
2296
|
+
await invoke('Explorer.focusNext');
|
|
2290
2297
|
};
|
|
2291
2298
|
const selectUp = async () => {
|
|
2292
|
-
await invoke
|
|
2299
|
+
await invoke('Explorer.selectUp');
|
|
2293
2300
|
};
|
|
2294
2301
|
const handleDragOverIndex = async index => {
|
|
2295
2302
|
// @ts-ignore
|
|
2296
|
-
await invoke
|
|
2303
|
+
await invoke('Explorer.handleDragOverIndex', index);
|
|
2297
2304
|
};
|
|
2298
2305
|
const selectDown = async () => {
|
|
2299
|
-
await invoke
|
|
2306
|
+
await invoke('Explorer.selectDown');
|
|
2300
2307
|
};
|
|
2301
2308
|
const collapseAll$2 = async () => {
|
|
2302
2309
|
// @ts-ignore
|
|
2303
|
-
await invoke
|
|
2310
|
+
await invoke('Explorer.collapseAll');
|
|
2304
2311
|
};
|
|
2305
2312
|
const refresh$1 = async () => {
|
|
2306
|
-
await invoke
|
|
2313
|
+
await invoke('Explorer.refresh');
|
|
2307
2314
|
};
|
|
2308
2315
|
const focusIndex$5 = async index => {
|
|
2309
|
-
await invoke
|
|
2316
|
+
await invoke('Explorer.focusIndex', index);
|
|
2310
2317
|
};
|
|
2311
2318
|
const clickCurrent = async () => {
|
|
2312
|
-
await invoke
|
|
2319
|
+
await invoke('Explorer.handleClickCurrent');
|
|
2313
2320
|
};
|
|
2314
2321
|
const handleArrowLeft$1 = async () => {
|
|
2315
|
-
await invoke
|
|
2322
|
+
await invoke('Explorer.handleArrowLeft');
|
|
2316
2323
|
};
|
|
2317
2324
|
const focusLast$5 = async () => {
|
|
2318
|
-
await invoke
|
|
2325
|
+
await invoke('Explorer.focusLast');
|
|
2319
2326
|
};
|
|
2320
2327
|
const focusFirst$6 = async () => {
|
|
2321
|
-
await invoke
|
|
2328
|
+
await invoke('Explorer.focusFirst');
|
|
2322
2329
|
};
|
|
2323
2330
|
const removeDirent = async () => {
|
|
2324
|
-
await invoke
|
|
2331
|
+
await invoke('Explorer.removeDirent');
|
|
2325
2332
|
};
|
|
2326
2333
|
const expandRecursively = async () => {
|
|
2327
|
-
await invoke
|
|
2334
|
+
await invoke('Explorer.expandRecursively');
|
|
2328
2335
|
};
|
|
2329
2336
|
const newFile = async () => {
|
|
2330
|
-
await invoke
|
|
2337
|
+
await invoke('Explorer.newFile');
|
|
2331
2338
|
};
|
|
2332
2339
|
const newFolder = async () => {
|
|
2333
|
-
await invoke
|
|
2340
|
+
await invoke('Explorer.newFolder');
|
|
2334
2341
|
};
|
|
2335
2342
|
const copyPath$1 = async () => {
|
|
2336
2343
|
// @ts-ignore
|
|
2337
|
-
await invoke
|
|
2344
|
+
await invoke('Explorer.copyPath');
|
|
2338
2345
|
};
|
|
2339
2346
|
const copyRelativePath = async () => {
|
|
2340
2347
|
// @ts-ignore
|
|
2341
|
-
await invoke
|
|
2348
|
+
await invoke('Explorer.copyRelativePath');
|
|
2342
2349
|
};
|
|
2343
2350
|
const handleClick$2 = async index => {
|
|
2344
|
-
await invoke
|
|
2351
|
+
await invoke('Explorer.handleClick', index);
|
|
2345
2352
|
};
|
|
2346
2353
|
const handleClickAt$2 = async (preventDefault, button, ctrlKey, shiftKey, x, y) => {
|
|
2347
2354
|
// @ts-ignore
|
|
2348
|
-
await invoke
|
|
2355
|
+
await invoke('Explorer.handleClickAt', preventDefault, button, ctrlKey, shiftKey, x, y);
|
|
2349
2356
|
};
|
|
2350
2357
|
const handleDrop = async (x, y, fileIds, fileList) => {
|
|
2351
2358
|
// @ts-ignore
|
|
2352
|
-
await invoke
|
|
2359
|
+
await invoke('Explorer.handleDrop', x, y, fileIds, fileIds);
|
|
2353
2360
|
};
|
|
2354
2361
|
const rename = async () => {
|
|
2355
|
-
await invoke
|
|
2362
|
+
await invoke('Explorer.renameDirent');
|
|
2356
2363
|
};
|
|
2357
2364
|
const selectAll = async () => {
|
|
2358
|
-
await invoke
|
|
2365
|
+
await invoke('Explorer.selectAll');
|
|
2359
2366
|
};
|
|
2360
2367
|
const renameDirent = async () => {
|
|
2361
|
-
await invoke
|
|
2368
|
+
await invoke('Explorer.renameDirent');
|
|
2362
2369
|
};
|
|
2363
2370
|
const cancelEdit = async () => {
|
|
2364
|
-
await invoke
|
|
2371
|
+
await invoke('Explorer.cancelEdit');
|
|
2365
2372
|
};
|
|
2366
2373
|
const acceptEdit = async () => {
|
|
2367
|
-
await invoke
|
|
2374
|
+
await invoke('Explorer.acceptEdit');
|
|
2368
2375
|
};
|
|
2369
2376
|
const updateEditingValue = async value => {
|
|
2370
|
-
await invoke
|
|
2377
|
+
await invoke('Explorer.updateEditingValue', value);
|
|
2371
2378
|
};
|
|
2372
2379
|
const expandAll = async () => {
|
|
2373
|
-
await invoke
|
|
2380
|
+
await invoke('Explorer.expandAll');
|
|
2374
2381
|
};
|
|
2375
2382
|
const handleDragOver = async (x, y) => {
|
|
2376
|
-
await invoke
|
|
2383
|
+
await invoke('Explorer.handleDragOver', x, y);
|
|
2377
2384
|
};
|
|
2378
2385
|
const handleCut = async () => {
|
|
2379
2386
|
// @ts-ignore
|
|
2380
|
-
await invoke
|
|
2387
|
+
await invoke('Explorer.handleCut');
|
|
2381
2388
|
};
|
|
2382
2389
|
const handleCopy = async () => {
|
|
2383
2390
|
// @ts-ignore
|
|
2384
|
-
await invoke
|
|
2391
|
+
await invoke('Explorer.handleCopy');
|
|
2385
2392
|
};
|
|
2386
2393
|
const handlePaste = async () => {
|
|
2387
2394
|
// @ts-ignore
|
|
2388
|
-
await invoke
|
|
2395
|
+
await invoke('Explorer.handlePaste');
|
|
2389
2396
|
};
|
|
2390
2397
|
const selectIndices = async indices => {
|
|
2391
|
-
await invoke
|
|
2398
|
+
await invoke('Explorer.selectIndices', indices);
|
|
2392
2399
|
};
|
|
2393
2400
|
const toggleIndividualSelection = async index => {
|
|
2394
2401
|
// @ts-ignore
|
|
2395
|
-
await invoke
|
|
2402
|
+
await invoke('Explorer.toggleIndividualSelection', index);
|
|
2396
2403
|
};
|
|
2397
2404
|
|
|
2398
2405
|
const Explorer = {
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2406
|
+
__proto__: null,
|
|
2407
|
+
acceptEdit,
|
|
2408
|
+
cancelEdit,
|
|
2409
|
+
clickCurrent,
|
|
2410
|
+
collapseAll: collapseAll$2,
|
|
2411
|
+
copyPath: copyPath$1,
|
|
2412
|
+
copyRelativePath,
|
|
2413
|
+
expandAll,
|
|
2414
|
+
expandRecursively,
|
|
2415
|
+
focus: focus$1,
|
|
2416
|
+
focusFirst: focusFirst$6,
|
|
2417
|
+
focusIndex: focusIndex$5,
|
|
2418
|
+
focusLast: focusLast$5,
|
|
2419
|
+
focusNext: focusNext$7,
|
|
2420
|
+
handleArrowLeft: handleArrowLeft$1,
|
|
2421
|
+
handleBlur,
|
|
2422
|
+
handleClick: handleClick$2,
|
|
2423
|
+
handleClickAt: handleClickAt$2,
|
|
2424
|
+
handleCopy,
|
|
2425
|
+
handleCut,
|
|
2426
|
+
handleDragLeave,
|
|
2427
|
+
handleDragOver,
|
|
2428
|
+
handleDragOverIndex,
|
|
2429
|
+
handleDrop,
|
|
2430
|
+
handleEscape,
|
|
2431
|
+
handleInputBlur,
|
|
2432
|
+
handlePaste,
|
|
2433
|
+
newFile,
|
|
2434
|
+
newFolder,
|
|
2435
|
+
openContextMenu,
|
|
2436
|
+
refresh: refresh$1,
|
|
2437
|
+
removeDirent,
|
|
2438
|
+
rename,
|
|
2439
|
+
renameDirent,
|
|
2440
|
+
selectAll,
|
|
2441
|
+
selectDown,
|
|
2442
|
+
selectIndices,
|
|
2443
|
+
selectUp,
|
|
2444
|
+
toggleIndividualSelection,
|
|
2445
|
+
updateEditingValue
|
|
2439
2446
|
};
|
|
2440
2447
|
|
|
2441
2448
|
const addWebExtension = async relativePath => {
|
|
2442
2449
|
// TODO compute absolutePath
|
|
2443
2450
|
const absolutePath = relativePath;
|
|
2444
|
-
await invoke
|
|
2451
|
+
await invoke('ExtensionMeta.addWebExtension', absolutePath);
|
|
2445
2452
|
};
|
|
2446
2453
|
const addNodeExtension = async relativePath => {
|
|
2447
2454
|
// TODO compute absolutePath
|
|
2448
2455
|
const absolutePath = relativePath;
|
|
2449
|
-
await invoke
|
|
2456
|
+
await invoke('ExtensionMeta.addNodeExtension', absolutePath);
|
|
2450
2457
|
};
|
|
2451
2458
|
|
|
2452
2459
|
const Extension = {
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2460
|
+
__proto__: null,
|
|
2461
|
+
addNodeExtension,
|
|
2462
|
+
addWebExtension
|
|
2456
2463
|
};
|
|
2457
2464
|
|
|
2458
2465
|
const handleClickCategory = async categoryId => {
|
|
2459
2466
|
// @ts-ignore
|
|
2460
|
-
await invoke
|
|
2467
|
+
await invoke('ExtensionDetail.handleClickCategory', categoryId);
|
|
2461
2468
|
};
|
|
2462
2469
|
const handleReadmeContextMenu = async (x, y, nodeName, href) => {
|
|
2463
2470
|
// @ts-ignore
|
|
2464
|
-
await invoke
|
|
2471
|
+
await invoke('ExtensionDetail.handleReadmeContextMenu', x, y, nodeName, href);
|
|
2465
2472
|
};
|
|
2466
2473
|
const copyReadmeLink = async href => {
|
|
2467
2474
|
// @ts-ignore
|
|
2468
|
-
await invoke
|
|
2475
|
+
await invoke('ExtensionDetail.copyReadmeLink', href);
|
|
2469
2476
|
};
|
|
2470
2477
|
const handleClickEnable = async () => {
|
|
2471
2478
|
// @ts-ignore
|
|
2472
|
-
await invoke
|
|
2479
|
+
await invoke('ExtensionDetail.handleClickEnable');
|
|
2473
2480
|
};
|
|
2474
2481
|
const handleClickDisable = async () => {
|
|
2475
2482
|
// @ts-ignore
|
|
2476
|
-
await invoke
|
|
2483
|
+
await invoke('ExtensionDetail.handleClickDisable');
|
|
2477
2484
|
};
|
|
2478
2485
|
const handleClickSetColorTheme = async () => {
|
|
2479
2486
|
// @ts-ignore
|
|
2480
|
-
await invoke
|
|
2487
|
+
await invoke('ExtensionDetail.handleClickSetColorTheme');
|
|
2481
2488
|
};
|
|
2482
2489
|
const selectFeature = name => {
|
|
2483
|
-
return invoke
|
|
2490
|
+
return invoke('ExtensionDetail.selectFeature', name);
|
|
2484
2491
|
};
|
|
2485
2492
|
const selectTab$1 = name => {
|
|
2486
|
-
return invoke
|
|
2493
|
+
return invoke('ExtensionDetail.selectTab', name);
|
|
2487
2494
|
};
|
|
2488
2495
|
const selectDetails = async () => {
|
|
2489
2496
|
await selectTab$1('Details');
|
|
@@ -2495,24 +2502,24 @@ const selectChangelog = async () => {
|
|
|
2495
2502
|
await selectTab$1('Changelog');
|
|
2496
2503
|
};
|
|
2497
2504
|
const focusNextTab = async () => {
|
|
2498
|
-
await invoke
|
|
2505
|
+
await invoke('ExtensionDetail.focusNextTab');
|
|
2499
2506
|
};
|
|
2500
2507
|
const focusPreviousTab = async () => {
|
|
2501
|
-
await invoke
|
|
2508
|
+
await invoke('ExtensionDetail.focusPreviousTab');
|
|
2502
2509
|
};
|
|
2503
2510
|
const open$6 = extensionId => {
|
|
2504
2511
|
const uri = `extension-detail://${extensionId}`;
|
|
2505
|
-
return invoke
|
|
2512
|
+
return invoke('Main.openUri', uri);
|
|
2506
2513
|
};
|
|
2507
2514
|
const handleClickUninstall = () => {
|
|
2508
|
-
return invoke
|
|
2515
|
+
return invoke('ExtensionDetail.handleClickUninstall');
|
|
2509
2516
|
};
|
|
2510
2517
|
const handleImageContextMenu = () => {
|
|
2511
|
-
return invoke
|
|
2518
|
+
return invoke('ExtensionDetail.handleImageContextMenu');
|
|
2512
2519
|
};
|
|
2513
2520
|
const openFeature = featureName => {
|
|
2514
2521
|
// @ts-ignore
|
|
2515
|
-
return invoke
|
|
2522
|
+
return invoke('ExtensionDetail.handleFeaturesClick', featureName);
|
|
2516
2523
|
};
|
|
2517
2524
|
const openThemes = async () => {
|
|
2518
2525
|
await openFeature('Theme');
|
|
@@ -2534,56 +2541,56 @@ const openSettings = async () => {
|
|
|
2534
2541
|
};
|
|
2535
2542
|
const handleScroll$1 = async scrollTop => {
|
|
2536
2543
|
// @ts-ignore
|
|
2537
|
-
return invoke
|
|
2544
|
+
return invoke('ExtensionDetail.handleScroll', scrollTop);
|
|
2538
2545
|
};
|
|
2539
2546
|
const hideSizeLink = async () => {
|
|
2540
|
-
return invoke
|
|
2547
|
+
return invoke('ExtensionDetail.hideSizeLink');
|
|
2541
2548
|
};
|
|
2542
2549
|
const handleTabFocus = async tabName => {
|
|
2543
|
-
return invoke
|
|
2550
|
+
return invoke('ExtensionDetail.handleTabFocus', tabName);
|
|
2544
2551
|
};
|
|
2545
2552
|
|
|
2546
2553
|
const ExtensionDetail = {
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2554
|
+
__proto__: null,
|
|
2555
|
+
copyReadmeLink,
|
|
2556
|
+
focusNextTab,
|
|
2557
|
+
focusPreviousTab,
|
|
2558
|
+
handleClickCategory,
|
|
2559
|
+
handleClickDisable,
|
|
2560
|
+
handleClickEnable,
|
|
2561
|
+
handleClickSetColorTheme,
|
|
2562
|
+
handleClickUninstall,
|
|
2563
|
+
handleImageContextMenu,
|
|
2564
|
+
handleReadmeContextMenu,
|
|
2565
|
+
handleScroll: handleScroll$1,
|
|
2566
|
+
handleTabFocus,
|
|
2567
|
+
hideSizeLink,
|
|
2568
|
+
open: open$6,
|
|
2569
|
+
openCommands,
|
|
2570
|
+
openFeature,
|
|
2571
|
+
openJsonValidation,
|
|
2572
|
+
openRuntimeStatus,
|
|
2573
|
+
openSettings,
|
|
2574
|
+
openThemes,
|
|
2575
|
+
openWebViews,
|
|
2576
|
+
selectChangelog,
|
|
2577
|
+
selectDetails,
|
|
2578
|
+
selectFeature,
|
|
2579
|
+
selectFeatures,
|
|
2580
|
+
selectTab: selectTab$1
|
|
2574
2581
|
};
|
|
2575
2582
|
|
|
2576
2583
|
const open$5 = async id => {
|
|
2577
|
-
await invoke
|
|
2584
|
+
await invoke('SideBar.openViewlet', id);
|
|
2578
2585
|
};
|
|
2579
2586
|
const hide = async () => {
|
|
2580
|
-
await invoke
|
|
2587
|
+
await invoke('Layout.hideSideBar');
|
|
2581
2588
|
};
|
|
2582
2589
|
|
|
2583
2590
|
const SideBar = {
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2591
|
+
__proto__: null,
|
|
2592
|
+
hide,
|
|
2593
|
+
open: open$5
|
|
2587
2594
|
};
|
|
2588
2595
|
|
|
2589
2596
|
const open$4 = async () => {
|
|
@@ -2591,38 +2598,38 @@ const open$4 = async () => {
|
|
|
2591
2598
|
};
|
|
2592
2599
|
const handleInput$4 = async value => {
|
|
2593
2600
|
// @ts-ignore
|
|
2594
|
-
await invoke
|
|
2601
|
+
await invoke('Extensions.handleInput', value, Script$1);
|
|
2595
2602
|
};
|
|
2596
2603
|
const handleClick$1 = async index => {
|
|
2597
2604
|
// @ts-ignore
|
|
2598
|
-
await invoke
|
|
2605
|
+
await invoke('Extensions.handleClick', index);
|
|
2599
2606
|
};
|
|
2600
2607
|
const handleContextMenu$4 = async (button, x, y) => {
|
|
2601
2608
|
// @ts-ignore
|
|
2602
|
-
await invoke
|
|
2609
|
+
await invoke('Extensions.handleContextMenu', button, x, y);
|
|
2603
2610
|
};
|
|
2604
2611
|
const copyExtensionInfo = async () => {
|
|
2605
2612
|
// @ts-ignore
|
|
2606
|
-
await invoke
|
|
2613
|
+
await invoke('Extensions.copyExtensionInfo');
|
|
2607
2614
|
};
|
|
2608
2615
|
const copyExtensionId = async () => {
|
|
2609
2616
|
// @ts-ignore
|
|
2610
|
-
await invoke
|
|
2617
|
+
await invoke('Extensions.copyExtensionId');
|
|
2611
2618
|
};
|
|
2612
2619
|
const clearSearchResults$1 = async () => {
|
|
2613
2620
|
// @ts-ignore
|
|
2614
|
-
await invoke
|
|
2621
|
+
await invoke('Extensions.clearSearchResults');
|
|
2615
2622
|
};
|
|
2616
2623
|
|
|
2617
2624
|
const ExtensionSearch = {
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2625
|
+
__proto__: null,
|
|
2626
|
+
clearSearchResults: clearSearchResults$1,
|
|
2627
|
+
copyExtensionId,
|
|
2628
|
+
copyExtensionInfo,
|
|
2629
|
+
handleClick: handleClick$1,
|
|
2630
|
+
handleContextMenu: handleContextMenu$4,
|
|
2631
|
+
handleInput: handleInput$4,
|
|
2632
|
+
open: open$4
|
|
2626
2633
|
};
|
|
2627
2634
|
|
|
2628
2635
|
const Memfs = 'memfs';
|
|
@@ -2639,7 +2646,7 @@ const toFileUrl = url => {
|
|
|
2639
2646
|
|
|
2640
2647
|
/* eslint-disable @typescript-eslint/prefer-readonly-parameter-types */
|
|
2641
2648
|
const getDirents = async (allDirents, fileUrl) => {
|
|
2642
|
-
const dirents = await invoke
|
|
2649
|
+
const dirents = await invoke('FileSystem.readDirWithFileTypes', fileUrl);
|
|
2643
2650
|
for (const dirent of dirents) {
|
|
2644
2651
|
if (dirent.type === Directory) {
|
|
2645
2652
|
await getDirents(allDirents, `${fileUrl}/${dirent.name}`);
|
|
@@ -2654,7 +2661,7 @@ const getFileMapNode = async url => {
|
|
|
2654
2661
|
await getDirents(allFiles, fileUrl);
|
|
2655
2662
|
const fileMap = Object.create(null);
|
|
2656
2663
|
for (const filePath of allFiles) {
|
|
2657
|
-
const content = await invoke
|
|
2664
|
+
const content = await invoke(`FileSystem.readFile`, filePath);
|
|
2658
2665
|
const relativePaths = filePath.slice(fileUrl.length + 1);
|
|
2659
2666
|
fileMap[relativePaths] = content;
|
|
2660
2667
|
}
|
|
@@ -2701,7 +2708,7 @@ const getFileMapWeb = async url => {
|
|
|
2701
2708
|
const loadFixtureToMemFs = async fileMap => {
|
|
2702
2709
|
for (const [path, content] of Object.entries(fileMap)) {
|
|
2703
2710
|
const memfsPath = `memfs:///fixture/${path}`;
|
|
2704
|
-
await invoke
|
|
2711
|
+
await invoke('FileSystem.writeFile', memfsPath, content);
|
|
2705
2712
|
}
|
|
2706
2713
|
return `memfs:///fixture`;
|
|
2707
2714
|
};
|
|
@@ -2710,9 +2717,9 @@ const Backslash = '\\';
|
|
|
2710
2717
|
const Slash$1 = '/';
|
|
2711
2718
|
|
|
2712
2719
|
const Character = {
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2720
|
+
__proto__: null,
|
|
2721
|
+
Backslash,
|
|
2722
|
+
Slash: Slash$1
|
|
2716
2723
|
};
|
|
2717
2724
|
|
|
2718
2725
|
const {
|
|
@@ -2724,28 +2731,28 @@ const stringifyJson = data => {
|
|
|
2724
2731
|
};
|
|
2725
2732
|
|
|
2726
2733
|
const writeFile = async (uri, content) => {
|
|
2727
|
-
await invoke
|
|
2734
|
+
await invoke('FileSystem.writeFile', uri, content);
|
|
2728
2735
|
};
|
|
2729
2736
|
const writeJson = async (uri, data) => {
|
|
2730
2737
|
const content = stringifyJson(data);
|
|
2731
2738
|
await writeFile(uri, content);
|
|
2732
2739
|
};
|
|
2733
2740
|
const readFile = async uri => {
|
|
2734
|
-
return invoke
|
|
2741
|
+
return invoke('FileSystem.readFile', uri);
|
|
2735
2742
|
};
|
|
2736
2743
|
const addFileHandle = async file => {
|
|
2737
2744
|
// @ts-ignore
|
|
2738
|
-
await invoke
|
|
2745
|
+
await invoke('FileSystem.addFileHandle', file);
|
|
2739
2746
|
};
|
|
2740
2747
|
const mkdir = async uri => {
|
|
2741
|
-
await invoke
|
|
2748
|
+
await invoke('FileSystem.mkdir', uri);
|
|
2742
2749
|
};
|
|
2743
2750
|
const readDir = async uri => {
|
|
2744
2751
|
// @ts-ignore
|
|
2745
|
-
return invoke
|
|
2752
|
+
return invoke('FileSystem.readDirWithFileTypes', uri);
|
|
2746
2753
|
};
|
|
2747
2754
|
const remove = async uri => {
|
|
2748
|
-
await invoke
|
|
2755
|
+
await invoke('FileSystem.remove', uri);
|
|
2749
2756
|
};
|
|
2750
2757
|
const getTmpDir = async ({
|
|
2751
2758
|
scheme = Memfs
|
|
@@ -2755,19 +2762,19 @@ const getTmpDir = async ({
|
|
|
2755
2762
|
return 'memfs:///workspace';
|
|
2756
2763
|
default:
|
|
2757
2764
|
// @ts-ignore
|
|
2758
|
-
return invoke
|
|
2765
|
+
return invoke('PlatformPaths.getTmpDir');
|
|
2759
2766
|
}
|
|
2760
2767
|
};
|
|
2761
2768
|
const chmod = async (uri, permissions) => {
|
|
2762
2769
|
// @ts-ignore
|
|
2763
|
-
await invoke
|
|
2770
|
+
await invoke('FileSystem.chmod', uri, permissions);
|
|
2764
2771
|
};
|
|
2765
2772
|
const createExecutable = async content => {
|
|
2766
2773
|
const tmpDir = await getTmpDir({
|
|
2767
2774
|
scheme: 'file'
|
|
2768
2775
|
});
|
|
2769
2776
|
// @ts-ignore
|
|
2770
|
-
const nodePath = await invoke
|
|
2777
|
+
const nodePath = await invoke('PlatformPaths.getNodePath');
|
|
2771
2778
|
const gitPath = `${tmpDir}/git`;
|
|
2772
2779
|
await writeFile(gitPath, `#!${nodePath}
|
|
2773
2780
|
${content}`);
|
|
@@ -2776,10 +2783,10 @@ const createExecutable = async content => {
|
|
|
2776
2783
|
};
|
|
2777
2784
|
const createExecutableFrom = async uri => {
|
|
2778
2785
|
// @ts-ignore
|
|
2779
|
-
const testPath = await invoke
|
|
2786
|
+
const testPath = await invoke('PlatformPaths.getTestPath');
|
|
2780
2787
|
const absolutePath = testPath + Slash + uri;
|
|
2781
2788
|
// @ts-ignore
|
|
2782
|
-
const content = await invoke
|
|
2789
|
+
const content = await invoke('Ajax.getText', absolutePath);
|
|
2783
2790
|
return createExecutable(content);
|
|
2784
2791
|
};
|
|
2785
2792
|
const createDroppedFileHandle = async () => {
|
|
@@ -2789,7 +2796,7 @@ const createDroppedFileHandle = async () => {
|
|
|
2789
2796
|
});
|
|
2790
2797
|
const file = await fileHandle.getFile();
|
|
2791
2798
|
// @ts-ignore
|
|
2792
|
-
const id = await invoke
|
|
2799
|
+
const id = await invoke('FileSystemHandle.addFileHandle', fileHandle);
|
|
2793
2800
|
return {
|
|
2794
2801
|
file,
|
|
2795
2802
|
id
|
|
@@ -2806,231 +2813,231 @@ const loadFixture = async (platform, url) => {
|
|
|
2806
2813
|
};
|
|
2807
2814
|
|
|
2808
2815
|
const FileSystem = {
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2816
|
+
__proto__: null,
|
|
2817
|
+
addFileHandle,
|
|
2818
|
+
chmod,
|
|
2819
|
+
createDroppedFileHandle,
|
|
2820
|
+
createExecutable,
|
|
2821
|
+
createExecutableFrom,
|
|
2822
|
+
getTmpDir,
|
|
2823
|
+
loadFixture,
|
|
2824
|
+
mkdir,
|
|
2825
|
+
readDir,
|
|
2826
|
+
readFile,
|
|
2827
|
+
remove,
|
|
2828
|
+
writeFile,
|
|
2829
|
+
writeJson
|
|
2823
2830
|
};
|
|
2824
2831
|
|
|
2825
2832
|
const focusNext$6 = async () => {
|
|
2826
|
-
await invoke
|
|
2833
|
+
await invoke('FindWidget.focusNext');
|
|
2827
2834
|
};
|
|
2828
2835
|
const focusPrevious$6 = async () => {
|
|
2829
2836
|
// @ts-ignore
|
|
2830
|
-
await invoke
|
|
2837
|
+
await invoke('FindWidget.focusPrevious');
|
|
2831
2838
|
};
|
|
2832
2839
|
const close = async () => {
|
|
2833
2840
|
// @ts-ignore
|
|
2834
|
-
await invoke
|
|
2841
|
+
await invoke('FindWidget.close');
|
|
2835
2842
|
};
|
|
2836
2843
|
const setReplaceValue$1 = async value => {
|
|
2837
2844
|
// @ts-ignore
|
|
2838
|
-
await invoke
|
|
2845
|
+
await invoke('FindWidget.handleReplaceInput', value, Script);
|
|
2839
2846
|
};
|
|
2840
2847
|
const setValue$2 = async value => {
|
|
2841
2848
|
// @ts-ignore
|
|
2842
|
-
await invoke
|
|
2849
|
+
await invoke('FindWidget.handleInput', value, Script);
|
|
2843
2850
|
};
|
|
2844
2851
|
const toggleReplace$1 = async () => {
|
|
2845
2852
|
// @ts-ignore
|
|
2846
|
-
await invoke
|
|
2853
|
+
await invoke('FindWidget.toggleReplace');
|
|
2847
2854
|
};
|
|
2848
2855
|
const toggleMatchCase$1 = async () => {
|
|
2849
2856
|
// @ts-ignore
|
|
2850
|
-
await invoke
|
|
2857
|
+
await invoke('FindWidget.toggleMatchCase');
|
|
2851
2858
|
};
|
|
2852
2859
|
const toggleMatchWholeWord$1 = async () => {
|
|
2853
2860
|
// @ts-ignore
|
|
2854
|
-
await invoke
|
|
2861
|
+
await invoke('FindWidget.toggleMatchWholeWord');
|
|
2855
2862
|
};
|
|
2856
2863
|
const togglePreserveCase$1 = async () => {
|
|
2857
2864
|
// @ts-ignore
|
|
2858
|
-
await invoke
|
|
2865
|
+
await invoke('FindWidget.togglePreserveCase');
|
|
2859
2866
|
};
|
|
2860
2867
|
const toggleUseRegularExpression$1 = async () => {
|
|
2861
2868
|
// @ts-ignore
|
|
2862
|
-
await invoke
|
|
2869
|
+
await invoke('FindWidget.toggleUseRegularExpression');
|
|
2863
2870
|
};
|
|
2864
2871
|
const replace = async () => {
|
|
2865
2872
|
// @ts-ignore
|
|
2866
|
-
await invoke
|
|
2873
|
+
await invoke('FindWidget.replace');
|
|
2867
2874
|
};
|
|
2868
2875
|
const replaceAll$1 = async () => {
|
|
2869
2876
|
// @ts-ignore
|
|
2870
|
-
await invoke
|
|
2877
|
+
await invoke('FindWidget.replaceAll');
|
|
2871
2878
|
};
|
|
2872
2879
|
const focusElement = async whenExpression => {
|
|
2873
2880
|
// @ts-ignore
|
|
2874
|
-
await invoke
|
|
2881
|
+
await invoke('FindWidget.focusElement', whenExpression);
|
|
2875
2882
|
};
|
|
2876
2883
|
const focusNextElement = async () => {
|
|
2877
2884
|
// @ts-ignore
|
|
2878
|
-
await invoke
|
|
2885
|
+
await invoke('FindWidget.focusNextElement');
|
|
2879
2886
|
};
|
|
2880
2887
|
const focusPreviousElement = async () => {
|
|
2881
2888
|
// @ts-ignore
|
|
2882
|
-
await invoke
|
|
2889
|
+
await invoke('FindWidget.focusPreviousElement');
|
|
2883
2890
|
};
|
|
2884
2891
|
|
|
2885
2892
|
const FindWidget = {
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2893
|
+
__proto__: null,
|
|
2894
|
+
close,
|
|
2895
|
+
focusElement,
|
|
2896
|
+
focusNext: focusNext$6,
|
|
2897
|
+
focusNextElement,
|
|
2898
|
+
focusPrevious: focusPrevious$6,
|
|
2899
|
+
focusPreviousElement,
|
|
2900
|
+
replace,
|
|
2901
|
+
replaceAll: replaceAll$1,
|
|
2902
|
+
setReplaceValue: setReplaceValue$1,
|
|
2903
|
+
setValue: setValue$2,
|
|
2904
|
+
toggleMatchCase: toggleMatchCase$1,
|
|
2905
|
+
toggleMatchWholeWord: toggleMatchWholeWord$1,
|
|
2906
|
+
togglePreserveCase: togglePreserveCase$1,
|
|
2907
|
+
toggleReplace: toggleReplace$1,
|
|
2908
|
+
toggleUseRegularExpression: toggleUseRegularExpression$1
|
|
2902
2909
|
};
|
|
2903
2910
|
|
|
2904
2911
|
const setIconTheme = async id => {
|
|
2905
|
-
await invoke
|
|
2912
|
+
await invoke('IconTheme.setIconTheme', id);
|
|
2906
2913
|
};
|
|
2907
2914
|
|
|
2908
2915
|
const IconTheme = {
|
|
2909
|
-
|
|
2910
|
-
|
|
2916
|
+
__proto__: null,
|
|
2917
|
+
setIconTheme
|
|
2911
2918
|
};
|
|
2912
2919
|
|
|
2913
2920
|
const selectIndex$4 = async index => {
|
|
2914
|
-
return invoke
|
|
2921
|
+
return invoke('IframeInspector.selectIndex', index);
|
|
2915
2922
|
};
|
|
2916
2923
|
const focusNext$5 = async () => {
|
|
2917
|
-
return invoke
|
|
2924
|
+
return invoke('IframeInspector.focusNext');
|
|
2918
2925
|
};
|
|
2919
2926
|
const focusPrevious$5 = async () => {
|
|
2920
|
-
return invoke
|
|
2927
|
+
return invoke('IframeInspector.focusPrevious');
|
|
2921
2928
|
};
|
|
2922
2929
|
const focusFirst$5 = async () => {
|
|
2923
|
-
return invoke
|
|
2930
|
+
return invoke('IframeInspector.focusFirst');
|
|
2924
2931
|
};
|
|
2925
2932
|
const focusLast$4 = async () => {
|
|
2926
|
-
return invoke
|
|
2933
|
+
return invoke('IframeInspector.focusLast');
|
|
2927
2934
|
};
|
|
2928
2935
|
|
|
2929
2936
|
const IframeInspector = {
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2937
|
+
__proto__: null,
|
|
2938
|
+
focusFirst: focusFirst$5,
|
|
2939
|
+
focusLast: focusLast$4,
|
|
2940
|
+
focusNext: focusNext$5,
|
|
2941
|
+
focusPrevious: focusPrevious$5,
|
|
2942
|
+
selectIndex: selectIndex$4
|
|
2936
2943
|
};
|
|
2937
2944
|
|
|
2938
2945
|
const open$3 = async () => {
|
|
2939
|
-
await invoke
|
|
2946
|
+
await invoke('Main.openUri', 'app://keybindings');
|
|
2940
2947
|
};
|
|
2941
2948
|
const handleInput$3 = value => {
|
|
2942
|
-
return invoke
|
|
2949
|
+
return invoke('KeyBindings.handleInput', value);
|
|
2943
2950
|
};
|
|
2944
2951
|
const handleClick = (x, y) => {
|
|
2945
|
-
return invoke
|
|
2952
|
+
return invoke('KeyBindings.handleClick', x, y);
|
|
2946
2953
|
};
|
|
2947
2954
|
const handleWheel$1 = (deltaMode, deltaY) => {
|
|
2948
|
-
return invoke
|
|
2955
|
+
return invoke('KeyBindings.handleWheel', deltaMode, deltaY);
|
|
2949
2956
|
};
|
|
2950
2957
|
const handleDoubleClick = (x, y) => {
|
|
2951
|
-
return invoke
|
|
2958
|
+
return invoke('KeyBindings.handleDoubleClick', x, y);
|
|
2952
2959
|
};
|
|
2953
2960
|
const focusNext$4 = () => {
|
|
2954
|
-
return invoke
|
|
2961
|
+
return invoke('KeyBindings.focusNext');
|
|
2955
2962
|
};
|
|
2956
2963
|
const focusPrevious$4 = () => {
|
|
2957
|
-
return invoke
|
|
2964
|
+
return invoke('KeyBindings.focusPrevious');
|
|
2958
2965
|
};
|
|
2959
2966
|
const focusFirst$4 = () => {
|
|
2960
|
-
return invoke
|
|
2967
|
+
return invoke('KeyBindings.focusFirst');
|
|
2961
2968
|
};
|
|
2962
2969
|
const focusIndex$4 = index => {
|
|
2963
2970
|
// @ts-ignore
|
|
2964
|
-
return invoke
|
|
2971
|
+
return invoke('KeyBindings.focusIndex', index);
|
|
2965
2972
|
};
|
|
2966
2973
|
const focusLast$3 = () => {
|
|
2967
|
-
return invoke
|
|
2974
|
+
return invoke('KeyBindings.focusLast');
|
|
2968
2975
|
};
|
|
2969
2976
|
const toggleRecordingKeys = () => {
|
|
2970
|
-
return invoke
|
|
2977
|
+
return invoke('KeyBindings.toggleRecordingKeys');
|
|
2971
2978
|
};
|
|
2972
2979
|
const startRecordingKeys = () => {
|
|
2973
|
-
return invoke
|
|
2980
|
+
return invoke('KeyBindings.startRecordingKeys');
|
|
2974
2981
|
};
|
|
2975
2982
|
const clearInput = () => {
|
|
2976
|
-
return invoke
|
|
2983
|
+
return invoke('KeyBindings.clearInput');
|
|
2977
2984
|
};
|
|
2978
2985
|
const sortByPrecedence = () => {
|
|
2979
|
-
return invoke
|
|
2986
|
+
return invoke('KeyBindings.sortByPrecedence');
|
|
2980
2987
|
};
|
|
2981
2988
|
const stopRecordingKeys = () => {
|
|
2982
|
-
return invoke
|
|
2989
|
+
return invoke('KeyBindings.stopRecordingKeys');
|
|
2983
2990
|
};
|
|
2984
2991
|
const handleContextMenu$3 = (button, x, y) => {
|
|
2985
|
-
return invoke
|
|
2992
|
+
return invoke('KeyBindings.handleContextMenu', button, x, y);
|
|
2986
2993
|
};
|
|
2987
2994
|
const copyCommandId = () => {
|
|
2988
|
-
return invoke
|
|
2995
|
+
return invoke('KeyBindings.copyCommandId');
|
|
2989
2996
|
};
|
|
2990
2997
|
const copyCommandTitle = () => {
|
|
2991
|
-
return invoke
|
|
2998
|
+
return invoke('KeyBindings.copyCommandTitle');
|
|
2992
2999
|
};
|
|
2993
3000
|
const addKeyBinding = () => {
|
|
2994
|
-
return invoke
|
|
3001
|
+
return invoke('KeyBindings.addKeyBinding');
|
|
2995
3002
|
};
|
|
2996
3003
|
const removeKeyBinding = () => {
|
|
2997
|
-
return invoke
|
|
3004
|
+
return invoke('KeyBindings.removeKeyBinding');
|
|
2998
3005
|
};
|
|
2999
3006
|
const changeWhenExpression = () => {
|
|
3000
|
-
return invoke
|
|
3007
|
+
return invoke('KeyBindings.changeWhenExpression');
|
|
3001
3008
|
};
|
|
3002
3009
|
const showSameKeyBindings = () => {
|
|
3003
|
-
return invoke
|
|
3010
|
+
return invoke('KeyBindings.showSameKeyBindings');
|
|
3004
3011
|
};
|
|
3005
3012
|
const resetKeyBinding = () => {
|
|
3006
|
-
return invoke
|
|
3013
|
+
return invoke('KeyBindings.resetKeyBinding');
|
|
3007
3014
|
};
|
|
3008
3015
|
|
|
3009
3016
|
const KeyBindingsEditor = {
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3017
|
+
__proto__: null,
|
|
3018
|
+
addKeyBinding,
|
|
3019
|
+
changeWhenExpression,
|
|
3020
|
+
clearInput,
|
|
3021
|
+
copyCommandId,
|
|
3022
|
+
copyCommandTitle,
|
|
3023
|
+
focusFirst: focusFirst$4,
|
|
3024
|
+
focusIndex: focusIndex$4,
|
|
3025
|
+
focusLast: focusLast$3,
|
|
3026
|
+
focusNext: focusNext$4,
|
|
3027
|
+
focusPrevious: focusPrevious$4,
|
|
3028
|
+
handleClick,
|
|
3029
|
+
handleContextMenu: handleContextMenu$3,
|
|
3030
|
+
handleDoubleClick,
|
|
3031
|
+
handleInput: handleInput$3,
|
|
3032
|
+
handleWheel: handleWheel$1,
|
|
3033
|
+
open: open$3,
|
|
3034
|
+
removeKeyBinding,
|
|
3035
|
+
resetKeyBinding,
|
|
3036
|
+
showSameKeyBindings,
|
|
3037
|
+
sortByPrecedence,
|
|
3038
|
+
startRecordingKeys,
|
|
3039
|
+
stopRecordingKeys,
|
|
3040
|
+
toggleRecordingKeys
|
|
3034
3041
|
};
|
|
3035
3042
|
|
|
3036
3043
|
const Control = 'Control';
|
|
@@ -3080,105 +3087,105 @@ const press = async key => {
|
|
|
3080
3087
|
...keyOptions
|
|
3081
3088
|
};
|
|
3082
3089
|
// @ts-ignore
|
|
3083
|
-
await invoke
|
|
3090
|
+
await invoke('TestFrameWork.performKeyBoardAction', 'press', options);
|
|
3084
3091
|
};
|
|
3085
3092
|
|
|
3086
3093
|
const KeyBoard = {
|
|
3087
|
-
|
|
3088
|
-
|
|
3094
|
+
__proto__: null,
|
|
3095
|
+
press
|
|
3089
3096
|
};
|
|
3090
3097
|
|
|
3091
3098
|
const openUri = async uri => {
|
|
3092
|
-
await invoke
|
|
3099
|
+
await invoke('Main.openUri', uri);
|
|
3093
3100
|
};
|
|
3094
3101
|
const splitRight = async () => {
|
|
3095
|
-
await invoke
|
|
3102
|
+
await invoke('Main.splitRight');
|
|
3096
3103
|
};
|
|
3097
3104
|
const openKeyBindings = async () => {
|
|
3098
|
-
await invoke
|
|
3105
|
+
await invoke('Main.openKeyBindings');
|
|
3099
3106
|
};
|
|
3100
3107
|
const closeAllEditors = async () => {
|
|
3101
|
-
await invoke
|
|
3108
|
+
await invoke('Main.closeAllEditors');
|
|
3102
3109
|
};
|
|
3103
3110
|
const closeTabsLeft = async () => {
|
|
3104
|
-
await invoke
|
|
3111
|
+
await invoke('Main.closeTabsLeft');
|
|
3105
3112
|
};
|
|
3106
3113
|
const closeTabsRight = async () => {
|
|
3107
|
-
await invoke
|
|
3114
|
+
await invoke('Main.closeTabsRight');
|
|
3108
3115
|
};
|
|
3109
3116
|
const closeOthers = async () => {
|
|
3110
|
-
await invoke
|
|
3117
|
+
await invoke('Main.closeOthers');
|
|
3111
3118
|
};
|
|
3112
3119
|
const closeActiveEditor = async () => {
|
|
3113
|
-
await invoke
|
|
3120
|
+
await invoke('Main.closeActiveEditor');
|
|
3114
3121
|
};
|
|
3115
3122
|
const focusFirst$3 = async () => {
|
|
3116
|
-
await invoke
|
|
3123
|
+
await invoke('Main.focusFirst');
|
|
3117
3124
|
};
|
|
3118
3125
|
const focusNext$3 = async () => {
|
|
3119
|
-
await invoke
|
|
3126
|
+
await invoke('Main.focusNext');
|
|
3120
3127
|
};
|
|
3121
3128
|
const focusPrevious$3 = async () => {
|
|
3122
|
-
await invoke
|
|
3129
|
+
await invoke('Main.focusPrevious');
|
|
3123
3130
|
};
|
|
3124
3131
|
const focusLast$2 = async () => {
|
|
3125
|
-
await invoke
|
|
3132
|
+
await invoke('Main.focusLast');
|
|
3126
3133
|
};
|
|
3127
3134
|
|
|
3128
3135
|
const Main = {
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3136
|
+
__proto__: null,
|
|
3137
|
+
closeActiveEditor,
|
|
3138
|
+
closeAllEditors,
|
|
3139
|
+
closeOthers,
|
|
3140
|
+
closeTabsLeft,
|
|
3141
|
+
closeTabsRight,
|
|
3142
|
+
focusFirst: focusFirst$3,
|
|
3143
|
+
focusLast: focusLast$2,
|
|
3144
|
+
focusNext: focusNext$3,
|
|
3145
|
+
focusPrevious: focusPrevious$3,
|
|
3146
|
+
openKeyBindings,
|
|
3147
|
+
openUri,
|
|
3148
|
+
splitRight
|
|
3142
3149
|
};
|
|
3143
3150
|
|
|
3144
3151
|
const show$4 = async () => {
|
|
3145
3152
|
// @ts-ignore
|
|
3146
|
-
await invoke
|
|
3153
|
+
await invoke('Panel.selectIndex', 1);
|
|
3147
3154
|
};
|
|
3148
3155
|
const handleFilterInput$1 = async text => {
|
|
3149
3156
|
// @ts-ignore
|
|
3150
|
-
await invoke
|
|
3157
|
+
await invoke('Output.handleFilterInput', text, Script);
|
|
3151
3158
|
};
|
|
3152
3159
|
const selectChannel = async channelId => {
|
|
3153
3160
|
// @ts-ignore
|
|
3154
|
-
await invoke
|
|
3161
|
+
await invoke('Output.selectChannel', channelId);
|
|
3155
3162
|
};
|
|
3156
3163
|
const clear$2 = async () => {
|
|
3157
3164
|
// @ts-ignore
|
|
3158
|
-
await invoke
|
|
3165
|
+
await invoke('Output.clear');
|
|
3159
3166
|
};
|
|
3160
3167
|
|
|
3161
3168
|
const Output = {
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3169
|
+
__proto__: null,
|
|
3170
|
+
clear: clear$2,
|
|
3171
|
+
handleFilterInput: handleFilterInput$1,
|
|
3172
|
+
selectChannel,
|
|
3173
|
+
show: show$4
|
|
3167
3174
|
};
|
|
3168
3175
|
|
|
3169
3176
|
const open$2 = async id => {
|
|
3170
|
-
await invoke
|
|
3177
|
+
await invoke('Layout.showPanel', id);
|
|
3171
3178
|
};
|
|
3172
3179
|
const openProblems = async () => {
|
|
3173
3180
|
await open$2('Problems');
|
|
3174
3181
|
// @ts-ignore
|
|
3175
|
-
await invoke
|
|
3182
|
+
await invoke('Panel.selectIndex', 0);
|
|
3176
3183
|
};
|
|
3177
3184
|
|
|
3178
3185
|
const Panel = {
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3186
|
+
__proto__: null,
|
|
3187
|
+
open: open$2,
|
|
3188
|
+
openProblems
|
|
3182
3189
|
};
|
|
3183
3190
|
|
|
3184
3191
|
const getIsFirefox = () => {
|
|
@@ -3196,7 +3203,7 @@ const getIsFirefox = () => {
|
|
|
3196
3203
|
|
|
3197
3204
|
const getNodePath$1 = () => {
|
|
3198
3205
|
// @ts-ignore
|
|
3199
|
-
return invoke
|
|
3206
|
+
return invoke(/* Platform.getNodePath */'Platform.getNodePath');
|
|
3200
3207
|
};
|
|
3201
3208
|
|
|
3202
3209
|
const getNodePath = () => {
|
|
@@ -3207,64 +3214,64 @@ const isFirefox = () => {
|
|
|
3207
3214
|
};
|
|
3208
3215
|
|
|
3209
3216
|
const Platform = {
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3217
|
+
__proto__: null,
|
|
3218
|
+
getNodePath,
|
|
3219
|
+
isFirefox
|
|
3213
3220
|
};
|
|
3214
3221
|
|
|
3215
3222
|
const show$3 = async () => {
|
|
3216
3223
|
// @ts-ignore
|
|
3217
|
-
await invoke
|
|
3224
|
+
await invoke('Panel.selectIndex', 0);
|
|
3218
3225
|
};
|
|
3219
3226
|
const handleFilterInput = async text => {
|
|
3220
3227
|
// @ts-ignore
|
|
3221
|
-
await invoke
|
|
3228
|
+
await invoke('Problems.handleFilterInput', text, Script);
|
|
3222
3229
|
};
|
|
3223
3230
|
const copyMessage = async () => {
|
|
3224
3231
|
// @ts-ignore
|
|
3225
|
-
await invoke
|
|
3232
|
+
await invoke('Problems.copyMessage');
|
|
3226
3233
|
};
|
|
3227
3234
|
const focusIndex$3 = async index => {
|
|
3228
3235
|
// @ts-ignore
|
|
3229
|
-
await invoke
|
|
3236
|
+
await invoke('Problems.focusIndex', index);
|
|
3230
3237
|
};
|
|
3231
3238
|
const handleArrowLeft = async () => {
|
|
3232
3239
|
// @ts-ignore
|
|
3233
|
-
await invoke
|
|
3240
|
+
await invoke('Problems.handleArrowLeft');
|
|
3234
3241
|
};
|
|
3235
3242
|
const handleArrowRight = async () => {
|
|
3236
3243
|
// @ts-ignore
|
|
3237
|
-
await invoke
|
|
3244
|
+
await invoke('Problems.handleArrowRight');
|
|
3238
3245
|
};
|
|
3239
3246
|
const handleClickAt$1 = async (x, y) => {
|
|
3240
3247
|
// @ts-ignore
|
|
3241
|
-
await invoke
|
|
3248
|
+
await invoke('Problems.handleClickAt', x, y);
|
|
3242
3249
|
};
|
|
3243
3250
|
const handleIconThemeChange = async () => {
|
|
3244
3251
|
// @ts-ignore
|
|
3245
|
-
await invoke
|
|
3252
|
+
await invoke('Problems.handleIconThemeChange');
|
|
3246
3253
|
};
|
|
3247
3254
|
const viewAsList = async () => {
|
|
3248
3255
|
// @ts-ignore
|
|
3249
|
-
await invoke
|
|
3256
|
+
await invoke('Problems.viewAsList');
|
|
3250
3257
|
};
|
|
3251
3258
|
const viewAsTable = async () => {
|
|
3252
3259
|
// @ts-ignore
|
|
3253
|
-
await invoke
|
|
3260
|
+
await invoke('Problems.viewAsTable');
|
|
3254
3261
|
};
|
|
3255
3262
|
|
|
3256
3263
|
const Problems = {
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3264
|
+
__proto__: null,
|
|
3265
|
+
copyMessage,
|
|
3266
|
+
focusIndex: focusIndex$3,
|
|
3267
|
+
handleArrowLeft,
|
|
3268
|
+
handleArrowRight,
|
|
3269
|
+
handleClickAt: handleClickAt$1,
|
|
3270
|
+
handleFilterInput,
|
|
3271
|
+
handleIconThemeChange,
|
|
3272
|
+
show: show$3,
|
|
3273
|
+
viewAsList,
|
|
3274
|
+
viewAsTable
|
|
3268
3275
|
};
|
|
3269
3276
|
|
|
3270
3277
|
const callbacks = Object.create(null);
|
|
@@ -3276,7 +3283,7 @@ const registerCallbackCommand = async commandId => {
|
|
|
3276
3283
|
} = Promise.withResolvers();
|
|
3277
3284
|
callbacks[id] = resolve;
|
|
3278
3285
|
// @ts-ignore
|
|
3279
|
-
await invoke
|
|
3286
|
+
await invoke(`Test.registerTestCommand`, commandId);
|
|
3280
3287
|
return {
|
|
3281
3288
|
promise
|
|
3282
3289
|
};
|
|
@@ -3286,59 +3293,59 @@ const QuickPick$1 = 'QuickPick';
|
|
|
3286
3293
|
|
|
3287
3294
|
const open$1 = async () => {
|
|
3288
3295
|
// @ts-ignore
|
|
3289
|
-
await invoke
|
|
3296
|
+
await invoke('Viewlet.openWidget', QuickPick$1, 'everything');
|
|
3290
3297
|
};
|
|
3291
3298
|
const handleInput$2 = async value => {
|
|
3292
3299
|
// @ts-ignore
|
|
3293
|
-
await invoke
|
|
3300
|
+
await invoke('QuickPick.handleInput', value, 0);
|
|
3294
3301
|
};
|
|
3295
3302
|
const handleClickAt = async (x, y) => {
|
|
3296
3303
|
// @ts-ignore
|
|
3297
|
-
await invoke
|
|
3304
|
+
await invoke('QuickPick.handleClickAt', x, y);
|
|
3298
3305
|
};
|
|
3299
3306
|
const setValue$1 = async value => {
|
|
3300
3307
|
// @ts-ignore
|
|
3301
|
-
await invoke
|
|
3308
|
+
await invoke('QuickPick.setValue', value);
|
|
3302
3309
|
};
|
|
3303
3310
|
const focusNext$2 = async () => {
|
|
3304
3311
|
// @ts-ignore
|
|
3305
|
-
await invoke
|
|
3312
|
+
await invoke('QuickPick.focusNext');
|
|
3306
3313
|
};
|
|
3307
3314
|
const focusFirst$2 = async () => {
|
|
3308
3315
|
// @ts-ignore
|
|
3309
|
-
await invoke
|
|
3316
|
+
await invoke('QuickPick.focusFirst');
|
|
3310
3317
|
};
|
|
3311
3318
|
const focusLast$1 = async () => {
|
|
3312
3319
|
// @ts-ignore
|
|
3313
|
-
await invoke
|
|
3320
|
+
await invoke('QuickPick.focusLast');
|
|
3314
3321
|
};
|
|
3315
3322
|
const focusIndex$2 = async index => {
|
|
3316
3323
|
// @ts-ignore
|
|
3317
|
-
await invoke
|
|
3324
|
+
await invoke('QuickPick.focusIndex', index);
|
|
3318
3325
|
};
|
|
3319
3326
|
const focusPrevious$2 = async () => {
|
|
3320
3327
|
// @ts-ignore
|
|
3321
|
-
await invoke
|
|
3328
|
+
await invoke('QuickPick.focusPrevious');
|
|
3322
3329
|
};
|
|
3323
3330
|
const selectItem = async label => {
|
|
3324
3331
|
// @ts-ignore
|
|
3325
|
-
await invoke
|
|
3332
|
+
await invoke('QuickPick.selectItem', label);
|
|
3326
3333
|
};
|
|
3327
3334
|
const selectIndex$3 = async index => {
|
|
3328
3335
|
// @ts-ignore
|
|
3329
|
-
await invoke
|
|
3336
|
+
await invoke('QuickPick.selectIndex', index);
|
|
3330
3337
|
};
|
|
3331
3338
|
const selectCurrentIndex = async () => {
|
|
3332
3339
|
// @ts-ignore
|
|
3333
|
-
await invoke
|
|
3340
|
+
await invoke('QuickPick.selectCurrentIndex');
|
|
3334
3341
|
};
|
|
3335
3342
|
const executeCommand = async label => {
|
|
3336
3343
|
// @ts-ignore
|
|
3337
|
-
await invoke
|
|
3344
|
+
await invoke('QuickPick.showCommands');
|
|
3338
3345
|
// @ts-ignore
|
|
3339
|
-
await invoke
|
|
3346
|
+
await invoke('QuickPick.handleInput', label, 0);
|
|
3340
3347
|
// @ts-ignore
|
|
3341
|
-
await invoke
|
|
3348
|
+
await invoke('QuickPick.selectItem', label);
|
|
3342
3349
|
};
|
|
3343
3350
|
const selectItem2 = async ({
|
|
3344
3351
|
callbackCommand,
|
|
@@ -3348,46 +3355,46 @@ const selectItem2 = async ({
|
|
|
3348
3355
|
promise
|
|
3349
3356
|
} = await registerCallbackCommand(callbackCommand);
|
|
3350
3357
|
// @ts-ignore
|
|
3351
|
-
invoke
|
|
3358
|
+
invoke('QuickPick.selectItem', label);
|
|
3352
3359
|
await promise;
|
|
3353
3360
|
};
|
|
3354
3361
|
|
|
3355
3362
|
const QuickPick = {
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3363
|
+
__proto__: null,
|
|
3364
|
+
executeCommand,
|
|
3365
|
+
focusFirst: focusFirst$2,
|
|
3366
|
+
focusIndex: focusIndex$2,
|
|
3367
|
+
focusLast: focusLast$1,
|
|
3368
|
+
focusNext: focusNext$2,
|
|
3369
|
+
focusPrevious: focusPrevious$2,
|
|
3370
|
+
handleClickAt,
|
|
3371
|
+
handleInput: handleInput$2,
|
|
3372
|
+
open: open$1,
|
|
3373
|
+
selectCurrentIndex,
|
|
3374
|
+
selectIndex: selectIndex$3,
|
|
3375
|
+
selectItem,
|
|
3376
|
+
selectItem2,
|
|
3377
|
+
setValue: setValue$1
|
|
3371
3378
|
};
|
|
3372
3379
|
|
|
3373
3380
|
const clear$1 = async () => {
|
|
3374
3381
|
// @ts-ignore
|
|
3375
|
-
return invoke
|
|
3382
|
+
return invoke('References.clear');
|
|
3376
3383
|
};
|
|
3377
3384
|
const collapseAll$1 = async () => {
|
|
3378
3385
|
// @ts-ignore
|
|
3379
|
-
return invoke
|
|
3386
|
+
return invoke('References.collapseAll');
|
|
3380
3387
|
};
|
|
3381
3388
|
const refresh = async () => {
|
|
3382
3389
|
// @ts-ignore
|
|
3383
|
-
return invoke
|
|
3390
|
+
return invoke('References.refresh');
|
|
3384
3391
|
};
|
|
3385
3392
|
|
|
3386
3393
|
const References = {
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3394
|
+
__proto__: null,
|
|
3395
|
+
clear: clear$1,
|
|
3396
|
+
collapseAll: collapseAll$1,
|
|
3397
|
+
refresh
|
|
3391
3398
|
};
|
|
3392
3399
|
|
|
3393
3400
|
const show$2 = async () => {
|
|
@@ -3395,242 +3402,242 @@ const show$2 = async () => {
|
|
|
3395
3402
|
};
|
|
3396
3403
|
const handleClickSectionBreakPoints = async () => {
|
|
3397
3404
|
// @ts-ignore
|
|
3398
|
-
await invoke
|
|
3405
|
+
await invoke('Run And Debug.handleClickSectionBreakPoints');
|
|
3399
3406
|
};
|
|
3400
3407
|
const handleClickSectionWatch = async () => {
|
|
3401
3408
|
// @ts-ignore
|
|
3402
|
-
await invoke
|
|
3409
|
+
await invoke('Run And Debug.handleClickSectionWatch');
|
|
3403
3410
|
};
|
|
3404
3411
|
const addWatchExpression = async expression => {
|
|
3405
3412
|
// @ts-ignore
|
|
3406
|
-
await invoke
|
|
3413
|
+
await invoke('Run And Debug.addWatchExpression', expression);
|
|
3407
3414
|
};
|
|
3408
3415
|
const handleWatchValueChange = async () => {
|
|
3409
3416
|
// @ts-ignore
|
|
3410
|
-
await invoke
|
|
3417
|
+
await invoke('Run And Debug.handleWatchValueChange');
|
|
3411
3418
|
};
|
|
3412
3419
|
const acceptWatchExpressionEdit = async () => {
|
|
3413
3420
|
// @ts-ignore
|
|
3414
|
-
await invoke
|
|
3421
|
+
await invoke('Run And Debug.acceptWatchExpressionEdit');
|
|
3415
3422
|
};
|
|
3416
3423
|
const selectIndex$2 = async index => {
|
|
3417
3424
|
// @ts-ignore
|
|
3418
|
-
await invoke
|
|
3425
|
+
await invoke('Run And Debug.selectIndex', index);
|
|
3419
3426
|
};
|
|
3420
3427
|
const setPauseOnExceptions = async value => {
|
|
3421
3428
|
// @ts-ignore
|
|
3422
|
-
await invoke
|
|
3429
|
+
await invoke('Run And Debug.setPauseOnExceptions', value);
|
|
3423
3430
|
};
|
|
3424
3431
|
const handleRename = async () => {
|
|
3425
3432
|
// @ts-ignore
|
|
3426
|
-
await invoke
|
|
3433
|
+
await invoke('Run And Debug.handleRename');
|
|
3427
3434
|
};
|
|
3428
3435
|
const handleSpace = async () => {
|
|
3429
3436
|
// @ts-ignore
|
|
3430
|
-
await invoke
|
|
3437
|
+
await invoke('Run And Debug.handleSpace');
|
|
3431
3438
|
};
|
|
3432
3439
|
|
|
3433
3440
|
const RunAndDebug = {
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3441
|
+
__proto__: null,
|
|
3442
|
+
acceptWatchExpressionEdit,
|
|
3443
|
+
addWatchExpression,
|
|
3444
|
+
handleClickSectionBreakPoints,
|
|
3445
|
+
handleClickSectionWatch,
|
|
3446
|
+
handleRename,
|
|
3447
|
+
handleSpace,
|
|
3448
|
+
handleWatchValueChange,
|
|
3449
|
+
selectIndex: selectIndex$2,
|
|
3450
|
+
setPauseOnExceptions,
|
|
3451
|
+
show: show$2
|
|
3445
3452
|
};
|
|
3446
3453
|
|
|
3447
3454
|
const setValue = async value => {
|
|
3448
3455
|
// @ts-ignore
|
|
3449
|
-
await invoke
|
|
3456
|
+
await invoke('Search.handleInput', value, Script);
|
|
3450
3457
|
};
|
|
3451
3458
|
const setReplaceValue = async value => {
|
|
3452
3459
|
// @ts-ignore
|
|
3453
|
-
await invoke
|
|
3460
|
+
await invoke('Search.handleReplaceInput', value, Script);
|
|
3454
3461
|
};
|
|
3455
3462
|
const setExcludeValue = async value => {
|
|
3456
3463
|
// @ts-ignore
|
|
3457
|
-
await invoke
|
|
3464
|
+
await invoke('Search.handleExcludeInput', value, Script);
|
|
3458
3465
|
};
|
|
3459
3466
|
const replaceAll = async () => {
|
|
3460
|
-
await invoke
|
|
3467
|
+
await invoke('Search.replaceAll');
|
|
3461
3468
|
};
|
|
3462
3469
|
const setIncludeValue = async value => {
|
|
3463
3470
|
// @ts-ignore
|
|
3464
|
-
await invoke
|
|
3471
|
+
await invoke('Search.handleIncludeInput', value, Script);
|
|
3465
3472
|
};
|
|
3466
3473
|
const clearSearchResults = async () => {
|
|
3467
|
-
await invoke
|
|
3474
|
+
await invoke('Search.clearSearchResults');
|
|
3468
3475
|
};
|
|
3469
3476
|
const openDetails = async () => {
|
|
3470
|
-
await invoke
|
|
3477
|
+
await invoke('Search.openDetails');
|
|
3471
3478
|
};
|
|
3472
3479
|
const collapseDetails = async () => {
|
|
3473
|
-
await invoke
|
|
3480
|
+
await invoke('Search.collapseDetails');
|
|
3474
3481
|
};
|
|
3475
3482
|
const dismissItem = async () => {
|
|
3476
|
-
await invoke
|
|
3483
|
+
await invoke('Search.dismissItem');
|
|
3477
3484
|
};
|
|
3478
3485
|
const focusFirst$1 = async () => {
|
|
3479
|
-
await invoke
|
|
3486
|
+
await invoke('Search.focusFirst');
|
|
3480
3487
|
};
|
|
3481
3488
|
const focusIndex$1 = async index => {
|
|
3482
|
-
await invoke
|
|
3489
|
+
await invoke('Search.focusIndex', index);
|
|
3483
3490
|
};
|
|
3484
3491
|
const selectIndex$1 = async index => {
|
|
3485
|
-
await invoke
|
|
3492
|
+
await invoke('Search.selectIndex', index);
|
|
3486
3493
|
};
|
|
3487
3494
|
const focusNext$1 = async () => {
|
|
3488
|
-
await invoke
|
|
3495
|
+
await invoke('Search.focusNext');
|
|
3489
3496
|
};
|
|
3490
3497
|
const handleWheel = async (deltaMode, deltaY) => {
|
|
3491
|
-
await invoke
|
|
3498
|
+
await invoke('Search.handleWheel', deltaMode, deltaY);
|
|
3492
3499
|
};
|
|
3493
3500
|
const focusNextPage = async () => {
|
|
3494
3501
|
// @ts-ignore
|
|
3495
|
-
await invoke
|
|
3502
|
+
await invoke('Search.focusPage');
|
|
3496
3503
|
};
|
|
3497
3504
|
const focusPreviousPage = async () => {
|
|
3498
|
-
await invoke
|
|
3505
|
+
await invoke('Search.focusPreviousPage');
|
|
3499
3506
|
};
|
|
3500
3507
|
const focusPrevious$1 = async () => {
|
|
3501
|
-
await invoke
|
|
3508
|
+
await invoke('Search.focusPrevious');
|
|
3502
3509
|
};
|
|
3503
3510
|
const toggleSearchDetails = async () => {
|
|
3504
|
-
await invoke
|
|
3511
|
+
await invoke('Search.toggleSearchDetails');
|
|
3505
3512
|
};
|
|
3506
3513
|
const toggleMatchCase = async () => {
|
|
3507
|
-
await invoke
|
|
3514
|
+
await invoke('Search.toggleMatchCase');
|
|
3508
3515
|
};
|
|
3509
3516
|
const toggleMatchWholeWord = async () => {
|
|
3510
|
-
await invoke
|
|
3517
|
+
await invoke('Search.toggleMatchWholeWord');
|
|
3511
3518
|
};
|
|
3512
3519
|
const togglePreserveCase = async () => {
|
|
3513
|
-
await invoke
|
|
3520
|
+
await invoke('Search.togglePreserveCase');
|
|
3514
3521
|
};
|
|
3515
3522
|
const toggleUseRegularExpression = async () => {
|
|
3516
|
-
await invoke
|
|
3523
|
+
await invoke('Search.toggleUseRegularExpression');
|
|
3517
3524
|
};
|
|
3518
3525
|
const toggleReplace = async () => {
|
|
3519
|
-
await invoke
|
|
3526
|
+
await invoke('Search.toggleReplace');
|
|
3520
3527
|
};
|
|
3521
3528
|
const open = async () => {
|
|
3522
|
-
await invoke
|
|
3529
|
+
await invoke('SideBar.openViewlet', 'Search');
|
|
3523
3530
|
};
|
|
3524
3531
|
const setLimit = async limit => {
|
|
3525
3532
|
// @ts-ignore
|
|
3526
|
-
await invoke
|
|
3533
|
+
await invoke('Search.setLimit', limit);
|
|
3527
3534
|
};
|
|
3528
3535
|
const handleListBlur = async () => {
|
|
3529
3536
|
// @ts-ignore
|
|
3530
|
-
await invoke
|
|
3537
|
+
await invoke('Search.handleListBlur');
|
|
3531
3538
|
};
|
|
3532
3539
|
const collapseAll = async () => {
|
|
3533
3540
|
// @ts-ignore
|
|
3534
|
-
await invoke
|
|
3541
|
+
await invoke('Search.collapseAll');
|
|
3535
3542
|
};
|
|
3536
3543
|
const copy = async () => {
|
|
3537
3544
|
// @ts-ignore
|
|
3538
|
-
await invoke
|
|
3545
|
+
await invoke('Search.copy');
|
|
3539
3546
|
};
|
|
3540
3547
|
const copyPath = async () => {
|
|
3541
3548
|
// @ts-ignore
|
|
3542
|
-
await invoke
|
|
3549
|
+
await invoke('Search.copyPath');
|
|
3543
3550
|
};
|
|
3544
3551
|
const handleInputCut = async name => {
|
|
3545
3552
|
// @ts-ignore
|
|
3546
|
-
await invoke
|
|
3553
|
+
await invoke('Search.handleInputCut', name);
|
|
3547
3554
|
};
|
|
3548
3555
|
const handleInputPaste = async name => {
|
|
3549
3556
|
// @ts-ignore
|
|
3550
|
-
await invoke
|
|
3557
|
+
await invoke('Search.handleInputPaste', name);
|
|
3551
3558
|
};
|
|
3552
3559
|
const handleInputCopy = async name => {
|
|
3553
3560
|
// @ts-ignore
|
|
3554
|
-
await invoke
|
|
3561
|
+
await invoke('Search.handleInputCopy', name);
|
|
3555
3562
|
};
|
|
3556
3563
|
const handleInputSelectionChange = async (name, start, end) => {
|
|
3557
3564
|
// @ts-ignore
|
|
3558
|
-
await invoke
|
|
3565
|
+
await invoke('Search.handleInputSelectionChange', name, start, end);
|
|
3559
3566
|
};
|
|
3560
3567
|
const handleInputContextMenu = async (name, button, x, y) => {
|
|
3561
3568
|
// @ts-ignore
|
|
3562
|
-
await invoke
|
|
3569
|
+
await invoke('Search.handleInputConextMenu', name, button, x, y);
|
|
3563
3570
|
};
|
|
3564
3571
|
const handleContextMenu$2 = async (button, x, y) => {
|
|
3565
3572
|
// @ts-ignore
|
|
3566
|
-
await invoke
|
|
3573
|
+
await invoke('Search.handleContextMenu', name, button, x, y);
|
|
3567
3574
|
};
|
|
3568
3575
|
|
|
3569
3576
|
const Search = {
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3577
|
+
__proto__: null,
|
|
3578
|
+
clearSearchResults,
|
|
3579
|
+
collapseAll,
|
|
3580
|
+
collapseDetails,
|
|
3581
|
+
copy,
|
|
3582
|
+
copyPath,
|
|
3583
|
+
dismissItem,
|
|
3584
|
+
focusFirst: focusFirst$1,
|
|
3585
|
+
focusIndex: focusIndex$1,
|
|
3586
|
+
focusNext: focusNext$1,
|
|
3587
|
+
focusNextPage,
|
|
3588
|
+
focusPrevious: focusPrevious$1,
|
|
3589
|
+
focusPreviousPage,
|
|
3590
|
+
handleContextMenu: handleContextMenu$2,
|
|
3591
|
+
handleInputContextMenu,
|
|
3592
|
+
handleInputCopy,
|
|
3593
|
+
handleInputCut,
|
|
3594
|
+
handleInputPaste,
|
|
3595
|
+
handleInputSelectionChange,
|
|
3596
|
+
handleListBlur,
|
|
3597
|
+
handleWheel,
|
|
3598
|
+
open,
|
|
3599
|
+
openDetails,
|
|
3600
|
+
replaceAll,
|
|
3601
|
+
selectIndex: selectIndex$1,
|
|
3602
|
+
setExcludeValue,
|
|
3603
|
+
setIncludeValue,
|
|
3604
|
+
setLimit,
|
|
3605
|
+
setReplaceValue,
|
|
3606
|
+
setValue,
|
|
3607
|
+
toggleMatchCase,
|
|
3608
|
+
toggleMatchWholeWord,
|
|
3609
|
+
togglePreserveCase,
|
|
3610
|
+
toggleReplace,
|
|
3611
|
+
toggleSearchDetails,
|
|
3612
|
+
toggleUseRegularExpression
|
|
3606
3613
|
};
|
|
3607
3614
|
|
|
3608
3615
|
const show$1 = async () => {
|
|
3609
|
-
return invoke
|
|
3616
|
+
return invoke('Main.openUri', 'settings://');
|
|
3610
3617
|
};
|
|
3611
3618
|
const handleInput$1 = async searchValue => {
|
|
3612
3619
|
// @ts-ignore
|
|
3613
|
-
return invoke
|
|
3620
|
+
return invoke('Settings.handleInput', searchValue, Script);
|
|
3614
3621
|
};
|
|
3615
3622
|
const usePreviousSearchValue = async () => {
|
|
3616
3623
|
// @ts-ignore
|
|
3617
|
-
return invoke
|
|
3624
|
+
return invoke('Settings.usePreviousSearchValue');
|
|
3618
3625
|
};
|
|
3619
3626
|
const useNextSearchValue = async () => {
|
|
3620
3627
|
// @ts-ignore
|
|
3621
|
-
return invoke
|
|
3628
|
+
return invoke('Settings.useNextSearchValue');
|
|
3622
3629
|
};
|
|
3623
3630
|
const clear = async searchValue => {
|
|
3624
3631
|
// @ts-ignore
|
|
3625
|
-
return invoke
|
|
3632
|
+
return invoke('Settings.clear', searchValue, Script);
|
|
3626
3633
|
};
|
|
3627
3634
|
const clearHistory = async () => {
|
|
3628
3635
|
// @ts-ignore
|
|
3629
|
-
return invoke
|
|
3636
|
+
return invoke('Settings.clearHistory', searchValue, Script);
|
|
3630
3637
|
};
|
|
3631
3638
|
const selectTab = async tabId => {
|
|
3632
3639
|
// @ts-ignore
|
|
3633
|
-
return invoke
|
|
3640
|
+
return invoke('Settings.handleClickTab', tabId);
|
|
3634
3641
|
};
|
|
3635
3642
|
const selectWorkspace = async () => {
|
|
3636
3643
|
await selectTab('workspace');
|
|
@@ -3646,46 +3653,46 @@ const selectWindow = async () => {
|
|
|
3646
3653
|
};
|
|
3647
3654
|
const handleScroll = async scrollTop => {
|
|
3648
3655
|
// @ts-ignore
|
|
3649
|
-
await invoke
|
|
3656
|
+
await invoke('Settings.handleScroll', scrollTop, Script);
|
|
3650
3657
|
};
|
|
3651
3658
|
const handleClickFilterButton = async (x, y) => {
|
|
3652
3659
|
// @ts-ignore
|
|
3653
|
-
await invoke
|
|
3660
|
+
await invoke('Settings.handleClickFilterButton', x, y);
|
|
3654
3661
|
};
|
|
3655
3662
|
|
|
3656
3663
|
const SettingsView = {
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3664
|
+
__proto__: null,
|
|
3665
|
+
clear,
|
|
3666
|
+
clearHistory,
|
|
3667
|
+
handleClickFilterButton,
|
|
3668
|
+
handleInput: handleInput$1,
|
|
3669
|
+
handleScroll,
|
|
3670
|
+
selectExtensions,
|
|
3671
|
+
selectTab,
|
|
3672
|
+
selectTextEditor,
|
|
3673
|
+
selectWindow,
|
|
3674
|
+
selectWorkspace,
|
|
3675
|
+
show: show$1,
|
|
3676
|
+
useNextSearchValue,
|
|
3677
|
+
usePreviousSearchValue
|
|
3671
3678
|
};
|
|
3672
3679
|
|
|
3673
3680
|
const selectIndex = async index => {
|
|
3674
3681
|
// @ts-ignore
|
|
3675
|
-
await invoke
|
|
3682
|
+
await invoke('Source Control.selectIndex', index);
|
|
3676
3683
|
};
|
|
3677
3684
|
const acceptInput = async () => {
|
|
3678
|
-
await invoke
|
|
3685
|
+
await invoke('Source Control.acceptInput');
|
|
3679
3686
|
};
|
|
3680
3687
|
const handleInput = async text => {
|
|
3681
3688
|
// @ts-ignore
|
|
3682
|
-
await invoke
|
|
3689
|
+
await invoke('Source Control.handleInput', text, Script$1);
|
|
3683
3690
|
};
|
|
3684
3691
|
const handleClickSourceControlButtons = async (index, name) => {
|
|
3685
|
-
await invoke
|
|
3692
|
+
await invoke('Source Control.handleClickSourceControlButtons', index, name);
|
|
3686
3693
|
};
|
|
3687
3694
|
const handleContextMenu$1 = async (button, x, y) => {
|
|
3688
|
-
await invoke
|
|
3695
|
+
await invoke('Source Control.handleContextMenu', button, x, y);
|
|
3689
3696
|
};
|
|
3690
3697
|
const show = async () => {
|
|
3691
3698
|
// @ts-ignore
|
|
@@ -3693,117 +3700,117 @@ const show = async () => {
|
|
|
3693
3700
|
};
|
|
3694
3701
|
|
|
3695
3702
|
const SourceControl = {
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
+
__proto__: null,
|
|
3704
|
+
acceptInput,
|
|
3705
|
+
handleClickSourceControlButtons,
|
|
3706
|
+
handleContextMenu: handleContextMenu$1,
|
|
3707
|
+
handleInput,
|
|
3708
|
+
selectIndex,
|
|
3709
|
+
show
|
|
3703
3710
|
};
|
|
3704
3711
|
|
|
3705
3712
|
const update = async () => {
|
|
3706
|
-
await invoke
|
|
3713
|
+
await invoke('StatusBar.updateStatusBarItems');
|
|
3707
3714
|
};
|
|
3708
3715
|
|
|
3709
3716
|
const StatusBar = {
|
|
3710
|
-
|
|
3711
|
-
|
|
3717
|
+
__proto__: null,
|
|
3718
|
+
update
|
|
3712
3719
|
};
|
|
3713
3720
|
|
|
3714
3721
|
const closeMenu = async () => {
|
|
3715
3722
|
// @ts-ignore
|
|
3716
|
-
await invoke
|
|
3723
|
+
await invoke('TitleBar.closeMenu');
|
|
3717
3724
|
};
|
|
3718
3725
|
const focus = async () => {
|
|
3719
3726
|
// @ts-ignore
|
|
3720
|
-
await invoke
|
|
3727
|
+
await invoke('TitleBar.focus');
|
|
3721
3728
|
};
|
|
3722
3729
|
const focusFirst = async () => {
|
|
3723
3730
|
// @ts-ignore
|
|
3724
|
-
await invoke
|
|
3731
|
+
await invoke('TitleBar.focusFirst');
|
|
3725
3732
|
};
|
|
3726
3733
|
const focusIndex = async index => {
|
|
3727
3734
|
// @ts-ignore
|
|
3728
|
-
await invoke
|
|
3735
|
+
await invoke('TitleBar.focusIndex', index);
|
|
3729
3736
|
};
|
|
3730
3737
|
const focusLast = async () => {
|
|
3731
3738
|
// @ts-ignore
|
|
3732
|
-
await invoke
|
|
3739
|
+
await invoke('TitleBar.focusLast');
|
|
3733
3740
|
};
|
|
3734
3741
|
const focusNext = async () => {
|
|
3735
3742
|
// @ts-ignore
|
|
3736
|
-
await invoke
|
|
3743
|
+
await invoke('TitleBar.focusNext');
|
|
3737
3744
|
};
|
|
3738
3745
|
const focusPrevious = async () => {
|
|
3739
3746
|
// @ts-ignore
|
|
3740
|
-
await invoke
|
|
3747
|
+
await invoke('TitleBar.focusPrevious');
|
|
3741
3748
|
};
|
|
3742
3749
|
const handleKeyArrowDown = async () => {
|
|
3743
3750
|
// @ts-ignore
|
|
3744
|
-
await invoke
|
|
3751
|
+
await invoke('TitleBar.handleKeyArrowDown');
|
|
3745
3752
|
};
|
|
3746
3753
|
const handleKeyArrowLeft = async () => {
|
|
3747
3754
|
// @ts-ignore
|
|
3748
|
-
await invoke
|
|
3755
|
+
await invoke('TitleBar.handleKeyArrowLeft');
|
|
3749
3756
|
};
|
|
3750
3757
|
const handleKeyArrowRight = async () => {
|
|
3751
3758
|
// @ts-ignore
|
|
3752
|
-
await invoke
|
|
3759
|
+
await invoke('TitleBar.handleKeyArrowRight');
|
|
3753
3760
|
};
|
|
3754
3761
|
const handleKeyArrowUp = async () => {
|
|
3755
3762
|
// @ts-ignore
|
|
3756
|
-
await invoke
|
|
3763
|
+
await invoke('TitleBar.handleKeyArrowUp');
|
|
3757
3764
|
};
|
|
3758
3765
|
const handleKeyEnd = async () => {
|
|
3759
3766
|
// @ts-ignore
|
|
3760
|
-
await invoke
|
|
3767
|
+
await invoke('TitleBar.handleKeyEnd');
|
|
3761
3768
|
};
|
|
3762
3769
|
const handleKeyHome = async () => {
|
|
3763
3770
|
// @ts-ignore
|
|
3764
|
-
await invoke
|
|
3771
|
+
await invoke('TitleBar.handleKeyHome');
|
|
3765
3772
|
};
|
|
3766
3773
|
const handleKeySpace = async () => {
|
|
3767
3774
|
// @ts-ignore
|
|
3768
|
-
await invoke
|
|
3775
|
+
await invoke('TitleBar.handleKeySpace');
|
|
3769
3776
|
};
|
|
3770
3777
|
const handleKeyEscape = async () => {
|
|
3771
3778
|
// @ts-ignore
|
|
3772
|
-
await invoke
|
|
3779
|
+
await invoke('TitleBar.handleKeyEscape');
|
|
3773
3780
|
};
|
|
3774
3781
|
const toggleIndex = async index => {
|
|
3775
3782
|
// @ts-ignore
|
|
3776
|
-
await invoke
|
|
3783
|
+
await invoke('TitleBar.toggleIndex', index);
|
|
3777
3784
|
};
|
|
3778
3785
|
const toggleMenu = async () => {
|
|
3779
3786
|
// @ts-ignore
|
|
3780
|
-
await invoke
|
|
3787
|
+
await invoke('TitleBar.toggleMenu');
|
|
3781
3788
|
};
|
|
3782
3789
|
const handleContextMenu = async (button, x, y) => {
|
|
3783
3790
|
// @ts-ignore
|
|
3784
|
-
await invoke
|
|
3791
|
+
await invoke('TitleBar.handleContextMenu', button, x, y);
|
|
3785
3792
|
};
|
|
3786
3793
|
|
|
3787
3794
|
const TitleBarMenuBar = {
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3795
|
+
__proto__: null,
|
|
3796
|
+
closeMenu,
|
|
3797
|
+
focus,
|
|
3798
|
+
focusFirst,
|
|
3799
|
+
focusIndex,
|
|
3800
|
+
focusLast,
|
|
3801
|
+
focusNext,
|
|
3802
|
+
focusPrevious,
|
|
3803
|
+
handleContextMenu,
|
|
3804
|
+
handleKeyArrowDown,
|
|
3805
|
+
handleKeyArrowLeft,
|
|
3806
|
+
handleKeyArrowRight,
|
|
3807
|
+
handleKeyArrowUp,
|
|
3808
|
+
handleKeyEnd,
|
|
3809
|
+
handleKeyEscape,
|
|
3810
|
+
handleKeyHome,
|
|
3811
|
+
handleKeySpace,
|
|
3812
|
+
toggleIndex,
|
|
3813
|
+
toggleMenu
|
|
3807
3814
|
};
|
|
3808
3815
|
|
|
3809
3816
|
let url = '';
|
|
@@ -3815,9 +3822,9 @@ const resolve = relativePath => {
|
|
|
3815
3822
|
};
|
|
3816
3823
|
|
|
3817
3824
|
const Url = {
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3825
|
+
__proto__: null,
|
|
3826
|
+
resolve,
|
|
3827
|
+
setUrl
|
|
3821
3828
|
};
|
|
3822
3829
|
|
|
3823
3830
|
const getPortTuple = () => {
|
|
@@ -3833,7 +3840,7 @@ const getPortTuple = () => {
|
|
|
3833
3840
|
|
|
3834
3841
|
// TODO ask webview worker directly
|
|
3835
3842
|
const getWebViewInfo = async webViewId => {
|
|
3836
|
-
const info = await invoke
|
|
3843
|
+
const info = await invoke('WebView.getWebViewInfo2', webViewId);
|
|
3837
3844
|
return info;
|
|
3838
3845
|
};
|
|
3839
3846
|
|
|
@@ -3892,12 +3899,12 @@ const fromId = async webViewId => {
|
|
|
3892
3899
|
};
|
|
3893
3900
|
|
|
3894
3901
|
const WebView = {
|
|
3895
|
-
|
|
3896
|
-
|
|
3902
|
+
__proto__: null,
|
|
3903
|
+
fromId
|
|
3897
3904
|
};
|
|
3898
3905
|
|
|
3899
3906
|
const setPath = async path => {
|
|
3900
|
-
await invoke
|
|
3907
|
+
await invoke('Workspace.setPath', path);
|
|
3901
3908
|
};
|
|
3902
3909
|
const openTmpDir = async () => {
|
|
3903
3910
|
const tmpDir = await getTmpDir();
|
|
@@ -3906,9 +3913,9 @@ const openTmpDir = async () => {
|
|
|
3906
3913
|
};
|
|
3907
3914
|
|
|
3908
3915
|
const Workspace = {
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3916
|
+
__proto__: null,
|
|
3917
|
+
openTmpDir,
|
|
3918
|
+
setPath
|
|
3912
3919
|
};
|
|
3913
3920
|
|
|
3914
3921
|
const createApi = (platform, assetDir) => {
|
|
@@ -4053,7 +4060,7 @@ const executeTest = async (name, fn, globals = {}) => {
|
|
|
4053
4060
|
console.info(`PASS ${name} in ${formattedDuration}`);
|
|
4054
4061
|
}
|
|
4055
4062
|
// @ts-ignore
|
|
4056
|
-
await invoke
|
|
4063
|
+
await invoke('TestFrameWork.showOverlay', type, background, text);
|
|
4057
4064
|
};
|
|
4058
4065
|
|
|
4059
4066
|
const hotReloadEnabled = async () => {
|
|
@@ -4111,7 +4118,7 @@ const watchForHotReload = async (platform, href) => {
|
|
|
4111
4118
|
const fileUrl = getFileUri(href);
|
|
4112
4119
|
const callbackCommand = 'FileWatcher.handleEvent';
|
|
4113
4120
|
// @ts-ignore
|
|
4114
|
-
await invoke
|
|
4121
|
+
await invoke('FileWatcher.watchFile', TestWorker, callbackCommand, fileUrl);
|
|
4115
4122
|
};
|
|
4116
4123
|
|
|
4117
4124
|
// TODO move this into three steps:
|