@lvce-editor/test-worker 10.14.0 → 11.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.ts +7 -0
- package/dist/testWorkerMain.js +927 -1092
- 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 */
|
|
@@ -1176,8 +1183,7 @@ const getLocatorInvoke = locator => {
|
|
|
1176
1183
|
const module = get(locator.webViewId);
|
|
1177
1184
|
return module.invoke;
|
|
1178
1185
|
}
|
|
1179
|
-
|
|
1180
|
-
return invoke$1;
|
|
1186
|
+
return invoke;
|
|
1181
1187
|
};
|
|
1182
1188
|
|
|
1183
1189
|
const locatorInvoke = async (locator, method, ...params) => {
|
|
@@ -1468,8 +1474,8 @@ class Expect {
|
|
|
1468
1474
|
}
|
|
1469
1475
|
|
|
1470
1476
|
const Expect$1 = {
|
|
1471
|
-
|
|
1472
|
-
|
|
1477
|
+
__proto__: null,
|
|
1478
|
+
expect: expect$1
|
|
1473
1479
|
};
|
|
1474
1480
|
|
|
1475
1481
|
const nameAnonymousFunction = (fn, name) => {
|
|
@@ -1592,93 +1598,89 @@ test.skip = async id => {
|
|
|
1592
1598
|
const state = 'skip';
|
|
1593
1599
|
const background = 'yellow';
|
|
1594
1600
|
const text = `test skipped ${id}`;
|
|
1595
|
-
|
|
1596
|
-
await invoke$1('TestFrameWork.showOverlay', state, background, text);
|
|
1601
|
+
await invoke('TestFrameWork.showOverlay', state, background, text);
|
|
1597
1602
|
};
|
|
1598
1603
|
const {
|
|
1599
1604
|
expect
|
|
1600
1605
|
} = Expect$1;
|
|
1601
1606
|
|
|
1602
1607
|
const show$6 = async () => {
|
|
1603
|
-
return invoke
|
|
1608
|
+
return invoke('About.showAbout');
|
|
1604
1609
|
};
|
|
1605
1610
|
const handleClickOk = async () => {
|
|
1606
|
-
return invoke
|
|
1611
|
+
return invoke('About.handleClickOk');
|
|
1607
1612
|
};
|
|
1608
1613
|
const handleClickClose = async () => {
|
|
1609
|
-
return invoke
|
|
1614
|
+
return invoke('About.handleClickClose');
|
|
1610
1615
|
};
|
|
1611
1616
|
const handleClickCopy = async () => {
|
|
1612
|
-
return invoke
|
|
1617
|
+
return invoke('About.handleClickCopy');
|
|
1613
1618
|
};
|
|
1614
1619
|
const focusNext$9 = async () => {
|
|
1615
|
-
return invoke
|
|
1620
|
+
return invoke('About.focusNext');
|
|
1616
1621
|
};
|
|
1617
1622
|
const focusPrevious$8 = async () => {
|
|
1618
|
-
return invoke
|
|
1623
|
+
return invoke('About.focusPrevious');
|
|
1619
1624
|
};
|
|
1620
1625
|
|
|
1621
1626
|
const About = {
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1627
|
+
__proto__: null,
|
|
1628
|
+
focusNext: focusNext$9,
|
|
1629
|
+
focusPrevious: focusPrevious$8,
|
|
1630
|
+
handleClickClose,
|
|
1631
|
+
handleClickCopy,
|
|
1632
|
+
handleClickOk,
|
|
1633
|
+
show: show$6
|
|
1629
1634
|
};
|
|
1630
1635
|
|
|
1631
1636
|
const focus$2 = async () => {
|
|
1632
|
-
await invoke
|
|
1637
|
+
await invoke('ActivityBar.focus');
|
|
1633
1638
|
};
|
|
1634
1639
|
const focusFirst$7 = async () => {
|
|
1635
|
-
await invoke
|
|
1640
|
+
await invoke('ActivityBar.focusFirst');
|
|
1636
1641
|
};
|
|
1637
1642
|
const focusLast$6 = async () => {
|
|
1638
|
-
await invoke
|
|
1643
|
+
await invoke('ActivityBar.focusLast');
|
|
1639
1644
|
};
|
|
1640
1645
|
const focusNext$8 = async () => {
|
|
1641
|
-
await invoke
|
|
1646
|
+
await invoke('ActivityBar.focusNext');
|
|
1642
1647
|
};
|
|
1643
1648
|
const focusPrevious$7 = async () => {
|
|
1644
|
-
await invoke
|
|
1649
|
+
await invoke('ActivityBar.focusPrevious');
|
|
1645
1650
|
};
|
|
1646
1651
|
const handleClick$3 = async index => {
|
|
1647
|
-
await invoke
|
|
1652
|
+
await invoke('ActivityBar.handleClick', index);
|
|
1648
1653
|
};
|
|
1649
1654
|
const handleContextMenu$5 = async () => {
|
|
1650
|
-
await invoke
|
|
1655
|
+
await invoke('ActivityBar.handleContextMenu');
|
|
1651
1656
|
};
|
|
1652
1657
|
const selectCurrent = async () => {
|
|
1653
|
-
await invoke
|
|
1658
|
+
await invoke('ActivityBar.selectCurrent');
|
|
1654
1659
|
};
|
|
1655
1660
|
|
|
1656
1661
|
const ActivityBar = {
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1662
|
+
__proto__: null,
|
|
1663
|
+
focus: focus$2,
|
|
1664
|
+
focusFirst: focusFirst$7,
|
|
1665
|
+
focusLast: focusLast$6,
|
|
1666
|
+
focusNext: focusNext$8,
|
|
1667
|
+
focusPrevious: focusPrevious$7,
|
|
1668
|
+
handleClick: handleClick$3,
|
|
1669
|
+
handleContextMenu: handleContextMenu$5,
|
|
1670
|
+
selectCurrent
|
|
1666
1671
|
};
|
|
1667
1672
|
|
|
1668
1673
|
const readNativeFiles = async () => {
|
|
1669
|
-
await invoke
|
|
1674
|
+
await invoke('ClipBoard.readNativeFiles');
|
|
1670
1675
|
};
|
|
1671
1676
|
const writeNativeFiles = async uris => {
|
|
1672
|
-
|
|
1673
|
-
await invoke$1('ClipBoard.writeNativeFiles', uris);
|
|
1677
|
+
await invoke('ClipBoard.writeNativeFiles', uris);
|
|
1674
1678
|
};
|
|
1675
1679
|
const enableMemoryClipBoard = async () => {
|
|
1676
|
-
|
|
1677
|
-
await invoke$1('ClipBoard.enableMemoryClipBoard');
|
|
1680
|
+
await invoke('ClipBoard.enableMemoryClipBoard');
|
|
1678
1681
|
};
|
|
1679
1682
|
const disableMemoryClipBoard = async () => {
|
|
1680
|
-
|
|
1681
|
-
await invoke$1('ClipBoard.disableMemoryClipBoard');
|
|
1683
|
+
await invoke('ClipBoard.disableMemoryClipBoard');
|
|
1682
1684
|
};
|
|
1683
1685
|
const matchesExpectedText = (actualText, expectedText) => {
|
|
1684
1686
|
if (typeof expectedText === 'string') {
|
|
@@ -1687,98 +1689,87 @@ const matchesExpectedText = (actualText, expectedText) => {
|
|
|
1687
1689
|
return expectedText.test(actualText);
|
|
1688
1690
|
};
|
|
1689
1691
|
const shouldHaveText$1 = async expectedText => {
|
|
1690
|
-
|
|
1691
|
-
const actualText = await invoke$1('ClipBoard.readMemoryText');
|
|
1692
|
+
const actualText = await invoke('ClipBoard.readMemoryText');
|
|
1692
1693
|
if (!matchesExpectedText(actualText, expectedText)) {
|
|
1693
1694
|
throw new AssertionError(`expected clipboard to have text "${expectedText}" but was "${actualText}"`);
|
|
1694
1695
|
}
|
|
1695
1696
|
};
|
|
1696
1697
|
const writeText = async text => {
|
|
1697
|
-
|
|
1698
|
-
await invoke$1('ClipBoard.writeText', text);
|
|
1698
|
+
await invoke('ClipBoard.writeText', text);
|
|
1699
1699
|
};
|
|
1700
1700
|
|
|
1701
1701
|
const ClipBoard = {
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1702
|
+
__proto__: null,
|
|
1703
|
+
disableMemoryClipBoard,
|
|
1704
|
+
enableMemoryClipBoard,
|
|
1705
|
+
readNativeFiles,
|
|
1706
|
+
shouldHaveText: shouldHaveText$1,
|
|
1707
|
+
writeNativeFiles,
|
|
1708
|
+
writeText
|
|
1709
1709
|
};
|
|
1710
1710
|
|
|
1711
1711
|
const setRelativeX = async x => {
|
|
1712
|
-
await invoke
|
|
1712
|
+
await invoke('ColorPicker.setRelativeX', x);
|
|
1713
1713
|
};
|
|
1714
1714
|
|
|
1715
1715
|
const ColorPicker = {
|
|
1716
|
-
|
|
1717
|
-
|
|
1716
|
+
__proto__: null,
|
|
1717
|
+
setRelativeX
|
|
1718
1718
|
};
|
|
1719
1719
|
|
|
1720
1720
|
const execute$1 = async (id, ...args) => {
|
|
1721
|
-
|
|
1722
|
-
return invoke$1(id, ...args);
|
|
1721
|
+
return invoke(id, ...args);
|
|
1723
1722
|
};
|
|
1724
1723
|
|
|
1725
1724
|
const Command = {
|
|
1726
|
-
|
|
1727
|
-
|
|
1725
|
+
__proto__: null,
|
|
1726
|
+
execute: execute$1
|
|
1728
1727
|
};
|
|
1729
1728
|
|
|
1730
1729
|
const selectItem$1 = async text => {
|
|
1731
|
-
await invoke
|
|
1730
|
+
await invoke('Menu.selectItem', text);
|
|
1732
1731
|
};
|
|
1733
1732
|
|
|
1734
1733
|
const ContextMenu = {
|
|
1735
|
-
|
|
1736
|
-
|
|
1734
|
+
__proto__: null,
|
|
1735
|
+
selectItem: selectItem$1
|
|
1737
1736
|
};
|
|
1738
1737
|
|
|
1739
1738
|
const openIframeInspector = async () => {
|
|
1740
|
-
|
|
1741
|
-
return invoke$1('Developer.openIframeInspector');
|
|
1739
|
+
return invoke('Developer.openIframeInspector');
|
|
1742
1740
|
};
|
|
1743
1741
|
const openCacheFolder = async () => {
|
|
1744
|
-
|
|
1745
|
-
return invoke$1('Developer.openCacheFolder');
|
|
1742
|
+
return invoke('Developer.openCacheFolder');
|
|
1746
1743
|
};
|
|
1747
1744
|
const openConfigFolder = async () => {
|
|
1748
|
-
|
|
1749
|
-
return invoke$1('Developer.openConfigFolder');
|
|
1745
|
+
return invoke('Developer.openConfigFolder');
|
|
1750
1746
|
};
|
|
1751
1747
|
const openLogsFolder = async () => {
|
|
1752
|
-
|
|
1753
|
-
return invoke$1('Developer.openLogsFolder');
|
|
1748
|
+
return invoke('Developer.openLogsFolder');
|
|
1754
1749
|
};
|
|
1755
1750
|
const openProcessExplorer = async () => {
|
|
1756
|
-
|
|
1757
|
-
return invoke$1('Developer.openProcessExplorer');
|
|
1751
|
+
return invoke('Developer.openProcessExplorer');
|
|
1758
1752
|
};
|
|
1759
1753
|
const reloadColorTheme = async () => {
|
|
1760
|
-
|
|
1761
|
-
return invoke$1('Developer.reloadColorTheme');
|
|
1754
|
+
return invoke('Developer.reloadColorTheme');
|
|
1762
1755
|
};
|
|
1763
1756
|
const reloadIconTheme = async () => {
|
|
1764
|
-
|
|
1765
|
-
return invoke$1('Developer.reloadIconTheme');
|
|
1757
|
+
return invoke('Developer.reloadIconTheme');
|
|
1766
1758
|
};
|
|
1767
1759
|
const toggleDeveloperTools = async () => {
|
|
1768
|
-
|
|
1769
|
-
return invoke$1('Developer.toggleDeveloperTools');
|
|
1760
|
+
return invoke('Developer.toggleDeveloperTools');
|
|
1770
1761
|
};
|
|
1771
1762
|
|
|
1772
1763
|
const Developer = {
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1764
|
+
__proto__: null,
|
|
1765
|
+
openCacheFolder,
|
|
1766
|
+
openConfigFolder,
|
|
1767
|
+
openIframeInspector,
|
|
1768
|
+
openLogsFolder,
|
|
1769
|
+
openProcessExplorer,
|
|
1770
|
+
reloadColorTheme,
|
|
1771
|
+
reloadIconTheme,
|
|
1772
|
+
toggleDeveloperTools
|
|
1782
1773
|
};
|
|
1783
1774
|
|
|
1784
1775
|
const createId = () => {
|
|
@@ -1797,29 +1788,26 @@ const executeMock$1 = (id, ...args) => {
|
|
|
1797
1788
|
};
|
|
1798
1789
|
|
|
1799
1790
|
const showSaveFilePicker = async () => {
|
|
1800
|
-
|
|
1801
|
-
await invoke$1('FilePicker.showSaveFilePicker');
|
|
1791
|
+
await invoke('FilePicker.showSaveFilePicker');
|
|
1802
1792
|
};
|
|
1803
1793
|
const mockSaveFilePicker = async fn => {
|
|
1804
1794
|
const id = registerMock(fn);
|
|
1805
|
-
|
|
1806
|
-
await invoke$1('FilePicker.mockSaveFilePicker', id);
|
|
1795
|
+
await invoke('FilePicker.mockSaveFilePicker', id);
|
|
1807
1796
|
};
|
|
1808
1797
|
const mockConfirm = async fn => {
|
|
1809
1798
|
const id = registerMock(fn);
|
|
1810
|
-
|
|
1811
|
-
await invoke$1('ConfirmPrompt.mock', id);
|
|
1799
|
+
await invoke('ConfirmPrompt.mock', id);
|
|
1812
1800
|
};
|
|
1813
1801
|
const executeMock = (id, ...args) => {
|
|
1814
1802
|
return executeMock$1(id, ...args);
|
|
1815
1803
|
};
|
|
1816
1804
|
|
|
1817
1805
|
const Dialog = {
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1806
|
+
__proto__: null,
|
|
1807
|
+
executeMock,
|
|
1808
|
+
mockConfirm,
|
|
1809
|
+
mockSaveFilePicker,
|
|
1810
|
+
showSaveFilePicker
|
|
1823
1811
|
};
|
|
1824
1812
|
|
|
1825
1813
|
const isDiagnosticEqual = (actual, expected) => {
|
|
@@ -1851,7 +1839,7 @@ const areSelectionsEqual = (a, b) => {
|
|
|
1851
1839
|
};
|
|
1852
1840
|
|
|
1853
1841
|
const getEditorKey = async () => {
|
|
1854
|
-
const keys = await invoke('Editor.getKeys');
|
|
1842
|
+
const keys = await invoke$1('Editor.getKeys');
|
|
1855
1843
|
if (keys.length === 0) {
|
|
1856
1844
|
throw new Error(`no editor found`);
|
|
1857
1845
|
}
|
|
@@ -1863,235 +1851,220 @@ const getEditorKey = async () => {
|
|
|
1863
1851
|
const Script = 2;
|
|
1864
1852
|
|
|
1865
1853
|
const update$1 = settings => {
|
|
1866
|
-
|
|
1867
|
-
return invoke$1('Preferences.update', settings);
|
|
1854
|
+
return invoke('Preferences.update', settings);
|
|
1868
1855
|
};
|
|
1869
1856
|
const enableDiagnostics$1 = () => {
|
|
1870
|
-
|
|
1871
|
-
return invoke$1('Preferences.update', {
|
|
1857
|
+
return invoke('Preferences.update', {
|
|
1872
1858
|
'editor.diagnostics': true
|
|
1873
1859
|
});
|
|
1874
1860
|
};
|
|
1875
1861
|
const disableDiagnostics$1 = () => {
|
|
1876
|
-
|
|
1877
|
-
return invoke$1('Preferences.update', {
|
|
1862
|
+
return invoke('Preferences.update', {
|
|
1878
1863
|
'editor.diagnostics': false
|
|
1879
1864
|
});
|
|
1880
1865
|
};
|
|
1881
1866
|
|
|
1882
1867
|
const Settings = {
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1868
|
+
__proto__: null,
|
|
1869
|
+
disableDiagnostics: disableDiagnostics$1,
|
|
1870
|
+
enableDiagnostics: enableDiagnostics$1,
|
|
1871
|
+
update: update$1
|
|
1887
1872
|
};
|
|
1888
1873
|
|
|
1889
1874
|
const setCursor = async (rowIndex, columnIndex) => {
|
|
1890
|
-
await invoke
|
|
1875
|
+
await invoke('Editor.cursorSet', rowIndex, columnIndex);
|
|
1891
1876
|
};
|
|
1892
1877
|
const openCompletion = async () => {
|
|
1893
|
-
await invoke
|
|
1878
|
+
await invoke('Editor.openCompletion');
|
|
1894
1879
|
};
|
|
1895
1880
|
const closeCompletion = async () => {
|
|
1896
|
-
|
|
1897
|
-
await invoke$1('EditorCompletion.close');
|
|
1881
|
+
await invoke('EditorCompletion.close');
|
|
1898
1882
|
};
|
|
1899
1883
|
const openEditorContextMenu = async () => {
|
|
1900
|
-
await invoke
|
|
1884
|
+
await invoke('Editor.handleContextMenu', 0, 0);
|
|
1901
1885
|
};
|
|
1902
1886
|
const invokeTabCompletion = async () => {
|
|
1903
|
-
await invoke
|
|
1887
|
+
await invoke('Editor.tabCompletion');
|
|
1904
1888
|
};
|
|
1905
1889
|
const executeTabCompletion = async () => {
|
|
1906
|
-
await invoke
|
|
1890
|
+
await invoke('Editor.tabCompletion');
|
|
1907
1891
|
};
|
|
1908
1892
|
const invokeBraceCompletion = async text => {
|
|
1909
|
-
await invoke
|
|
1893
|
+
await invoke('Editor.braceCompletion', text);
|
|
1910
1894
|
};
|
|
1911
1895
|
const cursorCharacterRight = async () => {
|
|
1912
|
-
await invoke
|
|
1896
|
+
await invoke('Editor.cursorCharacterRight');
|
|
1913
1897
|
};
|
|
1914
1898
|
const cursorCharacterLeft = async () => {
|
|
1915
|
-
await invoke
|
|
1899
|
+
await invoke('Editor.cursorCharacterLeft');
|
|
1916
1900
|
};
|
|
1917
1901
|
const copyLineDown = async () => {
|
|
1918
|
-
await invoke
|
|
1902
|
+
await invoke('Editor.copyLineDown');
|
|
1919
1903
|
};
|
|
1920
1904
|
const cursorDown = async () => {
|
|
1921
|
-
await invoke
|
|
1905
|
+
await invoke('Editor.cursorDown');
|
|
1922
1906
|
};
|
|
1923
1907
|
const cursorUp = async () => {
|
|
1924
|
-
await invoke
|
|
1908
|
+
await invoke('Editor.cursorUp');
|
|
1925
1909
|
};
|
|
1926
1910
|
const cursorWordLeft = async () => {
|
|
1927
|
-
await invoke
|
|
1911
|
+
await invoke('Editor.cursorWordLeft');
|
|
1928
1912
|
};
|
|
1929
1913
|
const cursorWordRight = async () => {
|
|
1930
|
-
await invoke
|
|
1914
|
+
await invoke('Editor.cursorWordRight');
|
|
1931
1915
|
};
|
|
1932
1916
|
const goToDefinition = async () => {
|
|
1933
|
-
await invoke
|
|
1917
|
+
await invoke('Editor.goToDefinition');
|
|
1934
1918
|
};
|
|
1935
1919
|
const openHover = async () => {
|
|
1936
|
-
await invoke
|
|
1920
|
+
await invoke('Editor.showHover2');
|
|
1937
1921
|
};
|
|
1938
1922
|
const goToTypeDefinition = async () => {
|
|
1939
|
-
await invoke
|
|
1923
|
+
await invoke('Editor.goToTypeDefinition');
|
|
1940
1924
|
};
|
|
1941
1925
|
const type = async text => {
|
|
1942
|
-
await invoke
|
|
1926
|
+
await invoke('Editor.type', text);
|
|
1943
1927
|
};
|
|
1944
1928
|
const findAllReferences = async () => {
|
|
1945
|
-
|
|
1946
|
-
await invoke$1('SideBar.show', 'References', /* focus */true);
|
|
1929
|
+
await invoke('SideBar.show', 'References', /* focus */true);
|
|
1947
1930
|
};
|
|
1948
1931
|
const findAllImplementations = async () => {
|
|
1949
|
-
|
|
1950
|
-
await invoke$1('SideBar.show', 'Implementations', /* focus */true);
|
|
1932
|
+
await invoke('SideBar.show', 'Implementations', /* focus */true);
|
|
1951
1933
|
};
|
|
1952
1934
|
const setSelections = async selections => {
|
|
1953
|
-
await invoke
|
|
1935
|
+
await invoke('Editor.setSelections', selections);
|
|
1954
1936
|
};
|
|
1955
1937
|
const openFindWidget = async () => {
|
|
1956
|
-
await invoke
|
|
1938
|
+
await invoke('Editor.openFind');
|
|
1957
1939
|
};
|
|
1958
1940
|
const setDeltaY = async deltaY => {
|
|
1959
|
-
await invoke
|
|
1941
|
+
await invoke('Editor.setDeltaY', deltaY);
|
|
1960
1942
|
};
|
|
1961
1943
|
const format = async () => {
|
|
1962
|
-
await invoke
|
|
1944
|
+
await invoke('Editor.format');
|
|
1963
1945
|
};
|
|
1964
1946
|
const insertLineBreak = async () => {
|
|
1965
|
-
await invoke
|
|
1947
|
+
await invoke('Editor.insertLineBreak');
|
|
1966
1948
|
};
|
|
1967
1949
|
const openSourceActions = async () => {
|
|
1968
|
-
await invoke
|
|
1950
|
+
await invoke('Editor.showSourceActions2');
|
|
1969
1951
|
};
|
|
1970
1952
|
const sourceActionsSelectCurrent = async () => {
|
|
1971
|
-
await invoke
|
|
1953
|
+
await invoke('EditorSourceActions.selectCurrent');
|
|
1972
1954
|
};
|
|
1973
1955
|
const openCompletionDetails = async () => {
|
|
1974
|
-
await invoke
|
|
1956
|
+
await invoke('EditorCompletion.openDetails');
|
|
1975
1957
|
};
|
|
1976
1958
|
const closeCompletionDetails = async () => {
|
|
1977
|
-
|
|
1978
|
-
await invoke$1('EditorCompletion.closeDetails');
|
|
1959
|
+
await invoke('EditorCompletion.closeDetails');
|
|
1979
1960
|
};
|
|
1980
1961
|
const toggleCompletionDetails = async () => {
|
|
1981
|
-
|
|
1982
|
-
await invoke$1('EditorCompletion.toggleDetails');
|
|
1962
|
+
await invoke('EditorCompletion.toggleDetails');
|
|
1983
1963
|
};
|
|
1984
1964
|
const organizeImports = async () => {
|
|
1985
|
-
await invoke
|
|
1965
|
+
await invoke('Editor.organizeImports');
|
|
1986
1966
|
};
|
|
1987
1967
|
const addAllMissingImports = async () => {
|
|
1988
|
-
await invoke
|
|
1968
|
+
await invoke('Editor.addAllMissingImports');
|
|
1989
1969
|
};
|
|
1990
1970
|
const sortImports = async () => {
|
|
1991
|
-
await invoke
|
|
1971
|
+
await invoke('Editor.sortImports');
|
|
1992
1972
|
};
|
|
1993
1973
|
const toggleLineComment = async () => {
|
|
1994
|
-
await invoke
|
|
1974
|
+
await invoke('Editor.toggleLineComment');
|
|
1995
1975
|
};
|
|
1996
1976
|
const toggleBlockComment = async () => {
|
|
1997
|
-
await invoke
|
|
1977
|
+
await invoke('Editor.toggleBlockComment');
|
|
1998
1978
|
};
|
|
1999
1979
|
const selectAll$1 = async () => {
|
|
2000
|
-
await invoke
|
|
1980
|
+
await invoke('Editor.toggleBlockComment');
|
|
2001
1981
|
};
|
|
2002
1982
|
const openColorPicker = async () => {
|
|
2003
|
-
await invoke
|
|
1983
|
+
await invoke('Editor.openColorPicker');
|
|
2004
1984
|
};
|
|
2005
1985
|
const openFind = async () => {
|
|
2006
|
-
|
|
2007
|
-
await invoke$1('Editor.openFind2');
|
|
1986
|
+
await invoke('Editor.openFind2');
|
|
2008
1987
|
};
|
|
2009
1988
|
const deleteAllLeft = async () => {
|
|
2010
|
-
await invoke
|
|
1989
|
+
await invoke('Editor.deleteAllLeft');
|
|
2011
1990
|
};
|
|
2012
1991
|
const deleteAllRight = async () => {
|
|
2013
|
-
await invoke
|
|
1992
|
+
await invoke('Editor.deleteAllRight');
|
|
2014
1993
|
};
|
|
2015
1994
|
const cursorWordPartLeft = async () => {
|
|
2016
|
-
await invoke
|
|
1995
|
+
await invoke('Editor.cursorWordPartLeft');
|
|
2017
1996
|
};
|
|
2018
1997
|
const cursorWordPartRight = async () => {
|
|
2019
|
-
await invoke
|
|
1998
|
+
await invoke('Editor.cursorWordPartRight');
|
|
2020
1999
|
};
|
|
2021
2000
|
const cursorEnd = async () => {
|
|
2022
|
-
await invoke
|
|
2001
|
+
await invoke('Editor.cursorEnd');
|
|
2023
2002
|
};
|
|
2024
2003
|
const cursorHome = async () => {
|
|
2025
|
-
await invoke
|
|
2004
|
+
await invoke('Editor.cursorHome');
|
|
2026
2005
|
};
|
|
2027
2006
|
const copyLineUp = async () => {
|
|
2028
|
-
await invoke
|
|
2007
|
+
await invoke('Editor.copyLineUp');
|
|
2029
2008
|
};
|
|
2030
2009
|
const copy$1 = async () => {
|
|
2031
|
-
await invoke
|
|
2010
|
+
await invoke('Editor.copy');
|
|
2032
2011
|
};
|
|
2033
2012
|
const closeColorPicker = async () => {
|
|
2034
|
-
await invoke
|
|
2013
|
+
await invoke('Editor.closeColorPicker');
|
|
2035
2014
|
};
|
|
2036
2015
|
const openContextMenu$1 = async () => {
|
|
2037
2016
|
const button = 0;
|
|
2038
2017
|
const x = 0;
|
|
2039
2018
|
const y = 0;
|
|
2040
|
-
await invoke
|
|
2019
|
+
await invoke('Editor.contextMenu', button, x, y);
|
|
2041
2020
|
};
|
|
2042
2021
|
const getText = async () => {
|
|
2043
|
-
return invoke
|
|
2022
|
+
return invoke('Editor.getText');
|
|
2044
2023
|
};
|
|
2045
2024
|
const rename$1 = async () => {
|
|
2046
|
-
await invoke
|
|
2025
|
+
await invoke('Editor.rename');
|
|
2047
2026
|
};
|
|
2048
2027
|
const showHover = async () => {
|
|
2049
|
-
await invoke
|
|
2028
|
+
await invoke('Editor.showHover2');
|
|
2050
2029
|
};
|
|
2051
2030
|
const openRename = async () => {
|
|
2052
|
-
await invoke
|
|
2031
|
+
await invoke('Editor.openRename');
|
|
2053
2032
|
};
|
|
2054
2033
|
const rename2 = async newName => {
|
|
2055
2034
|
await openRename();
|
|
2056
|
-
|
|
2057
|
-
await invoke
|
|
2058
|
-
// @ts-ignore
|
|
2059
|
-
await invoke$1('EditorRename.accept');
|
|
2035
|
+
await invoke('EditorRename.handleInput', newName, Script);
|
|
2036
|
+
await invoke('EditorRename.accept');
|
|
2060
2037
|
};
|
|
2061
2038
|
const growSelection = async () => {
|
|
2062
|
-
|
|
2063
|
-
await invoke$1('Editor.selectionGrow');
|
|
2039
|
+
await invoke('Editor.selectionGrow');
|
|
2064
2040
|
};
|
|
2065
2041
|
const getSelections = async () => {
|
|
2066
2042
|
const key = await getEditorKey();
|
|
2067
|
-
|
|
2068
|
-
return invoke('Editor.getSelections', key);
|
|
2043
|
+
return invoke$1('Editor.getSelections', key);
|
|
2069
2044
|
};
|
|
2070
2045
|
const shouldHaveText = async expectedText => {
|
|
2071
2046
|
const key = await getEditorKey();
|
|
2072
|
-
const text = await invoke('Editor.getText', key);
|
|
2047
|
+
const text = await invoke$1('Editor.getText', key);
|
|
2073
2048
|
if (text !== expectedText) {
|
|
2074
2049
|
throw new Error(`Expected editor to have text ${expectedText} but was ${text}`);
|
|
2075
2050
|
}
|
|
2076
2051
|
};
|
|
2077
2052
|
const shouldHaveSelections = async expectedSelections => {
|
|
2078
2053
|
const key = await getEditorKey();
|
|
2079
|
-
const selections = await invoke('Editor.getSelections', key);
|
|
2054
|
+
const selections = await invoke$1('Editor.getSelections', key);
|
|
2080
2055
|
if (!areSelectionsEqual(selections, expectedSelections)) {
|
|
2081
2056
|
throw new Error(`Expected editor to have selections ${expectedSelections} but was ${selections}`);
|
|
2082
2057
|
}
|
|
2083
2058
|
};
|
|
2084
2059
|
const undo = async () => {
|
|
2085
|
-
|
|
2086
|
-
await invoke('Editor.undo');
|
|
2060
|
+
await invoke$1('Editor.undo');
|
|
2087
2061
|
};
|
|
2088
2062
|
const redo = async () => {
|
|
2089
|
-
|
|
2090
|
-
await invoke('Editor.redo');
|
|
2063
|
+
await invoke$1('Editor.redo');
|
|
2091
2064
|
};
|
|
2092
2065
|
const shouldHaveDiagnostics = async expectedDiagnostics => {
|
|
2093
2066
|
const key = await getEditorKey();
|
|
2094
|
-
const diagnostics = await invoke('Editor.getDiagnostics', key);
|
|
2067
|
+
const diagnostics = await invoke$1('Editor.getDiagnostics', key);
|
|
2095
2068
|
if (!areDiagnosticsEqual(diagnostics, expectedDiagnostics)) {
|
|
2096
2069
|
const stringifiedActual = JSON.stringify(diagnostics);
|
|
2097
2070
|
const stringifiedExpected = JSON.stringify(expectedDiagnostics);
|
|
@@ -2120,370 +2093,342 @@ const disableDiagnostics = async () => {
|
|
|
2120
2093
|
};
|
|
2121
2094
|
|
|
2122
2095
|
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
|
-
|
|
2096
|
+
__proto__: null,
|
|
2097
|
+
addAllMissingImports,
|
|
2098
|
+
closeColorPicker,
|
|
2099
|
+
closeCompletion,
|
|
2100
|
+
closeCompletionDetails,
|
|
2101
|
+
copy: copy$1,
|
|
2102
|
+
copyLineDown,
|
|
2103
|
+
copyLineUp,
|
|
2104
|
+
cursorCharacterLeft,
|
|
2105
|
+
cursorCharacterRight,
|
|
2106
|
+
cursorDown,
|
|
2107
|
+
cursorEnd,
|
|
2108
|
+
cursorHome,
|
|
2109
|
+
cursorUp,
|
|
2110
|
+
cursorWordLeft,
|
|
2111
|
+
cursorWordPartLeft,
|
|
2112
|
+
cursorWordPartRight,
|
|
2113
|
+
cursorWordRight,
|
|
2114
|
+
deleteAllLeft,
|
|
2115
|
+
deleteAllRight,
|
|
2116
|
+
disableCompletionsOnType,
|
|
2117
|
+
disableDiagnostics,
|
|
2118
|
+
enableCompletionsOnType,
|
|
2119
|
+
enableDiagnostics,
|
|
2120
|
+
executeTabCompletion,
|
|
2121
|
+
findAllImplementations,
|
|
2122
|
+
findAllReferences,
|
|
2123
|
+
format,
|
|
2124
|
+
getSelections,
|
|
2125
|
+
getText,
|
|
2126
|
+
goToDefinition,
|
|
2127
|
+
goToTypeDefinition,
|
|
2128
|
+
growSelection,
|
|
2129
|
+
insertLineBreak,
|
|
2130
|
+
invokeBraceCompletion,
|
|
2131
|
+
invokeTabCompletion,
|
|
2132
|
+
openColorPicker,
|
|
2133
|
+
openCompletion,
|
|
2134
|
+
openCompletionDetails,
|
|
2135
|
+
openContextMenu: openContextMenu$1,
|
|
2136
|
+
openEditorContextMenu,
|
|
2137
|
+
openFind,
|
|
2138
|
+
openFindWidget,
|
|
2139
|
+
openHover,
|
|
2140
|
+
openRename,
|
|
2141
|
+
openSourceActions,
|
|
2142
|
+
organizeImports,
|
|
2143
|
+
redo,
|
|
2144
|
+
rename: rename$1,
|
|
2145
|
+
rename2,
|
|
2146
|
+
selectAll: selectAll$1,
|
|
2147
|
+
setCursor,
|
|
2148
|
+
setDeltaY,
|
|
2149
|
+
setSelections,
|
|
2150
|
+
shouldHaveDiagnostics,
|
|
2151
|
+
shouldHaveSelections,
|
|
2152
|
+
shouldHaveText,
|
|
2153
|
+
showHover,
|
|
2154
|
+
sortImports,
|
|
2155
|
+
sourceActionsSelectCurrent,
|
|
2156
|
+
toggleBlockComment,
|
|
2157
|
+
toggleCompletionDetails,
|
|
2158
|
+
toggleLineComment,
|
|
2159
|
+
type,
|
|
2160
|
+
undo
|
|
2188
2161
|
};
|
|
2189
2162
|
|
|
2190
2163
|
const selectIndex$6 = async index => {
|
|
2191
|
-
await invoke
|
|
2164
|
+
await invoke('EditorCompletion.selectIndex', index);
|
|
2192
2165
|
};
|
|
2193
2166
|
const selectCurrentIndex$2 = async () => {
|
|
2194
|
-
await invoke
|
|
2167
|
+
await invoke('EditorCompletion.selectCurrentIndex');
|
|
2195
2168
|
};
|
|
2196
2169
|
const close$2 = async () => {
|
|
2197
|
-
|
|
2198
|
-
await invoke$1('EditorCompletion.close');
|
|
2170
|
+
await invoke('EditorCompletion.close');
|
|
2199
2171
|
};
|
|
2200
2172
|
const handleWheel$2 = async (deltaMode, deltaY) => {
|
|
2201
|
-
|
|
2202
|
-
await invoke$1('EditorCompletion.handleWheel', deltaMode, deltaY);
|
|
2173
|
+
await invoke('EditorCompletion.handleWheel', deltaMode, deltaY);
|
|
2203
2174
|
};
|
|
2204
2175
|
const handlePointerdown = async (clientX, clientY) => {
|
|
2205
|
-
|
|
2206
|
-
await invoke$1('EditorCompletion.handlePointerdown', clientX, clientY);
|
|
2176
|
+
await invoke('EditorCompletion.handlePointerdown', clientX, clientY);
|
|
2207
2177
|
};
|
|
2208
2178
|
|
|
2209
2179
|
const EditorCompletion = {
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2180
|
+
__proto__: null,
|
|
2181
|
+
close: close$2,
|
|
2182
|
+
handlePointerdown,
|
|
2183
|
+
handleWheel: handleWheel$2,
|
|
2184
|
+
selectCurrentIndex: selectCurrentIndex$2,
|
|
2185
|
+
selectIndex: selectIndex$6
|
|
2216
2186
|
};
|
|
2217
2187
|
|
|
2218
2188
|
const show$5 = async () => {
|
|
2219
|
-
await invoke
|
|
2189
|
+
await invoke('Editor.showHover2');
|
|
2220
2190
|
};
|
|
2221
2191
|
const close$1 = async () => {
|
|
2222
|
-
|
|
2223
|
-
await invoke$1('EditorHover.close');
|
|
2192
|
+
await invoke('EditorHover.close');
|
|
2224
2193
|
};
|
|
2225
2194
|
|
|
2226
2195
|
const EditorHover = {
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2196
|
+
__proto__: null,
|
|
2197
|
+
close: close$1,
|
|
2198
|
+
show: show$5
|
|
2230
2199
|
};
|
|
2231
2200
|
|
|
2232
2201
|
const handleInput$5 = async value => {
|
|
2233
|
-
|
|
2234
|
-
await invoke$1('EditorRename.handleInput', value, Script);
|
|
2202
|
+
await invoke('EditorRename.handleInput', value, Script);
|
|
2235
2203
|
};
|
|
2236
2204
|
const accept = async () => {
|
|
2237
|
-
|
|
2238
|
-
await invoke$1('EditorRename.accept');
|
|
2205
|
+
await invoke('EditorRename.accept');
|
|
2239
2206
|
};
|
|
2240
2207
|
const cancel = async () => {
|
|
2241
|
-
|
|
2242
|
-
await invoke$1('EditorRename.cancel');
|
|
2208
|
+
await invoke('EditorRename.cancel');
|
|
2243
2209
|
};
|
|
2244
2210
|
|
|
2245
2211
|
const EditorRename = {
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2212
|
+
__proto__: null,
|
|
2213
|
+
accept,
|
|
2214
|
+
cancel,
|
|
2215
|
+
handleInput: handleInput$5
|
|
2250
2216
|
};
|
|
2251
2217
|
|
|
2252
2218
|
const selectIndex$5 = async index => {
|
|
2253
|
-
|
|
2254
|
-
await invoke$1('EditorSourceAction.selectIndex', index);
|
|
2219
|
+
await invoke('EditorSourceAction.selectIndex', index);
|
|
2255
2220
|
};
|
|
2256
2221
|
const selectCurrentIndex$1 = async () => {
|
|
2257
|
-
|
|
2258
|
-
await invoke$1('EditorSourceAction.selectCurrentIndex');
|
|
2222
|
+
await invoke('EditorSourceAction.selectCurrentIndex');
|
|
2259
2223
|
};
|
|
2260
2224
|
|
|
2261
2225
|
const EditorSourceAction = {
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2226
|
+
__proto__: null,
|
|
2227
|
+
selectCurrentIndex: selectCurrentIndex$1,
|
|
2228
|
+
selectIndex: selectIndex$5
|
|
2265
2229
|
};
|
|
2266
2230
|
|
|
2267
2231
|
const openContextMenu = async index => {
|
|
2268
|
-
|
|
2269
|
-
await invoke$1('Explorer.handleContextMenuKeyboard', index);
|
|
2232
|
+
await invoke('Explorer.handleContextMenuKeyboard', index);
|
|
2270
2233
|
};
|
|
2271
2234
|
const handleDragLeave = async () => {
|
|
2272
|
-
await invoke
|
|
2235
|
+
await invoke('Explorer.handleDragLeave');
|
|
2273
2236
|
};
|
|
2274
2237
|
const handleBlur = async () => {
|
|
2275
|
-
await invoke
|
|
2238
|
+
await invoke('Explorer.handleBlur');
|
|
2276
2239
|
};
|
|
2277
2240
|
const handleEscape = async () => {
|
|
2278
|
-
|
|
2279
|
-
await invoke$1('Explorer.handleEscape');
|
|
2241
|
+
await invoke('Explorer.handleEscape');
|
|
2280
2242
|
};
|
|
2281
2243
|
const handleInputBlur = async () => {
|
|
2282
|
-
await invoke
|
|
2244
|
+
await invoke('Explorer.handleInputBlur');
|
|
2283
2245
|
};
|
|
2284
2246
|
const focus$1 = async () => {
|
|
2285
|
-
await invoke
|
|
2247
|
+
await invoke('Explorer.focusIndex', -1);
|
|
2286
2248
|
};
|
|
2287
2249
|
const focusNext$7 = async () => {
|
|
2288
|
-
|
|
2289
|
-
await invoke$1('Explorer.focusNext');
|
|
2250
|
+
await invoke('Explorer.focusNext');
|
|
2290
2251
|
};
|
|
2291
2252
|
const selectUp = async () => {
|
|
2292
|
-
await invoke
|
|
2253
|
+
await invoke('Explorer.selectUp');
|
|
2293
2254
|
};
|
|
2294
2255
|
const handleDragOverIndex = async index => {
|
|
2295
|
-
|
|
2296
|
-
await invoke$1('Explorer.handleDragOverIndex', index);
|
|
2256
|
+
await invoke('Explorer.handleDragOverIndex', index);
|
|
2297
2257
|
};
|
|
2298
2258
|
const selectDown = async () => {
|
|
2299
|
-
await invoke
|
|
2259
|
+
await invoke('Explorer.selectDown');
|
|
2300
2260
|
};
|
|
2301
2261
|
const collapseAll$2 = async () => {
|
|
2302
|
-
|
|
2303
|
-
await invoke$1('Explorer.collapseAll');
|
|
2262
|
+
await invoke('Explorer.collapseAll');
|
|
2304
2263
|
};
|
|
2305
2264
|
const refresh$1 = async () => {
|
|
2306
|
-
await invoke
|
|
2265
|
+
await invoke('Explorer.refresh');
|
|
2307
2266
|
};
|
|
2308
2267
|
const focusIndex$5 = async index => {
|
|
2309
|
-
await invoke
|
|
2268
|
+
await invoke('Explorer.focusIndex', index);
|
|
2310
2269
|
};
|
|
2311
2270
|
const clickCurrent = async () => {
|
|
2312
|
-
await invoke
|
|
2271
|
+
await invoke('Explorer.handleClickCurrent');
|
|
2313
2272
|
};
|
|
2314
2273
|
const handleArrowLeft$1 = async () => {
|
|
2315
|
-
await invoke
|
|
2274
|
+
await invoke('Explorer.handleArrowLeft');
|
|
2316
2275
|
};
|
|
2317
2276
|
const focusLast$5 = async () => {
|
|
2318
|
-
await invoke
|
|
2277
|
+
await invoke('Explorer.focusLast');
|
|
2319
2278
|
};
|
|
2320
2279
|
const focusFirst$6 = async () => {
|
|
2321
|
-
await invoke
|
|
2280
|
+
await invoke('Explorer.focusFirst');
|
|
2322
2281
|
};
|
|
2323
2282
|
const removeDirent = async () => {
|
|
2324
|
-
await invoke
|
|
2283
|
+
await invoke('Explorer.removeDirent');
|
|
2325
2284
|
};
|
|
2326
2285
|
const expandRecursively = async () => {
|
|
2327
|
-
await invoke
|
|
2286
|
+
await invoke('Explorer.expandRecursively');
|
|
2328
2287
|
};
|
|
2329
2288
|
const newFile = async () => {
|
|
2330
|
-
await invoke
|
|
2289
|
+
await invoke('Explorer.newFile');
|
|
2331
2290
|
};
|
|
2332
2291
|
const newFolder = async () => {
|
|
2333
|
-
await invoke
|
|
2292
|
+
await invoke('Explorer.newFolder');
|
|
2334
2293
|
};
|
|
2335
2294
|
const copyPath$1 = async () => {
|
|
2336
|
-
|
|
2337
|
-
await invoke$1('Explorer.copyPath');
|
|
2295
|
+
await invoke('Explorer.copyPath');
|
|
2338
2296
|
};
|
|
2339
2297
|
const copyRelativePath = async () => {
|
|
2340
|
-
|
|
2341
|
-
await invoke$1('Explorer.copyRelativePath');
|
|
2298
|
+
await invoke('Explorer.copyRelativePath');
|
|
2342
2299
|
};
|
|
2343
2300
|
const handleClick$2 = async index => {
|
|
2344
|
-
await invoke
|
|
2301
|
+
await invoke('Explorer.handleClick', index);
|
|
2345
2302
|
};
|
|
2346
2303
|
const handleClickAt$2 = async (preventDefault, button, ctrlKey, shiftKey, x, y) => {
|
|
2347
|
-
|
|
2348
|
-
await invoke$1('Explorer.handleClickAt', preventDefault, button, ctrlKey, shiftKey, x, y);
|
|
2304
|
+
await invoke('Explorer.handleClickAt', preventDefault, button, ctrlKey, shiftKey, x, y);
|
|
2349
2305
|
};
|
|
2350
2306
|
const handleDrop = async (x, y, fileIds, fileList) => {
|
|
2351
|
-
|
|
2352
|
-
await invoke$1('Explorer.handleDrop', x, y, fileIds, fileIds);
|
|
2307
|
+
await invoke('Explorer.handleDrop', x, y, fileIds, fileIds);
|
|
2353
2308
|
};
|
|
2354
2309
|
const rename = async () => {
|
|
2355
|
-
await invoke
|
|
2310
|
+
await invoke('Explorer.renameDirent');
|
|
2356
2311
|
};
|
|
2357
2312
|
const selectAll = async () => {
|
|
2358
|
-
await invoke
|
|
2313
|
+
await invoke('Explorer.selectAll');
|
|
2359
2314
|
};
|
|
2360
2315
|
const renameDirent = async () => {
|
|
2361
|
-
await invoke
|
|
2316
|
+
await invoke('Explorer.renameDirent');
|
|
2362
2317
|
};
|
|
2363
2318
|
const cancelEdit = async () => {
|
|
2364
|
-
await invoke
|
|
2319
|
+
await invoke('Explorer.cancelEdit');
|
|
2365
2320
|
};
|
|
2366
2321
|
const acceptEdit = async () => {
|
|
2367
|
-
await invoke
|
|
2322
|
+
await invoke('Explorer.acceptEdit');
|
|
2368
2323
|
};
|
|
2369
2324
|
const updateEditingValue = async value => {
|
|
2370
|
-
await invoke
|
|
2325
|
+
await invoke('Explorer.updateEditingValue', value);
|
|
2371
2326
|
};
|
|
2372
2327
|
const expandAll = async () => {
|
|
2373
|
-
await invoke
|
|
2328
|
+
await invoke('Explorer.expandAll');
|
|
2374
2329
|
};
|
|
2375
2330
|
const handleDragOver = async (x, y) => {
|
|
2376
|
-
await invoke
|
|
2331
|
+
await invoke('Explorer.handleDragOver', x, y);
|
|
2377
2332
|
};
|
|
2378
2333
|
const handleCut = async () => {
|
|
2379
|
-
|
|
2380
|
-
await invoke$1('Explorer.handleCut');
|
|
2334
|
+
await invoke('Explorer.handleCut');
|
|
2381
2335
|
};
|
|
2382
2336
|
const handleCopy = async () => {
|
|
2383
|
-
|
|
2384
|
-
await invoke$1('Explorer.handleCopy');
|
|
2337
|
+
await invoke('Explorer.handleCopy');
|
|
2385
2338
|
};
|
|
2386
2339
|
const handlePaste = async () => {
|
|
2387
|
-
|
|
2388
|
-
await invoke$1('Explorer.handlePaste');
|
|
2340
|
+
await invoke('Explorer.handlePaste');
|
|
2389
2341
|
};
|
|
2390
2342
|
const selectIndices = async indices => {
|
|
2391
|
-
await invoke
|
|
2343
|
+
await invoke('Explorer.selectIndices', indices);
|
|
2392
2344
|
};
|
|
2393
2345
|
const toggleIndividualSelection = async index => {
|
|
2394
|
-
|
|
2395
|
-
await invoke$1('Explorer.toggleIndividualSelection', index);
|
|
2346
|
+
await invoke('Explorer.toggleIndividualSelection', index);
|
|
2396
2347
|
};
|
|
2397
2348
|
|
|
2398
2349
|
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
|
-
|
|
2350
|
+
__proto__: null,
|
|
2351
|
+
acceptEdit,
|
|
2352
|
+
cancelEdit,
|
|
2353
|
+
clickCurrent,
|
|
2354
|
+
collapseAll: collapseAll$2,
|
|
2355
|
+
copyPath: copyPath$1,
|
|
2356
|
+
copyRelativePath,
|
|
2357
|
+
expandAll,
|
|
2358
|
+
expandRecursively,
|
|
2359
|
+
focus: focus$1,
|
|
2360
|
+
focusFirst: focusFirst$6,
|
|
2361
|
+
focusIndex: focusIndex$5,
|
|
2362
|
+
focusLast: focusLast$5,
|
|
2363
|
+
focusNext: focusNext$7,
|
|
2364
|
+
handleArrowLeft: handleArrowLeft$1,
|
|
2365
|
+
handleBlur,
|
|
2366
|
+
handleClick: handleClick$2,
|
|
2367
|
+
handleClickAt: handleClickAt$2,
|
|
2368
|
+
handleCopy,
|
|
2369
|
+
handleCut,
|
|
2370
|
+
handleDragLeave,
|
|
2371
|
+
handleDragOver,
|
|
2372
|
+
handleDragOverIndex,
|
|
2373
|
+
handleDrop,
|
|
2374
|
+
handleEscape,
|
|
2375
|
+
handleInputBlur,
|
|
2376
|
+
handlePaste,
|
|
2377
|
+
newFile,
|
|
2378
|
+
newFolder,
|
|
2379
|
+
openContextMenu,
|
|
2380
|
+
refresh: refresh$1,
|
|
2381
|
+
removeDirent,
|
|
2382
|
+
rename,
|
|
2383
|
+
renameDirent,
|
|
2384
|
+
selectAll,
|
|
2385
|
+
selectDown,
|
|
2386
|
+
selectIndices,
|
|
2387
|
+
selectUp,
|
|
2388
|
+
toggleIndividualSelection,
|
|
2389
|
+
updateEditingValue
|
|
2439
2390
|
};
|
|
2440
2391
|
|
|
2441
2392
|
const addWebExtension = async relativePath => {
|
|
2442
2393
|
// TODO compute absolutePath
|
|
2443
2394
|
const absolutePath = relativePath;
|
|
2444
|
-
await invoke
|
|
2395
|
+
await invoke('ExtensionMeta.addWebExtension', absolutePath);
|
|
2445
2396
|
};
|
|
2446
2397
|
const addNodeExtension = async relativePath => {
|
|
2447
2398
|
// TODO compute absolutePath
|
|
2448
2399
|
const absolutePath = relativePath;
|
|
2449
|
-
await invoke
|
|
2400
|
+
await invoke('ExtensionMeta.addNodeExtension', absolutePath);
|
|
2450
2401
|
};
|
|
2451
2402
|
|
|
2452
2403
|
const Extension = {
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2404
|
+
__proto__: null,
|
|
2405
|
+
addNodeExtension,
|
|
2406
|
+
addWebExtension
|
|
2456
2407
|
};
|
|
2457
2408
|
|
|
2458
2409
|
const handleClickCategory = async categoryId => {
|
|
2459
|
-
|
|
2460
|
-
await invoke$1('ExtensionDetail.handleClickCategory', categoryId);
|
|
2410
|
+
await invoke('ExtensionDetail.handleClickCategory', categoryId);
|
|
2461
2411
|
};
|
|
2462
2412
|
const handleReadmeContextMenu = async (x, y, nodeName, href) => {
|
|
2463
|
-
|
|
2464
|
-
await invoke$1('ExtensionDetail.handleReadmeContextMenu', x, y, nodeName, href);
|
|
2413
|
+
await invoke('ExtensionDetail.handleReadmeContextMenu', x, y, nodeName, href);
|
|
2465
2414
|
};
|
|
2466
2415
|
const copyReadmeLink = async href => {
|
|
2467
|
-
|
|
2468
|
-
await invoke$1('ExtensionDetail.copyReadmeLink', href);
|
|
2416
|
+
await invoke('ExtensionDetail.copyReadmeLink', href);
|
|
2469
2417
|
};
|
|
2470
2418
|
const handleClickEnable = async () => {
|
|
2471
|
-
|
|
2472
|
-
await invoke$1('ExtensionDetail.handleClickEnable');
|
|
2419
|
+
await invoke('ExtensionDetail.handleClickEnable');
|
|
2473
2420
|
};
|
|
2474
2421
|
const handleClickDisable = async () => {
|
|
2475
|
-
|
|
2476
|
-
await invoke$1('ExtensionDetail.handleClickDisable');
|
|
2422
|
+
await invoke('ExtensionDetail.handleClickDisable');
|
|
2477
2423
|
};
|
|
2478
2424
|
const handleClickSetColorTheme = async () => {
|
|
2479
|
-
|
|
2480
|
-
await invoke$1('ExtensionDetail.handleClickSetColorTheme');
|
|
2425
|
+
await invoke('ExtensionDetail.handleClickSetColorTheme');
|
|
2481
2426
|
};
|
|
2482
2427
|
const selectFeature = name => {
|
|
2483
|
-
return invoke
|
|
2428
|
+
return invoke('ExtensionDetail.selectFeature', name);
|
|
2484
2429
|
};
|
|
2485
2430
|
const selectTab$1 = name => {
|
|
2486
|
-
return invoke
|
|
2431
|
+
return invoke('ExtensionDetail.selectTab', name);
|
|
2487
2432
|
};
|
|
2488
2433
|
const selectDetails = async () => {
|
|
2489
2434
|
await selectTab$1('Details');
|
|
@@ -2495,24 +2440,23 @@ const selectChangelog = async () => {
|
|
|
2495
2440
|
await selectTab$1('Changelog');
|
|
2496
2441
|
};
|
|
2497
2442
|
const focusNextTab = async () => {
|
|
2498
|
-
await invoke
|
|
2443
|
+
await invoke('ExtensionDetail.focusNextTab');
|
|
2499
2444
|
};
|
|
2500
2445
|
const focusPreviousTab = async () => {
|
|
2501
|
-
await invoke
|
|
2446
|
+
await invoke('ExtensionDetail.focusPreviousTab');
|
|
2502
2447
|
};
|
|
2503
2448
|
const open$6 = extensionId => {
|
|
2504
2449
|
const uri = `extension-detail://${extensionId}`;
|
|
2505
|
-
return invoke
|
|
2450
|
+
return invoke('Main.openUri', uri);
|
|
2506
2451
|
};
|
|
2507
2452
|
const handleClickUninstall = () => {
|
|
2508
|
-
return invoke
|
|
2453
|
+
return invoke('ExtensionDetail.handleClickUninstall');
|
|
2509
2454
|
};
|
|
2510
2455
|
const handleImageContextMenu = () => {
|
|
2511
|
-
return invoke
|
|
2456
|
+
return invoke('ExtensionDetail.handleImageContextMenu');
|
|
2512
2457
|
};
|
|
2513
2458
|
const openFeature = featureName => {
|
|
2514
|
-
|
|
2515
|
-
return invoke$1('ExtensionDetail.handleFeaturesClick', featureName);
|
|
2459
|
+
return invoke('ExtensionDetail.handleFeaturesClick', featureName);
|
|
2516
2460
|
};
|
|
2517
2461
|
const openThemes = async () => {
|
|
2518
2462
|
await openFeature('Theme');
|
|
@@ -2533,96 +2477,89 @@ const openSettings = async () => {
|
|
|
2533
2477
|
await openFeature('Settings');
|
|
2534
2478
|
};
|
|
2535
2479
|
const handleScroll$1 = async scrollTop => {
|
|
2536
|
-
|
|
2537
|
-
return invoke$1('ExtensionDetail.handleScroll', scrollTop);
|
|
2480
|
+
return invoke('ExtensionDetail.handleScroll', scrollTop);
|
|
2538
2481
|
};
|
|
2539
2482
|
const hideSizeLink = async () => {
|
|
2540
|
-
return invoke
|
|
2483
|
+
return invoke('ExtensionDetail.hideSizeLink');
|
|
2541
2484
|
};
|
|
2542
2485
|
const handleTabFocus = async tabName => {
|
|
2543
|
-
return invoke
|
|
2486
|
+
return invoke('ExtensionDetail.handleTabFocus', tabName);
|
|
2544
2487
|
};
|
|
2545
2488
|
|
|
2546
2489
|
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
|
-
|
|
2490
|
+
__proto__: null,
|
|
2491
|
+
copyReadmeLink,
|
|
2492
|
+
focusNextTab,
|
|
2493
|
+
focusPreviousTab,
|
|
2494
|
+
handleClickCategory,
|
|
2495
|
+
handleClickDisable,
|
|
2496
|
+
handleClickEnable,
|
|
2497
|
+
handleClickSetColorTheme,
|
|
2498
|
+
handleClickUninstall,
|
|
2499
|
+
handleImageContextMenu,
|
|
2500
|
+
handleReadmeContextMenu,
|
|
2501
|
+
handleScroll: handleScroll$1,
|
|
2502
|
+
handleTabFocus,
|
|
2503
|
+
hideSizeLink,
|
|
2504
|
+
open: open$6,
|
|
2505
|
+
openCommands,
|
|
2506
|
+
openFeature,
|
|
2507
|
+
openJsonValidation,
|
|
2508
|
+
openRuntimeStatus,
|
|
2509
|
+
openSettings,
|
|
2510
|
+
openThemes,
|
|
2511
|
+
openWebViews,
|
|
2512
|
+
selectChangelog,
|
|
2513
|
+
selectDetails,
|
|
2514
|
+
selectFeature,
|
|
2515
|
+
selectFeatures,
|
|
2516
|
+
selectTab: selectTab$1
|
|
2574
2517
|
};
|
|
2575
2518
|
|
|
2576
2519
|
const open$5 = async id => {
|
|
2577
|
-
await invoke
|
|
2520
|
+
await invoke('SideBar.openViewlet', id);
|
|
2578
2521
|
};
|
|
2579
2522
|
const hide = async () => {
|
|
2580
|
-
await invoke
|
|
2523
|
+
await invoke('Layout.hideSideBar');
|
|
2581
2524
|
};
|
|
2582
2525
|
|
|
2583
2526
|
const SideBar = {
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2527
|
+
__proto__: null,
|
|
2528
|
+
hide,
|
|
2529
|
+
open: open$5
|
|
2587
2530
|
};
|
|
2588
2531
|
|
|
2589
2532
|
const open$4 = async () => {
|
|
2590
2533
|
await open$5('Extensions');
|
|
2591
2534
|
};
|
|
2592
2535
|
const handleInput$4 = async value => {
|
|
2593
|
-
|
|
2594
|
-
await invoke$1('Extensions.handleInput', value, Script$1);
|
|
2536
|
+
await invoke('Extensions.handleInput', value, Script$1);
|
|
2595
2537
|
};
|
|
2596
2538
|
const handleClick$1 = async index => {
|
|
2597
|
-
|
|
2598
|
-
await invoke$1('Extensions.handleClick', index);
|
|
2539
|
+
await invoke('Extensions.handleClick', index);
|
|
2599
2540
|
};
|
|
2600
2541
|
const handleContextMenu$4 = async (button, x, y) => {
|
|
2601
|
-
|
|
2602
|
-
await invoke$1('Extensions.handleContextMenu', button, x, y);
|
|
2542
|
+
await invoke('Extensions.handleContextMenu', button, x, y);
|
|
2603
2543
|
};
|
|
2604
2544
|
const copyExtensionInfo = async () => {
|
|
2605
|
-
|
|
2606
|
-
await invoke$1('Extensions.copyExtensionInfo');
|
|
2545
|
+
await invoke('Extensions.copyExtensionInfo');
|
|
2607
2546
|
};
|
|
2608
2547
|
const copyExtensionId = async () => {
|
|
2609
|
-
|
|
2610
|
-
await invoke$1('Extensions.copyExtensionId');
|
|
2548
|
+
await invoke('Extensions.copyExtensionId');
|
|
2611
2549
|
};
|
|
2612
2550
|
const clearSearchResults$1 = async () => {
|
|
2613
|
-
|
|
2614
|
-
await invoke$1('Extensions.clearSearchResults');
|
|
2551
|
+
await invoke('Extensions.clearSearchResults');
|
|
2615
2552
|
};
|
|
2616
2553
|
|
|
2617
2554
|
const ExtensionSearch = {
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2555
|
+
__proto__: null,
|
|
2556
|
+
clearSearchResults: clearSearchResults$1,
|
|
2557
|
+
copyExtensionId,
|
|
2558
|
+
copyExtensionInfo,
|
|
2559
|
+
handleClick: handleClick$1,
|
|
2560
|
+
handleContextMenu: handleContextMenu$4,
|
|
2561
|
+
handleInput: handleInput$4,
|
|
2562
|
+
open: open$4
|
|
2626
2563
|
};
|
|
2627
2564
|
|
|
2628
2565
|
const Memfs = 'memfs';
|
|
@@ -2639,7 +2576,7 @@ const toFileUrl = url => {
|
|
|
2639
2576
|
|
|
2640
2577
|
/* eslint-disable @typescript-eslint/prefer-readonly-parameter-types */
|
|
2641
2578
|
const getDirents = async (allDirents, fileUrl) => {
|
|
2642
|
-
const dirents = await invoke
|
|
2579
|
+
const dirents = await invoke('FileSystem.readDirWithFileTypes', fileUrl);
|
|
2643
2580
|
for (const dirent of dirents) {
|
|
2644
2581
|
if (dirent.type === Directory) {
|
|
2645
2582
|
await getDirents(allDirents, `${fileUrl}/${dirent.name}`);
|
|
@@ -2654,7 +2591,7 @@ const getFileMapNode = async url => {
|
|
|
2654
2591
|
await getDirents(allFiles, fileUrl);
|
|
2655
2592
|
const fileMap = Object.create(null);
|
|
2656
2593
|
for (const filePath of allFiles) {
|
|
2657
|
-
const content = await invoke
|
|
2594
|
+
const content = await invoke(`FileSystem.readFile`, filePath);
|
|
2658
2595
|
const relativePaths = filePath.slice(fileUrl.length + 1);
|
|
2659
2596
|
fileMap[relativePaths] = content;
|
|
2660
2597
|
}
|
|
@@ -2701,7 +2638,7 @@ const getFileMapWeb = async url => {
|
|
|
2701
2638
|
const loadFixtureToMemFs = async fileMap => {
|
|
2702
2639
|
for (const [path, content] of Object.entries(fileMap)) {
|
|
2703
2640
|
const memfsPath = `memfs:///fixture/${path}`;
|
|
2704
|
-
await invoke
|
|
2641
|
+
await invoke('FileSystem.writeFile', memfsPath, content);
|
|
2705
2642
|
}
|
|
2706
2643
|
return `memfs:///fixture`;
|
|
2707
2644
|
};
|
|
@@ -2710,9 +2647,9 @@ const Backslash = '\\';
|
|
|
2710
2647
|
const Slash$1 = '/';
|
|
2711
2648
|
|
|
2712
2649
|
const Character = {
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2650
|
+
__proto__: null,
|
|
2651
|
+
Backslash,
|
|
2652
|
+
Slash: Slash$1
|
|
2716
2653
|
};
|
|
2717
2654
|
|
|
2718
2655
|
const {
|
|
@@ -2724,28 +2661,32 @@ const stringifyJson = data => {
|
|
|
2724
2661
|
};
|
|
2725
2662
|
|
|
2726
2663
|
const writeFile = async (uri, content) => {
|
|
2727
|
-
await invoke
|
|
2664
|
+
await invoke('FileSystem.writeFile', uri, content);
|
|
2728
2665
|
};
|
|
2729
2666
|
const writeJson = async (uri, data) => {
|
|
2730
2667
|
const content = stringifyJson(data);
|
|
2731
2668
|
await writeFile(uri, content);
|
|
2732
2669
|
};
|
|
2733
2670
|
const readFile = async uri => {
|
|
2734
|
-
return invoke
|
|
2671
|
+
return invoke('FileSystem.readFile', uri);
|
|
2735
2672
|
};
|
|
2736
2673
|
const addFileHandle = async file => {
|
|
2737
|
-
|
|
2738
|
-
await invoke$1('FileSystem.addFileHandle', file);
|
|
2674
|
+
await invoke('FileSystem.addFileHandle', file);
|
|
2739
2675
|
};
|
|
2740
2676
|
const mkdir = async uri => {
|
|
2741
|
-
await invoke
|
|
2677
|
+
await invoke('FileSystem.mkdir', uri);
|
|
2678
|
+
};
|
|
2679
|
+
const setFiles = async files => {
|
|
2680
|
+
// TODO maybe have a method to send all the files to file system worker directly
|
|
2681
|
+
await Promise.all(files.map(file => {
|
|
2682
|
+
return writeFile(file.uri, file.content);
|
|
2683
|
+
}));
|
|
2742
2684
|
};
|
|
2743
2685
|
const readDir = async uri => {
|
|
2744
|
-
|
|
2745
|
-
return invoke$1('FileSystem.readDirWithFileTypes', uri);
|
|
2686
|
+
return invoke('FileSystem.readDirWithFileTypes', uri);
|
|
2746
2687
|
};
|
|
2747
2688
|
const remove = async uri => {
|
|
2748
|
-
await invoke
|
|
2689
|
+
await invoke('FileSystem.remove', uri);
|
|
2749
2690
|
};
|
|
2750
2691
|
const getTmpDir = async ({
|
|
2751
2692
|
scheme = Memfs
|
|
@@ -2754,20 +2695,17 @@ const getTmpDir = async ({
|
|
|
2754
2695
|
case Memfs:
|
|
2755
2696
|
return 'memfs:///workspace';
|
|
2756
2697
|
default:
|
|
2757
|
-
|
|
2758
|
-
return invoke$1('PlatformPaths.getTmpDir');
|
|
2698
|
+
return invoke('PlatformPaths.getTmpDir');
|
|
2759
2699
|
}
|
|
2760
2700
|
};
|
|
2761
2701
|
const chmod = async (uri, permissions) => {
|
|
2762
|
-
|
|
2763
|
-
await invoke$1('FileSystem.chmod', uri, permissions);
|
|
2702
|
+
await invoke('FileSystem.chmod', uri, permissions);
|
|
2764
2703
|
};
|
|
2765
2704
|
const createExecutable = async content => {
|
|
2766
2705
|
const tmpDir = await getTmpDir({
|
|
2767
2706
|
scheme: 'file'
|
|
2768
2707
|
});
|
|
2769
|
-
|
|
2770
|
-
const nodePath = await invoke$1('PlatformPaths.getNodePath');
|
|
2708
|
+
const nodePath = await invoke('PlatformPaths.getNodePath');
|
|
2771
2709
|
const gitPath = `${tmpDir}/git`;
|
|
2772
2710
|
await writeFile(gitPath, `#!${nodePath}
|
|
2773
2711
|
${content}`);
|
|
@@ -2775,11 +2713,9 @@ const createExecutable = async content => {
|
|
|
2775
2713
|
return gitPath;
|
|
2776
2714
|
};
|
|
2777
2715
|
const createExecutableFrom = async uri => {
|
|
2778
|
-
|
|
2779
|
-
const testPath = await invoke$1('PlatformPaths.getTestPath');
|
|
2716
|
+
const testPath = await invoke('PlatformPaths.getTestPath');
|
|
2780
2717
|
const absolutePath = testPath + Slash + uri;
|
|
2781
|
-
|
|
2782
|
-
const content = await invoke$1('Ajax.getText', absolutePath);
|
|
2718
|
+
const content = await invoke('Ajax.getText', absolutePath);
|
|
2783
2719
|
return createExecutable(content);
|
|
2784
2720
|
};
|
|
2785
2721
|
const createDroppedFileHandle = async () => {
|
|
@@ -2788,8 +2724,7 @@ const createDroppedFileHandle = async () => {
|
|
|
2788
2724
|
create: true
|
|
2789
2725
|
});
|
|
2790
2726
|
const file = await fileHandle.getFile();
|
|
2791
|
-
|
|
2792
|
-
const id = await invoke$1('FileSystemHandle.addFileHandle', fileHandle);
|
|
2727
|
+
const id = await invoke('FileSystemHandle.addFileHandle', fileHandle);
|
|
2793
2728
|
return {
|
|
2794
2729
|
file,
|
|
2795
2730
|
id
|
|
@@ -2806,231 +2741,217 @@ const loadFixture = async (platform, url) => {
|
|
|
2806
2741
|
};
|
|
2807
2742
|
|
|
2808
2743
|
const FileSystem = {
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2744
|
+
__proto__: null,
|
|
2745
|
+
addFileHandle,
|
|
2746
|
+
chmod,
|
|
2747
|
+
createDroppedFileHandle,
|
|
2748
|
+
createExecutable,
|
|
2749
|
+
createExecutableFrom,
|
|
2750
|
+
getTmpDir,
|
|
2751
|
+
loadFixture,
|
|
2752
|
+
mkdir,
|
|
2753
|
+
readDir,
|
|
2754
|
+
readFile,
|
|
2755
|
+
remove,
|
|
2756
|
+
setFiles,
|
|
2757
|
+
writeFile,
|
|
2758
|
+
writeJson
|
|
2823
2759
|
};
|
|
2824
2760
|
|
|
2825
2761
|
const focusNext$6 = async () => {
|
|
2826
|
-
await invoke
|
|
2762
|
+
await invoke('FindWidget.focusNext');
|
|
2827
2763
|
};
|
|
2828
2764
|
const focusPrevious$6 = async () => {
|
|
2829
|
-
|
|
2830
|
-
await invoke$1('FindWidget.focusPrevious');
|
|
2765
|
+
await invoke('FindWidget.focusPrevious');
|
|
2831
2766
|
};
|
|
2832
2767
|
const close = async () => {
|
|
2833
|
-
|
|
2834
|
-
await invoke$1('FindWidget.close');
|
|
2768
|
+
await invoke('FindWidget.close');
|
|
2835
2769
|
};
|
|
2836
2770
|
const setReplaceValue$1 = async value => {
|
|
2837
|
-
|
|
2838
|
-
await invoke$1('FindWidget.handleReplaceInput', value, Script);
|
|
2771
|
+
await invoke('FindWidget.handleReplaceInput', value, Script);
|
|
2839
2772
|
};
|
|
2840
2773
|
const setValue$2 = async value => {
|
|
2841
|
-
|
|
2842
|
-
await invoke$1('FindWidget.handleInput', value, Script);
|
|
2774
|
+
await invoke('FindWidget.handleInput', value, Script);
|
|
2843
2775
|
};
|
|
2844
2776
|
const toggleReplace$1 = async () => {
|
|
2845
|
-
|
|
2846
|
-
await invoke$1('FindWidget.toggleReplace');
|
|
2777
|
+
await invoke('FindWidget.toggleReplace');
|
|
2847
2778
|
};
|
|
2848
2779
|
const toggleMatchCase$1 = async () => {
|
|
2849
|
-
|
|
2850
|
-
await invoke$1('FindWidget.toggleMatchCase');
|
|
2780
|
+
await invoke('FindWidget.toggleMatchCase');
|
|
2851
2781
|
};
|
|
2852
2782
|
const toggleMatchWholeWord$1 = async () => {
|
|
2853
|
-
|
|
2854
|
-
await invoke$1('FindWidget.toggleMatchWholeWord');
|
|
2783
|
+
await invoke('FindWidget.toggleMatchWholeWord');
|
|
2855
2784
|
};
|
|
2856
2785
|
const togglePreserveCase$1 = async () => {
|
|
2857
|
-
|
|
2858
|
-
await invoke$1('FindWidget.togglePreserveCase');
|
|
2786
|
+
await invoke('FindWidget.togglePreserveCase');
|
|
2859
2787
|
};
|
|
2860
2788
|
const toggleUseRegularExpression$1 = async () => {
|
|
2861
|
-
|
|
2862
|
-
await invoke$1('FindWidget.toggleUseRegularExpression');
|
|
2789
|
+
await invoke('FindWidget.toggleUseRegularExpression');
|
|
2863
2790
|
};
|
|
2864
2791
|
const replace = async () => {
|
|
2865
|
-
|
|
2866
|
-
await invoke$1('FindWidget.replace');
|
|
2792
|
+
await invoke('FindWidget.replace');
|
|
2867
2793
|
};
|
|
2868
2794
|
const replaceAll$1 = async () => {
|
|
2869
|
-
|
|
2870
|
-
await invoke$1('FindWidget.replaceAll');
|
|
2795
|
+
await invoke('FindWidget.replaceAll');
|
|
2871
2796
|
};
|
|
2872
2797
|
const focusElement = async whenExpression => {
|
|
2873
|
-
|
|
2874
|
-
await invoke$1('FindWidget.focusElement', whenExpression);
|
|
2798
|
+
await invoke('FindWidget.focusElement', whenExpression);
|
|
2875
2799
|
};
|
|
2876
2800
|
const focusNextElement = async () => {
|
|
2877
|
-
|
|
2878
|
-
await invoke$1('FindWidget.focusNextElement');
|
|
2801
|
+
await invoke('FindWidget.focusNextElement');
|
|
2879
2802
|
};
|
|
2880
2803
|
const focusPreviousElement = async () => {
|
|
2881
|
-
|
|
2882
|
-
await invoke$1('FindWidget.focusPreviousElement');
|
|
2804
|
+
await invoke('FindWidget.focusPreviousElement');
|
|
2883
2805
|
};
|
|
2884
2806
|
|
|
2885
2807
|
const FindWidget = {
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2808
|
+
__proto__: null,
|
|
2809
|
+
close,
|
|
2810
|
+
focusElement,
|
|
2811
|
+
focusNext: focusNext$6,
|
|
2812
|
+
focusNextElement,
|
|
2813
|
+
focusPrevious: focusPrevious$6,
|
|
2814
|
+
focusPreviousElement,
|
|
2815
|
+
replace,
|
|
2816
|
+
replaceAll: replaceAll$1,
|
|
2817
|
+
setReplaceValue: setReplaceValue$1,
|
|
2818
|
+
setValue: setValue$2,
|
|
2819
|
+
toggleMatchCase: toggleMatchCase$1,
|
|
2820
|
+
toggleMatchWholeWord: toggleMatchWholeWord$1,
|
|
2821
|
+
togglePreserveCase: togglePreserveCase$1,
|
|
2822
|
+
toggleReplace: toggleReplace$1,
|
|
2823
|
+
toggleUseRegularExpression: toggleUseRegularExpression$1
|
|
2902
2824
|
};
|
|
2903
2825
|
|
|
2904
2826
|
const setIconTheme = async id => {
|
|
2905
|
-
await invoke
|
|
2827
|
+
await invoke('IconTheme.setIconTheme', id);
|
|
2906
2828
|
};
|
|
2907
2829
|
|
|
2908
2830
|
const IconTheme = {
|
|
2909
|
-
|
|
2910
|
-
|
|
2831
|
+
__proto__: null,
|
|
2832
|
+
setIconTheme
|
|
2911
2833
|
};
|
|
2912
2834
|
|
|
2913
2835
|
const selectIndex$4 = async index => {
|
|
2914
|
-
return invoke
|
|
2836
|
+
return invoke('IframeInspector.selectIndex', index);
|
|
2915
2837
|
};
|
|
2916
2838
|
const focusNext$5 = async () => {
|
|
2917
|
-
return invoke
|
|
2839
|
+
return invoke('IframeInspector.focusNext');
|
|
2918
2840
|
};
|
|
2919
2841
|
const focusPrevious$5 = async () => {
|
|
2920
|
-
return invoke
|
|
2842
|
+
return invoke('IframeInspector.focusPrevious');
|
|
2921
2843
|
};
|
|
2922
2844
|
const focusFirst$5 = async () => {
|
|
2923
|
-
return invoke
|
|
2845
|
+
return invoke('IframeInspector.focusFirst');
|
|
2924
2846
|
};
|
|
2925
2847
|
const focusLast$4 = async () => {
|
|
2926
|
-
return invoke
|
|
2848
|
+
return invoke('IframeInspector.focusLast');
|
|
2927
2849
|
};
|
|
2928
2850
|
|
|
2929
2851
|
const IframeInspector = {
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2852
|
+
__proto__: null,
|
|
2853
|
+
focusFirst: focusFirst$5,
|
|
2854
|
+
focusLast: focusLast$4,
|
|
2855
|
+
focusNext: focusNext$5,
|
|
2856
|
+
focusPrevious: focusPrevious$5,
|
|
2857
|
+
selectIndex: selectIndex$4
|
|
2936
2858
|
};
|
|
2937
2859
|
|
|
2938
2860
|
const open$3 = async () => {
|
|
2939
|
-
await invoke
|
|
2861
|
+
await invoke('Main.openUri', 'app://keybindings');
|
|
2940
2862
|
};
|
|
2941
2863
|
const handleInput$3 = value => {
|
|
2942
|
-
return invoke
|
|
2864
|
+
return invoke('KeyBindings.handleInput', value);
|
|
2943
2865
|
};
|
|
2944
2866
|
const handleClick = (x, y) => {
|
|
2945
|
-
return invoke
|
|
2867
|
+
return invoke('KeyBindings.handleClick', x, y);
|
|
2946
2868
|
};
|
|
2947
2869
|
const handleWheel$1 = (deltaMode, deltaY) => {
|
|
2948
|
-
return invoke
|
|
2870
|
+
return invoke('KeyBindings.handleWheel', deltaMode, deltaY);
|
|
2949
2871
|
};
|
|
2950
2872
|
const handleDoubleClick = (x, y) => {
|
|
2951
|
-
return invoke
|
|
2873
|
+
return invoke('KeyBindings.handleDoubleClick', x, y);
|
|
2952
2874
|
};
|
|
2953
2875
|
const focusNext$4 = () => {
|
|
2954
|
-
return invoke
|
|
2876
|
+
return invoke('KeyBindings.focusNext');
|
|
2955
2877
|
};
|
|
2956
2878
|
const focusPrevious$4 = () => {
|
|
2957
|
-
return invoke
|
|
2879
|
+
return invoke('KeyBindings.focusPrevious');
|
|
2958
2880
|
};
|
|
2959
2881
|
const focusFirst$4 = () => {
|
|
2960
|
-
return invoke
|
|
2882
|
+
return invoke('KeyBindings.focusFirst');
|
|
2961
2883
|
};
|
|
2962
2884
|
const focusIndex$4 = index => {
|
|
2963
|
-
|
|
2964
|
-
return invoke$1('KeyBindings.focusIndex', index);
|
|
2885
|
+
return invoke('KeyBindings.focusIndex', index);
|
|
2965
2886
|
};
|
|
2966
2887
|
const focusLast$3 = () => {
|
|
2967
|
-
return invoke
|
|
2888
|
+
return invoke('KeyBindings.focusLast');
|
|
2968
2889
|
};
|
|
2969
2890
|
const toggleRecordingKeys = () => {
|
|
2970
|
-
return invoke
|
|
2891
|
+
return invoke('KeyBindings.toggleRecordingKeys');
|
|
2971
2892
|
};
|
|
2972
2893
|
const startRecordingKeys = () => {
|
|
2973
|
-
return invoke
|
|
2894
|
+
return invoke('KeyBindings.startRecordingKeys');
|
|
2974
2895
|
};
|
|
2975
2896
|
const clearInput = () => {
|
|
2976
|
-
return invoke
|
|
2897
|
+
return invoke('KeyBindings.clearInput');
|
|
2977
2898
|
};
|
|
2978
2899
|
const sortByPrecedence = () => {
|
|
2979
|
-
return invoke
|
|
2900
|
+
return invoke('KeyBindings.sortByPrecedence');
|
|
2980
2901
|
};
|
|
2981
2902
|
const stopRecordingKeys = () => {
|
|
2982
|
-
return invoke
|
|
2903
|
+
return invoke('KeyBindings.stopRecordingKeys');
|
|
2983
2904
|
};
|
|
2984
2905
|
const handleContextMenu$3 = (button, x, y) => {
|
|
2985
|
-
return invoke
|
|
2906
|
+
return invoke('KeyBindings.handleContextMenu', button, x, y);
|
|
2986
2907
|
};
|
|
2987
2908
|
const copyCommandId = () => {
|
|
2988
|
-
return invoke
|
|
2909
|
+
return invoke('KeyBindings.copyCommandId');
|
|
2989
2910
|
};
|
|
2990
2911
|
const copyCommandTitle = () => {
|
|
2991
|
-
return invoke
|
|
2912
|
+
return invoke('KeyBindings.copyCommandTitle');
|
|
2992
2913
|
};
|
|
2993
2914
|
const addKeyBinding = () => {
|
|
2994
|
-
return invoke
|
|
2915
|
+
return invoke('KeyBindings.addKeyBinding');
|
|
2995
2916
|
};
|
|
2996
2917
|
const removeKeyBinding = () => {
|
|
2997
|
-
return invoke
|
|
2918
|
+
return invoke('KeyBindings.removeKeyBinding');
|
|
2998
2919
|
};
|
|
2999
2920
|
const changeWhenExpression = () => {
|
|
3000
|
-
return invoke
|
|
2921
|
+
return invoke('KeyBindings.changeWhenExpression');
|
|
3001
2922
|
};
|
|
3002
2923
|
const showSameKeyBindings = () => {
|
|
3003
|
-
return invoke
|
|
2924
|
+
return invoke('KeyBindings.showSameKeyBindings');
|
|
3004
2925
|
};
|
|
3005
2926
|
const resetKeyBinding = () => {
|
|
3006
|
-
return invoke
|
|
2927
|
+
return invoke('KeyBindings.resetKeyBinding');
|
|
3007
2928
|
};
|
|
3008
2929
|
|
|
3009
2930
|
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
|
-
|
|
2931
|
+
__proto__: null,
|
|
2932
|
+
addKeyBinding,
|
|
2933
|
+
changeWhenExpression,
|
|
2934
|
+
clearInput,
|
|
2935
|
+
copyCommandId,
|
|
2936
|
+
copyCommandTitle,
|
|
2937
|
+
focusFirst: focusFirst$4,
|
|
2938
|
+
focusIndex: focusIndex$4,
|
|
2939
|
+
focusLast: focusLast$3,
|
|
2940
|
+
focusNext: focusNext$4,
|
|
2941
|
+
focusPrevious: focusPrevious$4,
|
|
2942
|
+
handleClick,
|
|
2943
|
+
handleContextMenu: handleContextMenu$3,
|
|
2944
|
+
handleDoubleClick,
|
|
2945
|
+
handleInput: handleInput$3,
|
|
2946
|
+
handleWheel: handleWheel$1,
|
|
2947
|
+
open: open$3,
|
|
2948
|
+
removeKeyBinding,
|
|
2949
|
+
resetKeyBinding,
|
|
2950
|
+
showSameKeyBindings,
|
|
2951
|
+
sortByPrecedence,
|
|
2952
|
+
startRecordingKeys,
|
|
2953
|
+
stopRecordingKeys,
|
|
2954
|
+
toggleRecordingKeys
|
|
3034
2955
|
};
|
|
3035
2956
|
|
|
3036
2957
|
const Control = 'Control';
|
|
@@ -3079,106 +3000,104 @@ const press = async key => {
|
|
|
3079
3000
|
cancelable: true,
|
|
3080
3001
|
...keyOptions
|
|
3081
3002
|
};
|
|
3082
|
-
|
|
3083
|
-
await invoke$1('TestFrameWork.performKeyBoardAction', 'press', options);
|
|
3003
|
+
await invoke('TestFrameWork.performKeyBoardAction', 'press', options);
|
|
3084
3004
|
};
|
|
3085
3005
|
|
|
3086
3006
|
const KeyBoard = {
|
|
3087
|
-
|
|
3088
|
-
|
|
3007
|
+
__proto__: null,
|
|
3008
|
+
press
|
|
3089
3009
|
};
|
|
3090
3010
|
|
|
3091
3011
|
const openUri = async uri => {
|
|
3092
|
-
await invoke
|
|
3012
|
+
await invoke('Main.openUri', uri);
|
|
3093
3013
|
};
|
|
3094
3014
|
const splitRight = async () => {
|
|
3095
|
-
await invoke
|
|
3015
|
+
await invoke('Main.splitRight');
|
|
3096
3016
|
};
|
|
3097
3017
|
const openKeyBindings = async () => {
|
|
3098
|
-
await invoke
|
|
3018
|
+
await invoke('Main.openKeyBindings');
|
|
3099
3019
|
};
|
|
3100
3020
|
const closeAllEditors = async () => {
|
|
3101
|
-
await invoke
|
|
3021
|
+
await invoke('Main.closeAllEditors');
|
|
3102
3022
|
};
|
|
3103
3023
|
const closeTabsLeft = async () => {
|
|
3104
|
-
await invoke
|
|
3024
|
+
await invoke('Main.closeTabsLeft');
|
|
3105
3025
|
};
|
|
3106
3026
|
const closeTabsRight = async () => {
|
|
3107
|
-
await invoke
|
|
3027
|
+
await invoke('Main.closeTabsRight');
|
|
3108
3028
|
};
|
|
3109
3029
|
const closeOthers = async () => {
|
|
3110
|
-
await invoke
|
|
3030
|
+
await invoke('Main.closeOthers');
|
|
3111
3031
|
};
|
|
3112
3032
|
const closeActiveEditor = async () => {
|
|
3113
|
-
await invoke
|
|
3033
|
+
await invoke('Main.closeActiveEditor');
|
|
3114
3034
|
};
|
|
3115
3035
|
const focusFirst$3 = async () => {
|
|
3116
|
-
await invoke
|
|
3036
|
+
await invoke('Main.focusFirst');
|
|
3117
3037
|
};
|
|
3118
3038
|
const focusNext$3 = async () => {
|
|
3119
|
-
await invoke
|
|
3039
|
+
await invoke('Main.focusNext');
|
|
3120
3040
|
};
|
|
3121
3041
|
const focusPrevious$3 = async () => {
|
|
3122
|
-
await invoke
|
|
3042
|
+
await invoke('Main.focusPrevious');
|
|
3123
3043
|
};
|
|
3124
3044
|
const focusLast$2 = async () => {
|
|
3125
|
-
await invoke
|
|
3045
|
+
await invoke('Main.focusLast');
|
|
3126
3046
|
};
|
|
3127
3047
|
|
|
3128
3048
|
const Main = {
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3049
|
+
__proto__: null,
|
|
3050
|
+
closeActiveEditor,
|
|
3051
|
+
closeAllEditors,
|
|
3052
|
+
closeOthers,
|
|
3053
|
+
closeTabsLeft,
|
|
3054
|
+
closeTabsRight,
|
|
3055
|
+
focusFirst: focusFirst$3,
|
|
3056
|
+
focusLast: focusLast$2,
|
|
3057
|
+
focusNext: focusNext$3,
|
|
3058
|
+
focusPrevious: focusPrevious$3,
|
|
3059
|
+
openKeyBindings,
|
|
3060
|
+
openUri,
|
|
3061
|
+
splitRight
|
|
3142
3062
|
};
|
|
3143
3063
|
|
|
3144
3064
|
const show$4 = async () => {
|
|
3145
|
-
|
|
3146
|
-
await invoke$1('Panel.selectIndex', 1);
|
|
3065
|
+
await invoke('Panel.selectIndex', 1);
|
|
3147
3066
|
};
|
|
3148
3067
|
const handleFilterInput$1 = async text => {
|
|
3149
|
-
|
|
3150
|
-
await invoke$1('Output.handleFilterInput', text, Script);
|
|
3068
|
+
await invoke('Output.handleFilterInput', text, Script);
|
|
3151
3069
|
};
|
|
3152
3070
|
const selectChannel = async channelId => {
|
|
3153
|
-
|
|
3154
|
-
await invoke$1('Output.selectChannel', channelId);
|
|
3071
|
+
await invoke('Output.selectChannel', channelId);
|
|
3155
3072
|
};
|
|
3156
3073
|
const clear$2 = async () => {
|
|
3157
|
-
|
|
3158
|
-
|
|
3074
|
+
await invoke('Output.clear');
|
|
3075
|
+
};
|
|
3076
|
+
const saveAs = async () => {
|
|
3077
|
+
await invoke('Output.saveAs');
|
|
3159
3078
|
};
|
|
3160
3079
|
|
|
3161
3080
|
const Output = {
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3081
|
+
__proto__: null,
|
|
3082
|
+
clear: clear$2,
|
|
3083
|
+
handleFilterInput: handleFilterInput$1,
|
|
3084
|
+
saveAs,
|
|
3085
|
+
selectChannel,
|
|
3086
|
+
show: show$4
|
|
3167
3087
|
};
|
|
3168
3088
|
|
|
3169
3089
|
const open$2 = async id => {
|
|
3170
|
-
await invoke
|
|
3090
|
+
await invoke('Layout.showPanel', id);
|
|
3171
3091
|
};
|
|
3172
3092
|
const openProblems = async () => {
|
|
3173
3093
|
await open$2('Problems');
|
|
3174
|
-
|
|
3175
|
-
await invoke$1('Panel.selectIndex', 0);
|
|
3094
|
+
await invoke('Panel.selectIndex', 0);
|
|
3176
3095
|
};
|
|
3177
3096
|
|
|
3178
3097
|
const Panel = {
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3098
|
+
__proto__: null,
|
|
3099
|
+
open: open$2,
|
|
3100
|
+
openProblems
|
|
3182
3101
|
};
|
|
3183
3102
|
|
|
3184
3103
|
const getIsFirefox = () => {
|
|
@@ -3195,8 +3114,7 @@ const getIsFirefox = () => {
|
|
|
3195
3114
|
};
|
|
3196
3115
|
|
|
3197
3116
|
const getNodePath$1 = () => {
|
|
3198
|
-
|
|
3199
|
-
return invoke$1(/* Platform.getNodePath */'Platform.getNodePath');
|
|
3117
|
+
return invoke(/* Platform.getNodePath */'Platform.getNodePath');
|
|
3200
3118
|
};
|
|
3201
3119
|
|
|
3202
3120
|
const getNodePath = () => {
|
|
@@ -3207,64 +3125,54 @@ const isFirefox = () => {
|
|
|
3207
3125
|
};
|
|
3208
3126
|
|
|
3209
3127
|
const Platform = {
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3128
|
+
__proto__: null,
|
|
3129
|
+
getNodePath,
|
|
3130
|
+
isFirefox
|
|
3213
3131
|
};
|
|
3214
3132
|
|
|
3215
3133
|
const show$3 = async () => {
|
|
3216
|
-
|
|
3217
|
-
await invoke$1('Panel.selectIndex', 0);
|
|
3134
|
+
await invoke('Panel.selectIndex', 0);
|
|
3218
3135
|
};
|
|
3219
3136
|
const handleFilterInput = async text => {
|
|
3220
|
-
|
|
3221
|
-
await invoke$1('Problems.handleFilterInput', text, Script);
|
|
3137
|
+
await invoke('Problems.handleFilterInput', text, Script);
|
|
3222
3138
|
};
|
|
3223
3139
|
const copyMessage = async () => {
|
|
3224
|
-
|
|
3225
|
-
await invoke$1('Problems.copyMessage');
|
|
3140
|
+
await invoke('Problems.copyMessage');
|
|
3226
3141
|
};
|
|
3227
3142
|
const focusIndex$3 = async index => {
|
|
3228
|
-
|
|
3229
|
-
await invoke$1('Problems.focusIndex', index);
|
|
3143
|
+
await invoke('Problems.focusIndex', index);
|
|
3230
3144
|
};
|
|
3231
3145
|
const handleArrowLeft = async () => {
|
|
3232
|
-
|
|
3233
|
-
await invoke$1('Problems.handleArrowLeft');
|
|
3146
|
+
await invoke('Problems.handleArrowLeft');
|
|
3234
3147
|
};
|
|
3235
3148
|
const handleArrowRight = async () => {
|
|
3236
|
-
|
|
3237
|
-
await invoke$1('Problems.handleArrowRight');
|
|
3149
|
+
await invoke('Problems.handleArrowRight');
|
|
3238
3150
|
};
|
|
3239
3151
|
const handleClickAt$1 = async (x, y) => {
|
|
3240
|
-
|
|
3241
|
-
await invoke$1('Problems.handleClickAt', x, y);
|
|
3152
|
+
await invoke('Problems.handleClickAt', x, y);
|
|
3242
3153
|
};
|
|
3243
3154
|
const handleIconThemeChange = async () => {
|
|
3244
|
-
|
|
3245
|
-
await invoke$1('Problems.handleIconThemeChange');
|
|
3155
|
+
await invoke('Problems.handleIconThemeChange');
|
|
3246
3156
|
};
|
|
3247
3157
|
const viewAsList = async () => {
|
|
3248
|
-
|
|
3249
|
-
await invoke$1('Problems.viewAsList');
|
|
3158
|
+
await invoke('Problems.viewAsList');
|
|
3250
3159
|
};
|
|
3251
3160
|
const viewAsTable = async () => {
|
|
3252
|
-
|
|
3253
|
-
await invoke$1('Problems.viewAsTable');
|
|
3161
|
+
await invoke('Problems.viewAsTable');
|
|
3254
3162
|
};
|
|
3255
3163
|
|
|
3256
3164
|
const Problems = {
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3165
|
+
__proto__: null,
|
|
3166
|
+
copyMessage,
|
|
3167
|
+
focusIndex: focusIndex$3,
|
|
3168
|
+
handleArrowLeft,
|
|
3169
|
+
handleArrowRight,
|
|
3170
|
+
handleClickAt: handleClickAt$1,
|
|
3171
|
+
handleFilterInput,
|
|
3172
|
+
handleIconThemeChange,
|
|
3173
|
+
show: show$3,
|
|
3174
|
+
viewAsList,
|
|
3175
|
+
viewAsTable
|
|
3268
3176
|
};
|
|
3269
3177
|
|
|
3270
3178
|
const callbacks = Object.create(null);
|
|
@@ -3275,8 +3183,7 @@ const registerCallbackCommand = async commandId => {
|
|
|
3275
3183
|
resolve
|
|
3276
3184
|
} = Promise.withResolvers();
|
|
3277
3185
|
callbacks[id] = resolve;
|
|
3278
|
-
|
|
3279
|
-
await invoke$1(`Test.registerTestCommand`, commandId);
|
|
3186
|
+
await invoke(`Test.registerTestCommand`, commandId);
|
|
3280
3187
|
return {
|
|
3281
3188
|
promise
|
|
3282
3189
|
};
|
|
@@ -3285,60 +3192,45 @@ const registerCallbackCommand = async commandId => {
|
|
|
3285
3192
|
const QuickPick$1 = 'QuickPick';
|
|
3286
3193
|
|
|
3287
3194
|
const open$1 = async () => {
|
|
3288
|
-
|
|
3289
|
-
await invoke$1('Viewlet.openWidget', QuickPick$1, 'everything');
|
|
3195
|
+
await invoke('Viewlet.openWidget', QuickPick$1, 'everything');
|
|
3290
3196
|
};
|
|
3291
3197
|
const handleInput$2 = async value => {
|
|
3292
|
-
|
|
3293
|
-
await invoke$1('QuickPick.handleInput', value, 0);
|
|
3198
|
+
await invoke('QuickPick.handleInput', value, 0);
|
|
3294
3199
|
};
|
|
3295
3200
|
const handleClickAt = async (x, y) => {
|
|
3296
|
-
|
|
3297
|
-
await invoke$1('QuickPick.handleClickAt', x, y);
|
|
3201
|
+
await invoke('QuickPick.handleClickAt', x, y);
|
|
3298
3202
|
};
|
|
3299
3203
|
const setValue$1 = async value => {
|
|
3300
|
-
|
|
3301
|
-
await invoke$1('QuickPick.setValue', value);
|
|
3204
|
+
await invoke('QuickPick.setValue', value);
|
|
3302
3205
|
};
|
|
3303
3206
|
const focusNext$2 = async () => {
|
|
3304
|
-
|
|
3305
|
-
await invoke$1('QuickPick.focusNext');
|
|
3207
|
+
await invoke('QuickPick.focusNext');
|
|
3306
3208
|
};
|
|
3307
3209
|
const focusFirst$2 = async () => {
|
|
3308
|
-
|
|
3309
|
-
await invoke$1('QuickPick.focusFirst');
|
|
3210
|
+
await invoke('QuickPick.focusFirst');
|
|
3310
3211
|
};
|
|
3311
3212
|
const focusLast$1 = async () => {
|
|
3312
|
-
|
|
3313
|
-
await invoke$1('QuickPick.focusLast');
|
|
3213
|
+
await invoke('QuickPick.focusLast');
|
|
3314
3214
|
};
|
|
3315
3215
|
const focusIndex$2 = async index => {
|
|
3316
|
-
|
|
3317
|
-
await invoke$1('QuickPick.focusIndex', index);
|
|
3216
|
+
await invoke('QuickPick.focusIndex', index);
|
|
3318
3217
|
};
|
|
3319
3218
|
const focusPrevious$2 = async () => {
|
|
3320
|
-
|
|
3321
|
-
await invoke$1('QuickPick.focusPrevious');
|
|
3219
|
+
await invoke('QuickPick.focusPrevious');
|
|
3322
3220
|
};
|
|
3323
3221
|
const selectItem = async label => {
|
|
3324
|
-
|
|
3325
|
-
await invoke$1('QuickPick.selectItem', label);
|
|
3222
|
+
await invoke('QuickPick.selectItem', label);
|
|
3326
3223
|
};
|
|
3327
3224
|
const selectIndex$3 = async index => {
|
|
3328
|
-
|
|
3329
|
-
await invoke$1('QuickPick.selectIndex', index);
|
|
3225
|
+
await invoke('QuickPick.selectIndex', index);
|
|
3330
3226
|
};
|
|
3331
3227
|
const selectCurrentIndex = async () => {
|
|
3332
|
-
|
|
3333
|
-
await invoke$1('QuickPick.selectCurrentIndex');
|
|
3228
|
+
await invoke('QuickPick.selectCurrentIndex');
|
|
3334
3229
|
};
|
|
3335
3230
|
const executeCommand = async label => {
|
|
3336
|
-
|
|
3337
|
-
await invoke
|
|
3338
|
-
|
|
3339
|
-
await invoke$1('QuickPick.handleInput', label, 0);
|
|
3340
|
-
// @ts-ignore
|
|
3341
|
-
await invoke$1('QuickPick.selectItem', label);
|
|
3231
|
+
await invoke('QuickPick.showCommands');
|
|
3232
|
+
await invoke('QuickPick.handleInput', label, 0);
|
|
3233
|
+
await invoke('QuickPick.selectItem', label);
|
|
3342
3234
|
};
|
|
3343
3235
|
const selectItem2 = async ({
|
|
3344
3236
|
callbackCommand,
|
|
@@ -3347,290 +3239,258 @@ const selectItem2 = async ({
|
|
|
3347
3239
|
const {
|
|
3348
3240
|
promise
|
|
3349
3241
|
} = await registerCallbackCommand(callbackCommand);
|
|
3242
|
+
|
|
3350
3243
|
// @ts-ignore
|
|
3351
|
-
invoke
|
|
3244
|
+
invoke('QuickPick.selectItem', label);
|
|
3352
3245
|
await promise;
|
|
3353
3246
|
};
|
|
3354
3247
|
|
|
3355
3248
|
const QuickPick = {
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3249
|
+
__proto__: null,
|
|
3250
|
+
executeCommand,
|
|
3251
|
+
focusFirst: focusFirst$2,
|
|
3252
|
+
focusIndex: focusIndex$2,
|
|
3253
|
+
focusLast: focusLast$1,
|
|
3254
|
+
focusNext: focusNext$2,
|
|
3255
|
+
focusPrevious: focusPrevious$2,
|
|
3256
|
+
handleClickAt,
|
|
3257
|
+
handleInput: handleInput$2,
|
|
3258
|
+
open: open$1,
|
|
3259
|
+
selectCurrentIndex,
|
|
3260
|
+
selectIndex: selectIndex$3,
|
|
3261
|
+
selectItem,
|
|
3262
|
+
selectItem2,
|
|
3263
|
+
setValue: setValue$1
|
|
3371
3264
|
};
|
|
3372
3265
|
|
|
3373
3266
|
const clear$1 = async () => {
|
|
3374
|
-
|
|
3375
|
-
return invoke$1('References.clear');
|
|
3267
|
+
return invoke('References.clear');
|
|
3376
3268
|
};
|
|
3377
3269
|
const collapseAll$1 = async () => {
|
|
3378
|
-
|
|
3379
|
-
return invoke$1('References.collapseAll');
|
|
3270
|
+
return invoke('References.collapseAll');
|
|
3380
3271
|
};
|
|
3381
3272
|
const refresh = async () => {
|
|
3382
|
-
|
|
3383
|
-
return invoke$1('References.refresh');
|
|
3273
|
+
return invoke('References.refresh');
|
|
3384
3274
|
};
|
|
3385
3275
|
|
|
3386
3276
|
const References = {
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3277
|
+
__proto__: null,
|
|
3278
|
+
clear: clear$1,
|
|
3279
|
+
collapseAll: collapseAll$1,
|
|
3280
|
+
refresh
|
|
3391
3281
|
};
|
|
3392
3282
|
|
|
3393
3283
|
const show$2 = async () => {
|
|
3394
3284
|
await open$5('Run And Debug');
|
|
3395
3285
|
};
|
|
3396
3286
|
const handleClickSectionBreakPoints = async () => {
|
|
3397
|
-
|
|
3398
|
-
await invoke$1('Run And Debug.handleClickSectionBreakPoints');
|
|
3287
|
+
await invoke('Run And Debug.handleClickSectionBreakPoints');
|
|
3399
3288
|
};
|
|
3400
3289
|
const handleClickSectionWatch = async () => {
|
|
3401
|
-
|
|
3402
|
-
await invoke$1('Run And Debug.handleClickSectionWatch');
|
|
3290
|
+
await invoke('Run And Debug.handleClickSectionWatch');
|
|
3403
3291
|
};
|
|
3404
3292
|
const addWatchExpression = async expression => {
|
|
3405
|
-
|
|
3406
|
-
await invoke$1('Run And Debug.addWatchExpression', expression);
|
|
3293
|
+
await invoke('Run And Debug.addWatchExpression', expression);
|
|
3407
3294
|
};
|
|
3408
3295
|
const handleWatchValueChange = async () => {
|
|
3409
|
-
|
|
3410
|
-
await invoke$1('Run And Debug.handleWatchValueChange');
|
|
3296
|
+
await invoke('Run And Debug.handleWatchValueChange');
|
|
3411
3297
|
};
|
|
3412
3298
|
const acceptWatchExpressionEdit = async () => {
|
|
3413
|
-
|
|
3414
|
-
await invoke$1('Run And Debug.acceptWatchExpressionEdit');
|
|
3299
|
+
await invoke('Run And Debug.acceptWatchExpressionEdit');
|
|
3415
3300
|
};
|
|
3416
3301
|
const selectIndex$2 = async index => {
|
|
3417
|
-
|
|
3418
|
-
await invoke$1('Run And Debug.selectIndex', index);
|
|
3302
|
+
await invoke('Run And Debug.selectIndex', index);
|
|
3419
3303
|
};
|
|
3420
3304
|
const setPauseOnExceptions = async value => {
|
|
3421
|
-
|
|
3422
|
-
await invoke$1('Run And Debug.setPauseOnExceptions', value);
|
|
3305
|
+
await invoke('Run And Debug.setPauseOnExceptions', value);
|
|
3423
3306
|
};
|
|
3424
3307
|
const handleRename = async () => {
|
|
3425
|
-
|
|
3426
|
-
await invoke$1('Run And Debug.handleRename');
|
|
3308
|
+
await invoke('Run And Debug.handleRename');
|
|
3427
3309
|
};
|
|
3428
3310
|
const handleSpace = async () => {
|
|
3429
|
-
|
|
3430
|
-
await invoke$1('Run And Debug.handleSpace');
|
|
3311
|
+
await invoke('Run And Debug.handleSpace');
|
|
3431
3312
|
};
|
|
3432
3313
|
|
|
3433
3314
|
const RunAndDebug = {
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3315
|
+
__proto__: null,
|
|
3316
|
+
acceptWatchExpressionEdit,
|
|
3317
|
+
addWatchExpression,
|
|
3318
|
+
handleClickSectionBreakPoints,
|
|
3319
|
+
handleClickSectionWatch,
|
|
3320
|
+
handleRename,
|
|
3321
|
+
handleSpace,
|
|
3322
|
+
handleWatchValueChange,
|
|
3323
|
+
selectIndex: selectIndex$2,
|
|
3324
|
+
setPauseOnExceptions,
|
|
3325
|
+
show: show$2
|
|
3445
3326
|
};
|
|
3446
3327
|
|
|
3447
3328
|
const setValue = async value => {
|
|
3448
|
-
|
|
3449
|
-
await invoke$1('Search.handleInput', value, Script);
|
|
3329
|
+
await invoke('Search.handleInput', value, Script);
|
|
3450
3330
|
};
|
|
3451
3331
|
const setReplaceValue = async value => {
|
|
3452
|
-
|
|
3453
|
-
await invoke$1('Search.handleReplaceInput', value, Script);
|
|
3332
|
+
await invoke('Search.handleReplaceInput', value, Script);
|
|
3454
3333
|
};
|
|
3455
3334
|
const setExcludeValue = async value => {
|
|
3456
|
-
|
|
3457
|
-
await invoke$1('Search.handleExcludeInput', value, Script);
|
|
3335
|
+
await invoke('Search.handleExcludeInput', value, Script);
|
|
3458
3336
|
};
|
|
3459
3337
|
const replaceAll = async () => {
|
|
3460
|
-
await invoke
|
|
3338
|
+
await invoke('Search.replaceAll');
|
|
3461
3339
|
};
|
|
3462
3340
|
const setIncludeValue = async value => {
|
|
3463
|
-
|
|
3464
|
-
await invoke$1('Search.handleIncludeInput', value, Script);
|
|
3341
|
+
await invoke('Search.handleIncludeInput', value, Script);
|
|
3465
3342
|
};
|
|
3466
3343
|
const clearSearchResults = async () => {
|
|
3467
|
-
await invoke
|
|
3344
|
+
await invoke('Search.clearSearchResults');
|
|
3468
3345
|
};
|
|
3469
3346
|
const openDetails = async () => {
|
|
3470
|
-
await invoke
|
|
3347
|
+
await invoke('Search.openDetails');
|
|
3471
3348
|
};
|
|
3472
3349
|
const collapseDetails = async () => {
|
|
3473
|
-
await invoke
|
|
3350
|
+
await invoke('Search.collapseDetails');
|
|
3474
3351
|
};
|
|
3475
3352
|
const dismissItem = async () => {
|
|
3476
|
-
await invoke
|
|
3353
|
+
await invoke('Search.dismissItem');
|
|
3477
3354
|
};
|
|
3478
3355
|
const focusFirst$1 = async () => {
|
|
3479
|
-
await invoke
|
|
3356
|
+
await invoke('Search.focusFirst');
|
|
3480
3357
|
};
|
|
3481
3358
|
const focusIndex$1 = async index => {
|
|
3482
|
-
await invoke
|
|
3359
|
+
await invoke('Search.focusIndex', index);
|
|
3483
3360
|
};
|
|
3484
3361
|
const selectIndex$1 = async index => {
|
|
3485
|
-
await invoke
|
|
3362
|
+
await invoke('Search.selectIndex', index);
|
|
3486
3363
|
};
|
|
3487
3364
|
const focusNext$1 = async () => {
|
|
3488
|
-
await invoke
|
|
3365
|
+
await invoke('Search.focusNext');
|
|
3489
3366
|
};
|
|
3490
3367
|
const handleWheel = async (deltaMode, deltaY) => {
|
|
3491
|
-
await invoke
|
|
3368
|
+
await invoke('Search.handleWheel', deltaMode, deltaY);
|
|
3492
3369
|
};
|
|
3493
3370
|
const focusNextPage = async () => {
|
|
3494
|
-
|
|
3495
|
-
await invoke$1('Search.focusPage');
|
|
3371
|
+
await invoke('Search.focusPage');
|
|
3496
3372
|
};
|
|
3497
3373
|
const focusPreviousPage = async () => {
|
|
3498
|
-
await invoke
|
|
3374
|
+
await invoke('Search.focusPreviousPage');
|
|
3499
3375
|
};
|
|
3500
3376
|
const focusPrevious$1 = async () => {
|
|
3501
|
-
await invoke
|
|
3377
|
+
await invoke('Search.focusPrevious');
|
|
3502
3378
|
};
|
|
3503
3379
|
const toggleSearchDetails = async () => {
|
|
3504
|
-
await invoke
|
|
3380
|
+
await invoke('Search.toggleSearchDetails');
|
|
3505
3381
|
};
|
|
3506
3382
|
const toggleMatchCase = async () => {
|
|
3507
|
-
await invoke
|
|
3383
|
+
await invoke('Search.toggleMatchCase');
|
|
3508
3384
|
};
|
|
3509
3385
|
const toggleMatchWholeWord = async () => {
|
|
3510
|
-
await invoke
|
|
3386
|
+
await invoke('Search.toggleMatchWholeWord');
|
|
3511
3387
|
};
|
|
3512
3388
|
const togglePreserveCase = async () => {
|
|
3513
|
-
await invoke
|
|
3389
|
+
await invoke('Search.togglePreserveCase');
|
|
3514
3390
|
};
|
|
3515
3391
|
const toggleUseRegularExpression = async () => {
|
|
3516
|
-
await invoke
|
|
3392
|
+
await invoke('Search.toggleUseRegularExpression');
|
|
3517
3393
|
};
|
|
3518
3394
|
const toggleReplace = async () => {
|
|
3519
|
-
await invoke
|
|
3395
|
+
await invoke('Search.toggleReplace');
|
|
3520
3396
|
};
|
|
3521
3397
|
const open = async () => {
|
|
3522
|
-
await invoke
|
|
3398
|
+
await invoke('SideBar.openViewlet', 'Search');
|
|
3523
3399
|
};
|
|
3524
3400
|
const setLimit = async limit => {
|
|
3525
|
-
|
|
3526
|
-
await invoke$1('Search.setLimit', limit);
|
|
3401
|
+
await invoke('Search.setLimit', limit);
|
|
3527
3402
|
};
|
|
3528
3403
|
const handleListBlur = async () => {
|
|
3529
|
-
|
|
3530
|
-
await invoke$1('Search.handleListBlur');
|
|
3404
|
+
await invoke('Search.handleListBlur');
|
|
3531
3405
|
};
|
|
3532
3406
|
const collapseAll = async () => {
|
|
3533
|
-
|
|
3534
|
-
await invoke$1('Search.collapseAll');
|
|
3407
|
+
await invoke('Search.collapseAll');
|
|
3535
3408
|
};
|
|
3536
3409
|
const copy = async () => {
|
|
3537
|
-
|
|
3538
|
-
await invoke$1('Search.copy');
|
|
3410
|
+
await invoke('Search.copy');
|
|
3539
3411
|
};
|
|
3540
3412
|
const copyPath = async () => {
|
|
3541
|
-
|
|
3542
|
-
await invoke$1('Search.copyPath');
|
|
3413
|
+
await invoke('Search.copyPath');
|
|
3543
3414
|
};
|
|
3544
3415
|
const handleInputCut = async name => {
|
|
3545
|
-
|
|
3546
|
-
await invoke$1('Search.handleInputCut', name);
|
|
3416
|
+
await invoke('Search.handleInputCut', name);
|
|
3547
3417
|
};
|
|
3548
3418
|
const handleInputPaste = async name => {
|
|
3549
|
-
|
|
3550
|
-
await invoke$1('Search.handleInputPaste', name);
|
|
3419
|
+
await invoke('Search.handleInputPaste', name);
|
|
3551
3420
|
};
|
|
3552
3421
|
const handleInputCopy = async name => {
|
|
3553
|
-
|
|
3554
|
-
await invoke$1('Search.handleInputCopy', name);
|
|
3422
|
+
await invoke('Search.handleInputCopy', name);
|
|
3555
3423
|
};
|
|
3556
3424
|
const handleInputSelectionChange = async (name, start, end) => {
|
|
3557
|
-
|
|
3558
|
-
await invoke$1('Search.handleInputSelectionChange', name, start, end);
|
|
3425
|
+
await invoke('Search.handleInputSelectionChange', name, start, end);
|
|
3559
3426
|
};
|
|
3560
3427
|
const handleInputContextMenu = async (name, button, x, y) => {
|
|
3561
|
-
|
|
3562
|
-
await invoke$1('Search.handleInputConextMenu', name, button, x, y);
|
|
3428
|
+
await invoke('Search.handleInputConextMenu', name, button, x, y);
|
|
3563
3429
|
};
|
|
3564
3430
|
const handleContextMenu$2 = async (button, x, y) => {
|
|
3565
|
-
|
|
3566
|
-
await invoke$1('Search.handleContextMenu', name, button, x, y);
|
|
3431
|
+
await invoke('Search.handleContextMenu', name, button, x, y);
|
|
3567
3432
|
};
|
|
3568
3433
|
|
|
3569
3434
|
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
|
-
|
|
3435
|
+
__proto__: null,
|
|
3436
|
+
clearSearchResults,
|
|
3437
|
+
collapseAll,
|
|
3438
|
+
collapseDetails,
|
|
3439
|
+
copy,
|
|
3440
|
+
copyPath,
|
|
3441
|
+
dismissItem,
|
|
3442
|
+
focusFirst: focusFirst$1,
|
|
3443
|
+
focusIndex: focusIndex$1,
|
|
3444
|
+
focusNext: focusNext$1,
|
|
3445
|
+
focusNextPage,
|
|
3446
|
+
focusPrevious: focusPrevious$1,
|
|
3447
|
+
focusPreviousPage,
|
|
3448
|
+
handleContextMenu: handleContextMenu$2,
|
|
3449
|
+
handleInputContextMenu,
|
|
3450
|
+
handleInputCopy,
|
|
3451
|
+
handleInputCut,
|
|
3452
|
+
handleInputPaste,
|
|
3453
|
+
handleInputSelectionChange,
|
|
3454
|
+
handleListBlur,
|
|
3455
|
+
handleWheel,
|
|
3456
|
+
open,
|
|
3457
|
+
openDetails,
|
|
3458
|
+
replaceAll,
|
|
3459
|
+
selectIndex: selectIndex$1,
|
|
3460
|
+
setExcludeValue,
|
|
3461
|
+
setIncludeValue,
|
|
3462
|
+
setLimit,
|
|
3463
|
+
setReplaceValue,
|
|
3464
|
+
setValue,
|
|
3465
|
+
toggleMatchCase,
|
|
3466
|
+
toggleMatchWholeWord,
|
|
3467
|
+
togglePreserveCase,
|
|
3468
|
+
toggleReplace,
|
|
3469
|
+
toggleSearchDetails,
|
|
3470
|
+
toggleUseRegularExpression
|
|
3606
3471
|
};
|
|
3607
3472
|
|
|
3608
3473
|
const show$1 = async () => {
|
|
3609
|
-
return invoke
|
|
3474
|
+
return invoke('Main.openUri', 'settings://');
|
|
3610
3475
|
};
|
|
3611
3476
|
const handleInput$1 = async searchValue => {
|
|
3612
|
-
|
|
3613
|
-
return invoke$1('Settings.handleInput', searchValue, Script);
|
|
3477
|
+
return invoke('Settings.handleInput', searchValue, Script);
|
|
3614
3478
|
};
|
|
3615
3479
|
const usePreviousSearchValue = async () => {
|
|
3616
|
-
|
|
3617
|
-
return invoke$1('Settings.usePreviousSearchValue');
|
|
3480
|
+
return invoke('Settings.usePreviousSearchValue');
|
|
3618
3481
|
};
|
|
3619
3482
|
const useNextSearchValue = async () => {
|
|
3620
|
-
|
|
3621
|
-
return invoke$1('Settings.useNextSearchValue');
|
|
3483
|
+
return invoke('Settings.useNextSearchValue');
|
|
3622
3484
|
};
|
|
3623
3485
|
const clear = async searchValue => {
|
|
3624
|
-
|
|
3625
|
-
return invoke$1('Settings.clear', searchValue, Script);
|
|
3486
|
+
return invoke('Settings.clear', searchValue, Script);
|
|
3626
3487
|
};
|
|
3627
3488
|
const clearHistory = async () => {
|
|
3628
3489
|
// @ts-ignore
|
|
3629
|
-
return invoke
|
|
3490
|
+
return invoke('Settings.clearHistory', searchValue, Script);
|
|
3630
3491
|
};
|
|
3631
3492
|
const selectTab = async tabId => {
|
|
3632
|
-
|
|
3633
|
-
return invoke$1('Settings.handleClickTab', tabId);
|
|
3493
|
+
return invoke('Settings.handleClickTab', tabId);
|
|
3634
3494
|
};
|
|
3635
3495
|
const selectWorkspace = async () => {
|
|
3636
3496
|
await selectTab('workspace');
|
|
@@ -3645,165 +3505,142 @@ const selectWindow = async () => {
|
|
|
3645
3505
|
await selectTab('window');
|
|
3646
3506
|
};
|
|
3647
3507
|
const handleScroll = async scrollTop => {
|
|
3648
|
-
|
|
3649
|
-
await invoke$1('Settings.handleScroll', scrollTop, Script);
|
|
3508
|
+
await invoke('Settings.handleScroll', scrollTop, Script);
|
|
3650
3509
|
};
|
|
3651
3510
|
const handleClickFilterButton = async (x, y) => {
|
|
3652
|
-
|
|
3653
|
-
await invoke$1('Settings.handleClickFilterButton', x, y);
|
|
3511
|
+
await invoke('Settings.handleClickFilterButton', x, y);
|
|
3654
3512
|
};
|
|
3655
3513
|
|
|
3656
3514
|
const SettingsView = {
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3515
|
+
__proto__: null,
|
|
3516
|
+
clear,
|
|
3517
|
+
clearHistory,
|
|
3518
|
+
handleClickFilterButton,
|
|
3519
|
+
handleInput: handleInput$1,
|
|
3520
|
+
handleScroll,
|
|
3521
|
+
selectExtensions,
|
|
3522
|
+
selectTab,
|
|
3523
|
+
selectTextEditor,
|
|
3524
|
+
selectWindow,
|
|
3525
|
+
selectWorkspace,
|
|
3526
|
+
show: show$1,
|
|
3527
|
+
useNextSearchValue,
|
|
3528
|
+
usePreviousSearchValue
|
|
3671
3529
|
};
|
|
3672
3530
|
|
|
3673
3531
|
const selectIndex = async index => {
|
|
3674
|
-
|
|
3675
|
-
await invoke$1('Source Control.selectIndex', index);
|
|
3532
|
+
await invoke('Source Control.selectIndex', index);
|
|
3676
3533
|
};
|
|
3677
3534
|
const acceptInput = async () => {
|
|
3678
|
-
await invoke
|
|
3535
|
+
await invoke('Source Control.acceptInput');
|
|
3679
3536
|
};
|
|
3680
3537
|
const handleInput = async text => {
|
|
3681
|
-
|
|
3682
|
-
await invoke$1('Source Control.handleInput', text, Script$1);
|
|
3538
|
+
await invoke('Source Control.handleInput', text, Script$1);
|
|
3683
3539
|
};
|
|
3684
3540
|
const handleClickSourceControlButtons = async (index, name) => {
|
|
3685
|
-
await invoke
|
|
3541
|
+
await invoke('Source Control.handleClickSourceControlButtons', index, name);
|
|
3686
3542
|
};
|
|
3687
3543
|
const handleContextMenu$1 = async (button, x, y) => {
|
|
3688
|
-
await invoke
|
|
3544
|
+
await invoke('Source Control.handleContextMenu', button, x, y);
|
|
3689
3545
|
};
|
|
3690
3546
|
const show = async () => {
|
|
3691
|
-
// @ts-ignore
|
|
3692
3547
|
await open$5('Source Control');
|
|
3693
3548
|
};
|
|
3694
3549
|
|
|
3695
3550
|
const SourceControl = {
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3551
|
+
__proto__: null,
|
|
3552
|
+
acceptInput,
|
|
3553
|
+
handleClickSourceControlButtons,
|
|
3554
|
+
handleContextMenu: handleContextMenu$1,
|
|
3555
|
+
handleInput,
|
|
3556
|
+
selectIndex,
|
|
3557
|
+
show
|
|
3703
3558
|
};
|
|
3704
3559
|
|
|
3705
3560
|
const update = async () => {
|
|
3706
|
-
await invoke
|
|
3561
|
+
await invoke('StatusBar.updateStatusBarItems');
|
|
3707
3562
|
};
|
|
3708
3563
|
|
|
3709
3564
|
const StatusBar = {
|
|
3710
|
-
|
|
3711
|
-
|
|
3565
|
+
__proto__: null,
|
|
3566
|
+
update
|
|
3712
3567
|
};
|
|
3713
3568
|
|
|
3714
3569
|
const closeMenu = async () => {
|
|
3715
|
-
|
|
3716
|
-
await invoke$1('TitleBar.closeMenu');
|
|
3570
|
+
await invoke('TitleBar.closeMenu');
|
|
3717
3571
|
};
|
|
3718
3572
|
const focus = async () => {
|
|
3719
|
-
|
|
3720
|
-
await invoke$1('TitleBar.focus');
|
|
3573
|
+
await invoke('TitleBar.focus');
|
|
3721
3574
|
};
|
|
3722
3575
|
const focusFirst = async () => {
|
|
3723
|
-
|
|
3724
|
-
await invoke$1('TitleBar.focusFirst');
|
|
3576
|
+
await invoke('TitleBar.focusFirst');
|
|
3725
3577
|
};
|
|
3726
3578
|
const focusIndex = async index => {
|
|
3727
|
-
|
|
3728
|
-
await invoke$1('TitleBar.focusIndex', index);
|
|
3579
|
+
await invoke('TitleBar.focusIndex', index);
|
|
3729
3580
|
};
|
|
3730
3581
|
const focusLast = async () => {
|
|
3731
|
-
|
|
3732
|
-
await invoke$1('TitleBar.focusLast');
|
|
3582
|
+
await invoke('TitleBar.focusLast');
|
|
3733
3583
|
};
|
|
3734
3584
|
const focusNext = async () => {
|
|
3735
|
-
|
|
3736
|
-
await invoke$1('TitleBar.focusNext');
|
|
3585
|
+
await invoke('TitleBar.focusNext');
|
|
3737
3586
|
};
|
|
3738
3587
|
const focusPrevious = async () => {
|
|
3739
|
-
|
|
3740
|
-
await invoke$1('TitleBar.focusPrevious');
|
|
3588
|
+
await invoke('TitleBar.focusPrevious');
|
|
3741
3589
|
};
|
|
3742
3590
|
const handleKeyArrowDown = async () => {
|
|
3743
|
-
|
|
3744
|
-
await invoke$1('TitleBar.handleKeyArrowDown');
|
|
3591
|
+
await invoke('TitleBar.handleKeyArrowDown');
|
|
3745
3592
|
};
|
|
3746
3593
|
const handleKeyArrowLeft = async () => {
|
|
3747
|
-
|
|
3748
|
-
await invoke$1('TitleBar.handleKeyArrowLeft');
|
|
3594
|
+
await invoke('TitleBar.handleKeyArrowLeft');
|
|
3749
3595
|
};
|
|
3750
3596
|
const handleKeyArrowRight = async () => {
|
|
3751
|
-
|
|
3752
|
-
await invoke$1('TitleBar.handleKeyArrowRight');
|
|
3597
|
+
await invoke('TitleBar.handleKeyArrowRight');
|
|
3753
3598
|
};
|
|
3754
3599
|
const handleKeyArrowUp = async () => {
|
|
3755
|
-
|
|
3756
|
-
await invoke$1('TitleBar.handleKeyArrowUp');
|
|
3600
|
+
await invoke('TitleBar.handleKeyArrowUp');
|
|
3757
3601
|
};
|
|
3758
3602
|
const handleKeyEnd = async () => {
|
|
3759
|
-
|
|
3760
|
-
await invoke$1('TitleBar.handleKeyEnd');
|
|
3603
|
+
await invoke('TitleBar.handleKeyEnd');
|
|
3761
3604
|
};
|
|
3762
3605
|
const handleKeyHome = async () => {
|
|
3763
|
-
|
|
3764
|
-
await invoke$1('TitleBar.handleKeyHome');
|
|
3606
|
+
await invoke('TitleBar.handleKeyHome');
|
|
3765
3607
|
};
|
|
3766
3608
|
const handleKeySpace = async () => {
|
|
3767
|
-
|
|
3768
|
-
await invoke$1('TitleBar.handleKeySpace');
|
|
3609
|
+
await invoke('TitleBar.handleKeySpace');
|
|
3769
3610
|
};
|
|
3770
3611
|
const handleKeyEscape = async () => {
|
|
3771
|
-
|
|
3772
|
-
await invoke$1('TitleBar.handleKeyEscape');
|
|
3612
|
+
await invoke('TitleBar.handleKeyEscape');
|
|
3773
3613
|
};
|
|
3774
3614
|
const toggleIndex = async index => {
|
|
3775
|
-
|
|
3776
|
-
await invoke$1('TitleBar.toggleIndex', index);
|
|
3615
|
+
await invoke('TitleBar.toggleIndex', index);
|
|
3777
3616
|
};
|
|
3778
3617
|
const toggleMenu = async () => {
|
|
3779
|
-
|
|
3780
|
-
await invoke$1('TitleBar.toggleMenu');
|
|
3618
|
+
await invoke('TitleBar.toggleMenu');
|
|
3781
3619
|
};
|
|
3782
3620
|
const handleContextMenu = async (button, x, y) => {
|
|
3783
|
-
|
|
3784
|
-
await invoke$1('TitleBar.handleContextMenu', button, x, y);
|
|
3621
|
+
await invoke('TitleBar.handleContextMenu', button, x, y);
|
|
3785
3622
|
};
|
|
3786
3623
|
|
|
3787
3624
|
const TitleBarMenuBar = {
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3625
|
+
__proto__: null,
|
|
3626
|
+
closeMenu,
|
|
3627
|
+
focus,
|
|
3628
|
+
focusFirst,
|
|
3629
|
+
focusIndex,
|
|
3630
|
+
focusLast,
|
|
3631
|
+
focusNext,
|
|
3632
|
+
focusPrevious,
|
|
3633
|
+
handleContextMenu,
|
|
3634
|
+
handleKeyArrowDown,
|
|
3635
|
+
handleKeyArrowLeft,
|
|
3636
|
+
handleKeyArrowRight,
|
|
3637
|
+
handleKeyArrowUp,
|
|
3638
|
+
handleKeyEnd,
|
|
3639
|
+
handleKeyEscape,
|
|
3640
|
+
handleKeyHome,
|
|
3641
|
+
handleKeySpace,
|
|
3642
|
+
toggleIndex,
|
|
3643
|
+
toggleMenu
|
|
3807
3644
|
};
|
|
3808
3645
|
|
|
3809
3646
|
let url = '';
|
|
@@ -3815,9 +3652,9 @@ const resolve = relativePath => {
|
|
|
3815
3652
|
};
|
|
3816
3653
|
|
|
3817
3654
|
const Url = {
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3655
|
+
__proto__: null,
|
|
3656
|
+
resolve,
|
|
3657
|
+
setUrl
|
|
3821
3658
|
};
|
|
3822
3659
|
|
|
3823
3660
|
const getPortTuple = () => {
|
|
@@ -3833,7 +3670,7 @@ const getPortTuple = () => {
|
|
|
3833
3670
|
|
|
3834
3671
|
// TODO ask webview worker directly
|
|
3835
3672
|
const getWebViewInfo = async webViewId => {
|
|
3836
|
-
const info = await invoke
|
|
3673
|
+
const info = await invoke('WebView.getWebViewInfo2', webViewId);
|
|
3837
3674
|
return info;
|
|
3838
3675
|
};
|
|
3839
3676
|
|
|
@@ -3884,6 +3721,7 @@ const fromId = async webViewId => {
|
|
|
3884
3721
|
return {
|
|
3885
3722
|
locator(selector, options) {
|
|
3886
3723
|
const baseLocator = create(selector, options);
|
|
3724
|
+
|
|
3887
3725
|
// @ts-ignore
|
|
3888
3726
|
baseLocator.webViewId = webViewId;
|
|
3889
3727
|
return baseLocator;
|
|
@@ -3892,12 +3730,12 @@ const fromId = async webViewId => {
|
|
|
3892
3730
|
};
|
|
3893
3731
|
|
|
3894
3732
|
const WebView = {
|
|
3895
|
-
|
|
3896
|
-
|
|
3733
|
+
__proto__: null,
|
|
3734
|
+
fromId
|
|
3897
3735
|
};
|
|
3898
3736
|
|
|
3899
3737
|
const setPath = async path => {
|
|
3900
|
-
await invoke
|
|
3738
|
+
await invoke('Workspace.setPath', path);
|
|
3901
3739
|
};
|
|
3902
3740
|
const openTmpDir = async () => {
|
|
3903
3741
|
const tmpDir = await getTmpDir();
|
|
@@ -3906,9 +3744,9 @@ const openTmpDir = async () => {
|
|
|
3906
3744
|
};
|
|
3907
3745
|
|
|
3908
3746
|
const Workspace = {
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3747
|
+
__proto__: null,
|
|
3748
|
+
openTmpDir,
|
|
3749
|
+
setPath
|
|
3912
3750
|
};
|
|
3913
3751
|
|
|
3914
3752
|
const createApi = (platform, assetDir) => {
|
|
@@ -4052,8 +3890,7 @@ const executeTest = async (name, fn, globals = {}) => {
|
|
|
4052
3890
|
// eslint-disable-next-line no-console
|
|
4053
3891
|
console.info(`PASS ${name} in ${formattedDuration}`);
|
|
4054
3892
|
}
|
|
4055
|
-
|
|
4056
|
-
await invoke$1('TestFrameWork.showOverlay', type, background, text);
|
|
3893
|
+
await invoke('TestFrameWork.showOverlay', type, background, text);
|
|
4057
3894
|
};
|
|
4058
3895
|
|
|
4059
3896
|
const hotReloadEnabled = async () => {
|
|
@@ -4110,8 +3947,7 @@ const watchForHotReload = async (platform, href) => {
|
|
|
4110
3947
|
}
|
|
4111
3948
|
const fileUrl = getFileUri(href);
|
|
4112
3949
|
const callbackCommand = 'FileWatcher.handleEvent';
|
|
4113
|
-
|
|
4114
|
-
await invoke$1('FileWatcher.watchFile', TestWorker, callbackCommand, fileUrl);
|
|
3950
|
+
await invoke('FileWatcher.watchFile', TestWorker, callbackCommand, fileUrl);
|
|
4115
3951
|
};
|
|
4116
3952
|
|
|
4117
3953
|
// TODO move this into three steps:
|
|
@@ -4145,7 +3981,6 @@ const execute = async (href, platform, assetDir) => {
|
|
|
4145
3981
|
} else {
|
|
4146
3982
|
const tests = getTests();
|
|
4147
3983
|
for (const test of tests) {
|
|
4148
|
-
// @ts-ignore
|
|
4149
3984
|
await executeTest(test.name, test.fn);
|
|
4150
3985
|
}
|
|
4151
3986
|
}
|