@lvce-editor/problems-view 1.18.0 → 1.19.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.
@@ -2,46 +2,72 @@ const toCommandId = key => {
2
2
  const dotIndex = key.indexOf('.');
3
3
  return key.slice(dotIndex + 1);
4
4
  };
5
- const create$6 = () => {
5
+ const create$a = () => {
6
6
  const states = Object.create(null);
7
7
  const commandMapRef = {};
8
8
  return {
9
- get(uid) {
10
- return states[uid];
9
+ clear() {
10
+ for (const key of Object.keys(states)) {
11
+ delete states[key];
12
+ }
11
13
  },
12
- set(uid, oldState, newState) {
13
- states[uid] = {
14
- oldState,
15
- newState
16
- };
14
+ diff(uid, modules, numbers) {
15
+ const {
16
+ newState,
17
+ oldState
18
+ } = states[uid];
19
+ const diffResult = [];
20
+ for (let i = 0; i < modules.length; i++) {
21
+ const fn = modules[i];
22
+ if (!fn(oldState, newState)) {
23
+ diffResult.push(numbers[i]);
24
+ }
25
+ }
26
+ return diffResult;
17
27
  },
18
28
  dispose(uid) {
19
29
  delete states[uid];
20
30
  },
31
+ get(uid) {
32
+ return states[uid];
33
+ },
34
+ getCommandIds() {
35
+ const keys = Object.keys(commandMapRef);
36
+ const ids = keys.map(toCommandId);
37
+ return ids;
38
+ },
21
39
  getKeys() {
22
40
  return Object.keys(states).map(key => {
23
- return Number.parseInt(key);
41
+ return Number.parseFloat(key);
24
42
  });
25
43
  },
26
- clear() {
27
- for (const key of Object.keys(states)) {
28
- delete states[key];
29
- }
44
+ registerCommands(commandMap) {
45
+ Object.assign(commandMapRef, commandMap);
46
+ },
47
+ set(uid, oldState, newState) {
48
+ states[uid] = {
49
+ newState,
50
+ oldState
51
+ };
30
52
  },
31
53
  wrapCommand(fn) {
32
54
  const wrapped = async (uid, ...args) => {
33
55
  const {
34
- oldState,
35
- newState
56
+ newState,
57
+ oldState
36
58
  } = states[uid];
37
59
  const newerState = await fn(newState, ...args);
38
60
  if (oldState === newerState || newState === newerState) {
39
61
  return;
40
62
  }
41
- const latest = states[uid];
63
+ const latestOld = states[uid];
64
+ const latestNew = {
65
+ ...latestOld.newState,
66
+ ...newerState
67
+ };
42
68
  states[uid] = {
43
- oldState: latest.oldState,
44
- newState: newerState
69
+ newState: latestNew,
70
+ oldState: latestOld.oldState
45
71
  };
46
72
  };
47
73
  return wrapped;
@@ -55,27 +81,36 @@ const create$6 = () => {
55
81
  };
56
82
  return wrapped;
57
83
  },
58
- diff(uid, modules, numbers) {
59
- const {
60
- oldState,
61
- newState
62
- } = states[uid];
63
- const diffResult = [];
64
- for (let i = 0; i < modules.length; i++) {
65
- const fn = modules[i];
66
- if (!fn(oldState, newState)) {
67
- diffResult.push(numbers[i]);
84
+ wrapLoadContent(fn) {
85
+ const wrapped = async (uid, ...args) => {
86
+ const {
87
+ newState,
88
+ oldState
89
+ } = states[uid];
90
+ const result = await fn(newState, ...args);
91
+ const {
92
+ error,
93
+ state
94
+ } = result;
95
+ if (oldState === state || newState === state) {
96
+ return {
97
+ error
98
+ };
68
99
  }
69
- }
70
- return diffResult;
71
- },
72
- getCommandIds() {
73
- const keys = Object.keys(commandMapRef);
74
- const ids = keys.map(toCommandId);
75
- return ids;
76
- },
77
- registerCommands(commandMap) {
78
- Object.assign(commandMapRef, commandMap);
100
+ const latestOld = states[uid];
101
+ const latestNew = {
102
+ ...latestOld.newState,
103
+ ...state
104
+ };
105
+ states[uid] = {
106
+ newState: latestNew,
107
+ oldState: latestOld.oldState
108
+ };
109
+ return {
110
+ error
111
+ };
112
+ };
113
+ return wrapped;
79
114
  }
80
115
  };
81
116
  };
@@ -83,40 +118,6 @@ const terminate = () => {
83
118
  globalThis.close();
84
119
  };
85
120
 
86
- const None$1 = 'none';
87
- const ToolBar = 'toolbar';
88
- const Tree = 'tree';
89
- const TreeItem = 'treeitem';
90
-
91
- const Button$1 = 1;
92
- const Div = 4;
93
- const Input = 6;
94
- const Span = 8;
95
- const Text = 12;
96
- const Img = 17;
97
- const A = 53;
98
-
99
- const Space = 9;
100
- const PageUp = 10;
101
- const PageDown = 11;
102
- const End = 255;
103
- const Home = 12;
104
- const LeftArrow = 13;
105
- const UpArrow = 14;
106
- const RightArrow = 15;
107
- const DownArrow = 16;
108
-
109
- const Script$1 = 2;
110
-
111
- const ProblemsFilter$1 = 25;
112
-
113
- const Checked = 2;
114
- const Unchecked = 3;
115
-
116
- const DebugWorker = 55;
117
- const EditorWorker$1 = 99;
118
- const RendererWorker$1 = 1;
119
-
120
121
  const normalizeLine = line => {
121
122
  if (line.startsWith('Error: ')) {
122
123
  return line.slice('Error: '.length);
@@ -581,7 +582,7 @@ const getFirstEvent = (eventEmitter, eventMap) => {
581
582
  return promise;
582
583
  };
583
584
  const Message$1$1 = 3;
584
- const create$5 = async ({
585
+ const create$5$1 = async ({
585
586
  isMessagePortOpen,
586
587
  messagePort
587
588
  }) => {
@@ -632,11 +633,32 @@ const wrap$5 = messagePort => {
632
633
  };
633
634
  const IpcParentWithMessagePort$1 = {
634
635
  __proto__: null,
635
- create: create$5,
636
+ create: create$5$1,
636
637
  signal: signal$1,
637
638
  wrap: wrap$5
638
639
  };
639
640
 
641
+ class CommandNotFoundError extends Error {
642
+ constructor(command) {
643
+ super(`Command not found ${command}`);
644
+ this.name = 'CommandNotFoundError';
645
+ }
646
+ }
647
+ const commands = Object.create(null);
648
+ const register = commandMap => {
649
+ Object.assign(commands, commandMap);
650
+ };
651
+ const getCommand = key => {
652
+ return commands[key];
653
+ };
654
+ const execute = (command, ...args) => {
655
+ const fn = getCommand(command);
656
+ if (!fn) {
657
+ throw new CommandNotFoundError(command);
658
+ }
659
+ return fn(...args);
660
+ };
661
+
640
662
  const Two$1 = '2.0';
641
663
  const callbacks = Object.create(null);
642
664
  const get$2 = id => {
@@ -661,12 +683,12 @@ const getErrorConstructor = (message, type) => {
661
683
  switch (type) {
662
684
  case DomException:
663
685
  return DOMException;
664
- case TypeError$1:
665
- return TypeError;
666
- case SyntaxError$1:
667
- return SyntaxError;
668
686
  case ReferenceError$1:
669
687
  return ReferenceError;
688
+ case SyntaxError$1:
689
+ return SyntaxError;
690
+ case TypeError$1:
691
+ return TypeError;
670
692
  default:
671
693
  return Error;
672
694
  }
@@ -822,56 +844,56 @@ const getErrorProperty = (error, prettyError) => {
822
844
  if (error && error.code === E_COMMAND_NOT_FOUND) {
823
845
  return {
824
846
  code: MethodNotFound,
825
- message: error.message,
826
- data: error.stack
847
+ data: error.stack,
848
+ message: error.message
827
849
  };
828
850
  }
829
851
  return {
830
852
  code: Custom,
831
- message: prettyError.message,
832
853
  data: {
833
- stack: getStack(prettyError),
834
- codeFrame: prettyError.codeFrame,
835
- type: getErrorType(prettyError),
836
854
  code: prettyError.code,
837
- name: prettyError.name
838
- }
855
+ codeFrame: prettyError.codeFrame,
856
+ name: prettyError.name,
857
+ stack: getStack(prettyError),
858
+ type: getErrorType(prettyError)
859
+ },
860
+ message: prettyError.message
839
861
  };
840
862
  };
841
- const create$1$2 = (id, error) => {
863
+ const create$1$1 = (id, error) => {
842
864
  return {
843
- jsonrpc: Two$1,
865
+ error,
844
866
  id,
845
- error
867
+ jsonrpc: Two$1
846
868
  };
847
869
  };
848
870
  const getErrorResponse = (id, error, preparePrettyError, logError) => {
849
871
  const prettyError = preparePrettyError(error);
850
872
  logError(error, prettyError);
851
873
  const errorProperty = getErrorProperty(error, prettyError);
852
- return create$1$2(id, errorProperty);
874
+ return create$1$1(id, errorProperty);
853
875
  };
854
- const create$3 = (message, result) => {
876
+ const create$9 = (message, result) => {
855
877
  return {
856
- jsonrpc: Two$1,
857
878
  id: message.id,
879
+ jsonrpc: Two$1,
858
880
  result: result ?? null
859
881
  };
860
882
  };
861
883
  const getSuccessResponse = (message, result) => {
862
884
  const resultProperty = result ?? null;
863
- return create$3(message, resultProperty);
885
+ return create$9(message, resultProperty);
864
886
  };
865
887
  const getErrorResponseSimple = (id, error) => {
866
888
  return {
867
- jsonrpc: Two$1,
868
- id,
869
889
  error: {
870
890
  code: Custom,
891
+ data: error,
871
892
  // @ts-ignore
872
- message: error.message,
873
- data: error
874
- }
893
+ message: error.message
894
+ },
895
+ id,
896
+ jsonrpc: Two$1
875
897
  };
876
898
  };
877
899
  const getResponse = async (message, ipc, execute, preparePrettyError, logError, requiresSocket) => {
@@ -901,35 +923,35 @@ const normalizeParams = args => {
901
923
  if (args.length === 1) {
902
924
  const options = args[0];
903
925
  return {
926
+ execute: options.execute,
904
927
  ipc: options.ipc,
928
+ logError: options.logError || defaultLogError,
905
929
  message: options.message,
906
- execute: options.execute,
907
- resolve: options.resolve || defaultResolve,
908
930
  preparePrettyError: options.preparePrettyError || defaultPreparePrettyError,
909
- logError: options.logError || defaultLogError,
910
- requiresSocket: options.requiresSocket || defaultRequiresSocket
931
+ requiresSocket: options.requiresSocket || defaultRequiresSocket,
932
+ resolve: options.resolve || defaultResolve
911
933
  };
912
934
  }
913
935
  return {
936
+ execute: args[2],
914
937
  ipc: args[0],
938
+ logError: args[5],
915
939
  message: args[1],
916
- execute: args[2],
917
- resolve: args[3],
918
940
  preparePrettyError: args[4],
919
- logError: args[5],
920
- requiresSocket: args[6]
941
+ requiresSocket: args[6],
942
+ resolve: args[3]
921
943
  };
922
944
  };
923
945
  const handleJsonRpcMessage = async (...args) => {
924
946
  const options = normalizeParams(args);
925
947
  const {
926
- message,
927
- ipc,
928
948
  execute,
929
- resolve,
930
- preparePrettyError,
949
+ ipc,
931
950
  logError,
932
- requiresSocket
951
+ message,
952
+ preparePrettyError,
953
+ requiresSocket,
954
+ resolve
933
955
  } = options;
934
956
  if ('id' in message) {
935
957
  if ('method' in message) {
@@ -952,36 +974,17 @@ const handleJsonRpcMessage = async (...args) => {
952
974
  throw new JsonRpcError('unexpected message');
953
975
  };
954
976
 
955
- class CommandNotFoundError extends Error {
956
- constructor(command) {
957
- super(`Command not found ${command}`);
958
- this.name = 'CommandNotFoundError';
959
- }
960
- }
961
- const commands = Object.create(null);
962
- const register = commandMap => {
963
- Object.assign(commands, commandMap);
964
- };
965
- const getCommand = key => {
966
- return commands[key];
967
- };
968
- const execute = (command, ...args) => {
969
- const fn = getCommand(command);
970
- if (!fn) {
971
- throw new CommandNotFoundError(command);
972
- }
973
- return fn(...args);
974
- };
975
-
976
977
  const Two = '2.0';
977
- const create$s = (method, params) => {
978
+
979
+ const create$8 = (method, params) => {
978
980
  return {
979
981
  jsonrpc: Two,
980
982
  method,
981
983
  params
982
984
  };
983
985
  };
984
- const create$r = (id, method, params) => {
986
+
987
+ const create$7 = (id, method, params) => {
985
988
  const message = {
986
989
  id,
987
990
  jsonrpc: Two,
@@ -990,15 +993,14 @@ const create$r = (id, method, params) => {
990
993
  };
991
994
  return message;
992
995
  };
996
+
993
997
  let id = 0;
994
- const create$q = () => {
998
+ const create$6 = () => {
995
999
  return ++id;
996
1000
  };
997
1001
 
998
- /* eslint-disable n/no-unsupported-features/es-syntax */
999
-
1000
1002
  const registerPromise = map => {
1001
- const id = create$q();
1003
+ const id = create$6();
1002
1004
  const {
1003
1005
  promise,
1004
1006
  resolve
@@ -1010,13 +1012,12 @@ const registerPromise = map => {
1010
1012
  };
1011
1013
  };
1012
1014
 
1013
- // @ts-ignore
1014
1015
  const invokeHelper = async (callbacks, ipc, method, params, useSendAndTransfer) => {
1015
1016
  const {
1016
1017
  id,
1017
1018
  promise
1018
1019
  } = registerPromise(callbacks);
1019
- const message = create$r(id, method, params);
1020
+ const message = create$7(id, method, params);
1020
1021
  if (useSendAndTransfer && ipc.sendAndTransfer) {
1021
1022
  ipc.sendAndTransfer(message);
1022
1023
  } else {
@@ -1052,12 +1053,13 @@ const createRpc = ipc => {
1052
1053
  * @deprecated
1053
1054
  */
1054
1055
  send(method, ...params) {
1055
- const message = create$s(method, params);
1056
+ const message = create$8(method, params);
1056
1057
  ipc.send(message);
1057
1058
  }
1058
1059
  };
1059
1060
  return rpc;
1060
1061
  };
1062
+
1061
1063
  const requiresSocket = () => {
1062
1064
  return false;
1063
1065
  };
@@ -1072,6 +1074,7 @@ const handleMessage = event => {
1072
1074
  const actualExecute = event?.target?.execute || execute;
1073
1075
  return handleJsonRpcMessage(event.target, event.data, actualExecute, event.target._resolve, preparePrettyError, logError, actualRequiresSocket);
1074
1076
  };
1077
+
1075
1078
  const handleIpc = ipc => {
1076
1079
  if ('addEventListener' in ipc) {
1077
1080
  ipc.addEventListener('message', handleMessage);
@@ -1080,6 +1083,7 @@ const handleIpc = ipc => {
1080
1083
  ipc.on('message', handleMessage);
1081
1084
  }
1082
1085
  };
1086
+
1083
1087
  const listen$1 = async (module, options) => {
1084
1088
  const rawIpc = await module.listen(options);
1085
1089
  if (module.signal) {
@@ -1089,7 +1093,40 @@ const listen$1 = async (module, options) => {
1089
1093
  return ipc;
1090
1094
  };
1091
1095
 
1092
- /* eslint-disable @typescript-eslint/no-misused-promises */
1096
+ const create$5 = async ({
1097
+ commandMap,
1098
+ isMessagePortOpen = true,
1099
+ messagePort
1100
+ }) => {
1101
+ // TODO create a commandMap per rpc instance
1102
+ register(commandMap);
1103
+ const rawIpc = await IpcParentWithMessagePort$1.create({
1104
+ isMessagePortOpen,
1105
+ messagePort
1106
+ });
1107
+ const ipc = IpcParentWithMessagePort$1.wrap(rawIpc);
1108
+ handleIpc(ipc);
1109
+ const rpc = createRpc(ipc);
1110
+ messagePort.start();
1111
+ return rpc;
1112
+ };
1113
+
1114
+ const create$4 = async ({
1115
+ commandMap,
1116
+ isMessagePortOpen,
1117
+ send
1118
+ }) => {
1119
+ const {
1120
+ port1,
1121
+ port2
1122
+ } = new MessageChannel();
1123
+ await send(port1);
1124
+ return create$5({
1125
+ commandMap,
1126
+ isMessagePortOpen,
1127
+ messagePort: port2
1128
+ });
1129
+ };
1093
1130
 
1094
1131
  const createSharedLazyRpc = factory => {
1095
1132
  let rpcPromise;
@@ -1118,57 +1155,22 @@ const createSharedLazyRpc = factory => {
1118
1155
  }
1119
1156
  };
1120
1157
  };
1121
- const create$i = async ({
1158
+
1159
+ const create$3 = async ({
1122
1160
  commandMap,
1123
1161
  isMessagePortOpen,
1124
1162
  send
1125
1163
  }) => {
1126
1164
  return createSharedLazyRpc(() => {
1127
- return create$2({
1165
+ return create$4({
1128
1166
  commandMap,
1129
1167
  isMessagePortOpen,
1130
1168
  send
1131
1169
  });
1132
1170
  });
1133
1171
  };
1134
- const LazyTransferMessagePortRpcParent = {
1135
- __proto__: null,
1136
- create: create$i
1137
- };
1138
- const create$4 = async ({
1139
- commandMap,
1140
- isMessagePortOpen = true,
1141
- messagePort
1142
- }) => {
1143
- // TODO create a commandMap per rpc instance
1144
- register(commandMap);
1145
- const rawIpc = await IpcParentWithMessagePort$1.create({
1146
- isMessagePortOpen,
1147
- messagePort
1148
- });
1149
- const ipc = IpcParentWithMessagePort$1.wrap(rawIpc);
1150
- handleIpc(ipc);
1151
- const rpc = createRpc(ipc);
1152
- messagePort.start();
1153
- return rpc;
1154
- };
1172
+
1155
1173
  const create$2 = async ({
1156
- commandMap,
1157
- isMessagePortOpen,
1158
- send
1159
- }) => {
1160
- const {
1161
- port1,
1162
- port2
1163
- } = new MessageChannel();
1164
- await send(port1);
1165
- return create$4({
1166
- commandMap,
1167
- isMessagePortOpen,
1168
- messagePort: port2
1169
- });
1170
- };
1171
- const create$1$1 = async ({
1172
1174
  commandMap
1173
1175
  }) => {
1174
1176
  // TODO create a commandMap per rpc instance
@@ -1178,10 +1180,7 @@ const create$1$1 = async ({
1178
1180
  const rpc = createRpc(ipc);
1179
1181
  return rpc;
1180
1182
  };
1181
- const WebWorkerRpcClient = {
1182
- __proto__: null,
1183
- create: create$1$1
1184
- };
1183
+
1185
1184
  const createMockRpc = ({
1186
1185
  commandMap
1187
1186
  }) => {
@@ -1250,81 +1249,41 @@ const create$1 = rpcId => {
1250
1249
  };
1251
1250
  };
1252
1251
 
1252
+ const None$1 = 'none';
1253
+ const ToolBar = 'toolbar';
1254
+ const Tree = 'tree';
1255
+ const TreeItem = 'treeitem';
1256
+
1257
+ const Button$1 = 1;
1258
+ const Div = 4;
1259
+ const Input = 6;
1260
+ const Span = 8;
1261
+ const Text = 12;
1262
+ const Img = 17;
1263
+ const A = 53;
1264
+
1265
+ const Space = 9;
1266
+ const PageUp = 10;
1267
+ const PageDown = 11;
1268
+ const End = 255;
1269
+ const Home = 12;
1270
+ const LeftArrow = 13;
1271
+ const UpArrow = 14;
1272
+ const RightArrow = 15;
1273
+ const DownArrow = 16;
1274
+
1275
+ const ProblemsFilter$1 = 25;
1276
+
1277
+ const Checked = 2;
1278
+ const Unchecked = 3;
1279
+
1280
+ const EditorWorker$1 = 99;
1281
+ const RendererWorker$1 = 1;
1282
+
1253
1283
  const {
1254
- dispose: dispose$1,
1255
1284
  invoke: invoke$1,
1256
- invokeAndTransfer: invokeAndTransfer$1,
1257
- registerMockRpc: registerMockRpc$1,
1258
1285
  set: set$3
1259
1286
  } = create$1(EditorWorker$1);
1260
- const sendMessagePortToExtensionHostWorker$1 = async port => {
1261
- const command = 'HandleMessagePort.handleMessagePort2';
1262
- await invokeAndTransfer$1(
1263
- // @ts-ignore
1264
- 'SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionHostWorker', port, command, 0);
1265
- };
1266
- // TODO add tests for this
1267
- const activateByEvent$1 = async event => {
1268
- // @ts-ignore
1269
- await invoke$1('ActivateByEvent.activateByEvent', event);
1270
- };
1271
- const applyEdit = async (editorUid, changes) => {
1272
- // @ts-ignore
1273
- await invoke$1('Editor.applyEdit2', editorUid, changes);
1274
- };
1275
- const applyDocumentEdits = async (editorUid, changes) => {
1276
- // @ts-ignore
1277
- await invoke$1('Editor.applyDocumentEdits', editorUid, changes);
1278
- };
1279
- const applyWorkspaceEdit = async (editorUid, changes) => {
1280
- // @ts-ignore
1281
- await invoke$1('Editor.applyWorkspaceEdit', editorUid, changes);
1282
- };
1283
- const closeWidget$1 = async (editorUid, widgetId, widgetName, focusId) => {
1284
- // @ts-ignore
1285
- await invoke$1('Editor.closeWidget2', editorUid, widgetId, widgetName, focusId);
1286
- };
1287
- const getWordAt = async (uid, rowIndex, columnIndex) => {
1288
- // @ts-ignore
1289
- const word = await invoke$1('Editor.getWordAt2', uid, rowIndex, columnIndex);
1290
- return word;
1291
- };
1292
- const getLines = async editorUid => {
1293
- const lines = await invoke$1('Editor.getLines2', editorUid);
1294
- return lines;
1295
- };
1296
- const getPositionAtCursor = async parentUid => {
1297
- const position = await invoke$1('Editor.getPositionAtCursor', parentUid);
1298
- return position;
1299
- };
1300
- const getOffsetAtCursor = async editorId => {
1301
- // @ts-ignore
1302
- return await invoke$1('Editor.getOffsetAtCursor', editorId);
1303
- };
1304
- const getSelections = async editorUid => {
1305
- const selections = await invoke$1('Editor.getSelections2', editorUid);
1306
- return selections;
1307
- };
1308
- const getWordAtOffset2 = async editorUid => {
1309
- return invoke$1('Editor.getWordAtOffset2', editorUid);
1310
- };
1311
- const closeFind2 = async editorUid => {
1312
- return invoke$1('Editor.closeFind2', editorUid);
1313
- };
1314
- const getWordBefore = async (editorUid, rowIndex, columnIndex) => {
1315
- return invoke$1('Editor.getWordBefore2', editorUid, rowIndex, columnIndex);
1316
- };
1317
- const updateDebugInfo = async info => {
1318
- await invoke$1('Editor.updateDebugInfo', info);
1319
- };
1320
- const getUri = async editorUid => {
1321
- // @ts-ignore
1322
- return invoke$1('Editor.getUri', editorUid);
1323
- };
1324
- const getLanguageId = async editorUid => {
1325
- // @ts-ignore
1326
- return invoke$1('Editor.getLanguageId', editorUid);
1327
- };
1328
1287
  const getProblems$2 = async () => {
1329
1288
  // @ts-ignore
1330
1289
  return invoke$1('Editor.getProblems');
@@ -1332,463 +1291,38 @@ const getProblems$2 = async () => {
1332
1291
 
1333
1292
  const EditorWorker = {
1334
1293
  __proto__: null,
1335
- activateByEvent: activateByEvent$1,
1336
- applyDocumentEdits,
1337
- applyEdit,
1338
- applyWorkspaceEdit,
1339
- closeFind2,
1340
- closeWidget: closeWidget$1,
1341
- dispose: dispose$1,
1342
- getLanguageId,
1343
- getLines,
1344
- getOffsetAtCursor,
1345
- getPositionAtCursor,
1346
1294
  getProblems: getProblems$2,
1347
- getSelections,
1348
- getUri,
1349
- getWordAt,
1350
- getWordAtOffset2,
1351
- getWordBefore,
1352
1295
  invoke: invoke$1,
1353
- invokeAndTransfer: invokeAndTransfer$1,
1354
- registerMockRpc: registerMockRpc$1,
1355
- sendMessagePortToExtensionHostWorker: sendMessagePortToExtensionHostWorker$1,
1356
- set: set$3,
1357
- updateDebugInfo
1296
+ set: set$3
1358
1297
  };
1359
1298
 
1360
1299
  const {
1361
- dispose,
1362
1300
  invoke,
1363
1301
  invokeAndTransfer,
1364
- registerMockRpc,
1365
1302
  set: set$2
1366
1303
  } = create$1(RendererWorker$1);
1367
- const searchFileHtml = async uri => {
1368
- return invoke('ExtensionHost.searchFileWithHtml', uri);
1369
- };
1370
- const getFilePathElectron = async file => {
1371
- return invoke('FileSystemHandle.getFilePathElectron', file);
1372
- };
1373
- /**
1374
- * @deprecated
1375
- */
1376
- const showContextMenu = async (x, y, id, ...args) => {
1377
- return invoke('ContextMenu.show', x, y, id, ...args);
1378
- };
1379
1304
  const showContextMenu2 = async (uid, menuId, x, y, args) => {
1380
1305
  number(uid);
1381
1306
  number(menuId);
1382
1307
  number(x);
1383
1308
  number(y);
1384
- // @ts-ignore
1385
1309
  await invoke('ContextMenu.show2', uid, menuId, x, y, args);
1386
1310
  };
1387
- const getElectronVersion = async () => {
1388
- return invoke('Process.getElectronVersion');
1389
- };
1390
- const applyBulkReplacement = async bulkEdits => {
1391
- await invoke('BulkReplacement.applyBulkReplacement', bulkEdits);
1392
- };
1393
- const setColorTheme = async id => {
1394
- // @ts-ignore
1395
- return invoke(/* ColorTheme.setColorTheme */'ColorTheme.setColorTheme', /* colorThemeId */id);
1396
- };
1397
- const getNodeVersion = async () => {
1398
- return invoke('Process.getNodeVersion');
1399
- };
1400
- const getChromeVersion = async () => {
1401
- return invoke('Process.getChromeVersion');
1402
- };
1403
- const getV8Version = async () => {
1404
- return invoke('Process.getV8Version');
1405
- };
1406
- const getFileHandles = async fileIds => {
1407
- const files = await invoke('FileSystemHandle.getFileHandles', fileIds);
1408
- return files;
1409
- };
1410
- const setWorkspacePath = async path => {
1411
- await invoke('Workspace.setPath', path);
1412
- };
1413
- const registerWebViewInterceptor = async (id, port) => {
1414
- await invokeAndTransfer('WebView.registerInterceptor', id, port);
1415
- };
1416
- const unregisterWebViewInterceptor = async id => {
1417
- await invoke('WebView.unregisterInterceptor', id);
1418
- };
1419
1311
  const sendMessagePortToEditorWorker$1 = async (port, rpcId) => {
1420
1312
  const command = 'HandleMessagePort.handleMessagePort';
1421
- // @ts-ignore
1422
1313
  await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToEditorWorker', port, command, rpcId);
1423
1314
  };
1424
- const sendMessagePortToErrorWorker = async (port, rpcId) => {
1425
- const command = 'Errors.handleMessagePort';
1426
- // @ts-ignore
1427
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToErrorWorker', port, command, rpcId);
1428
- };
1429
- const sendMessagePortToMarkdownWorker = async (port, rpcId) => {
1430
- const command = 'Markdown.handleMessagePort';
1431
- // @ts-ignore
1432
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToMarkdownWorker', port, command, rpcId);
1433
- };
1434
- const sendMessagePortToIconThemeWorker = async (port, rpcId) => {
1435
- const command = 'IconTheme.handleMessagePort';
1436
- // @ts-ignore
1437
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToIconThemeWorker', port, command, rpcId);
1438
- };
1439
- const sendMessagePortToFileSystemWorker = async (port, rpcId) => {
1440
- const command = 'FileSystem.handleMessagePort';
1441
- // @ts-ignore
1442
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToFileSystemWorker', port, command, rpcId);
1443
- };
1444
- const readFile = async uri => {
1445
- return invoke('FileSystem.readFile', uri);
1446
- };
1447
- const getWebViewSecret = async key => {
1448
- // @ts-ignore
1449
- return invoke('WebView.getSecret', key);
1450
- };
1451
- const setWebViewPort = async (uid, port, origin, portType) => {
1452
- return invokeAndTransfer('WebView.setPort', uid, port, origin, portType);
1453
- };
1454
- const setFocus = key => {
1455
- return invoke('Focus.setFocus', key);
1456
- };
1457
- const getFileIcon = async options => {
1458
- return invoke('IconTheme.getFileIcon', options);
1459
- };
1460
- const getColorThemeNames = async () => {
1461
- return invoke('ColorTheme.getColorThemeNames');
1462
- };
1463
- const disableExtension = async id => {
1464
- // @ts-ignore
1465
- return invoke('ExtensionManagement.disable', id);
1466
- };
1467
- const enableExtension = async id => {
1468
- // @ts-ignore
1469
- return invoke('ExtensionManagement.enable', id);
1470
- };
1471
- const handleDebugChange = async params => {
1472
- // @ts-ignore
1473
- return invoke('Run And Debug.handleChange', params);
1474
- };
1475
- const getFolderIcon = async options => {
1476
- return invoke('IconTheme.getFolderIcon', options);
1477
- };
1478
- const handleWorkspaceRefresh = async () => {
1479
- return invoke('Layout.handleWorkspaceRefresh');
1480
- };
1481
- const closeWidget = async widgetId => {
1482
- return invoke('Viewlet.closeWidget', widgetId);
1483
- };
1484
- const sendMessagePortToExtensionHostWorker = async (port, rpcId = 0) => {
1485
- const command = 'HandleMessagePort.handleMessagePort2';
1486
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionHostWorker', port, command, rpcId);
1487
- };
1488
- const sendMessagePortToFileSearchWorker = async (port, rpcId = 0) => {
1489
- const command = 'QuickPick.handleMessagePort';
1490
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToFileSearchWorker', port, command, rpcId);
1491
- };
1492
- const sendMessagePortToSearchProcess = async port => {
1493
- await invokeAndTransfer('SendMessagePortToElectron.sendMessagePortToElectron', port, 'HandleMessagePortForSearchProcess.handleMessagePortForSearchProcess');
1494
- };
1495
- const confirm = async (message, options) => {
1496
- // @ts-ignore
1497
- const result = await invoke('ConfirmPrompt.prompt', message, options);
1498
- return result;
1499
- };
1500
- const getRecentlyOpened = async () => {
1501
- return invoke(/* RecentlyOpened.getRecentlyOpened */'RecentlyOpened.getRecentlyOpened');
1502
- };
1503
- const getKeyBindings$1 = async () => {
1504
- return invoke('KeyBindingsInitial.getKeyBindings');
1505
- };
1506
1315
  const writeClipBoardText$1 = async text => {
1507
1316
  await invoke('ClipBoard.writeText', /* text */text);
1508
1317
  };
1509
- const readClipBoardText = async () => {
1510
- return invoke('ClipBoard.readText');
1511
- };
1512
- const writeClipBoardImage = async blob => {
1513
- // @ts-ignore
1514
- await invoke('ClipBoard.writeImage', /* text */blob);
1515
- };
1516
- const searchFileMemory = async uri => {
1517
- // @ts-ignore
1518
- return invoke('ExtensionHost.searchFileWithMemory', uri);
1519
- };
1520
- const searchFileFetch = async uri => {
1521
- return invoke('ExtensionHost.searchFileWithFetch', uri);
1522
- };
1523
- const showMessageBox = async options => {
1524
- return invoke('ElectronDialog.showMessageBox', options);
1525
- };
1526
- const handleDebugResumed = async params => {
1527
- await invoke('Run And Debug.handleResumed', params);
1528
- };
1529
- const openWidget = async name => {
1530
- await invoke('Viewlet.openWidget', name);
1531
- };
1532
- const getIcons = async requests => {
1533
- const icons = await invoke('IconTheme.getIcons', requests);
1534
- return icons;
1535
- };
1536
- const activateByEvent = (event, assetDir, platform) => {
1537
- return invoke('ExtensionHostManagement.activateByEvent', event, assetDir, platform);
1538
- };
1539
- const setAdditionalFocus = focusKey => {
1540
- // @ts-ignore
1541
- return invoke('Focus.setAdditionalFocus', focusKey);
1542
- };
1543
- const getActiveEditorId = () => {
1544
- // @ts-ignore
1545
- return invoke('GetActiveEditor.getActiveEditorId');
1546
- };
1547
- const getWorkspacePath = () => {
1548
- return invoke('Workspace.getPath');
1549
- };
1550
- const sendMessagePortToRendererProcess = async port => {
1551
- const command = 'HandleMessagePort.handleMessagePort';
1552
- // @ts-ignore
1553
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToRendererProcess', port, command, DebugWorker);
1554
- };
1555
- const sendMessagePortToTextMeasurementWorker = async port => {
1556
- const command = 'TextMeasurement.handleMessagePort';
1557
- // @ts-ignore
1558
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToTextMeasurementWorker', port, command, 0);
1559
- };
1560
- const sendMessagePortToSourceControlWorker = async port => {
1561
- const command = 'SourceControl.handleMessagePort';
1562
- // @ts-ignore
1563
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToSourceControlWorker', port, command, 0);
1564
- };
1565
- const sendMessagePortToSharedProcess = async port => {
1566
- const command = 'HandleElectronMessagePort.handleElectronMessagePort';
1567
- // @ts-ignore
1568
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToSharedProcess', port, command, 0);
1569
- };
1570
- const sendMessagePortToFileSystemProcess = async (port, rpcId) => {
1571
- const command = 'HandleMessagePortForFileSystemProcess.handleMessagePortForFileSystemProcess';
1572
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToSharedProcess', port, command, rpcId);
1573
- };
1574
- const sendMessagePortToIframeWorker = async (port, rpcId) => {
1575
- const command = 'Iframes.handleMessagePort';
1576
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToIframeWorker', port, command, rpcId);
1577
- };
1578
- const sendMessagePortToExtensionManagementWorker = async (port, rpcId) => {
1579
- const command = 'Extensions.handleMessagePort';
1580
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionManagementWorker', port, command, rpcId);
1581
- };
1582
- const getPreference = async key => {
1583
- return await invoke('Preferences.get', key);
1584
- };
1585
- const getAllExtensions = async () => {
1586
- return invoke('ExtensionManagement.getAllExtensions');
1587
- };
1588
- const rerenderEditor = async key => {
1589
- // @ts-ignore
1590
- return invoke('Editor.rerender', key);
1591
- };
1592
- const handleDebugPaused = async params => {
1593
- await invoke('Run And Debug.handlePaused', params);
1594
- };
1595
- const openUri = async (uri, focus, options) => {
1596
- await invoke('Main.openUri', uri, focus, options);
1597
- };
1598
- const sendMessagePortToSyntaxHighlightingWorker = async port => {
1599
- await invokeAndTransfer(
1600
- // @ts-ignore
1601
- 'SendMessagePortToSyntaxHighlightingWorker.sendMessagePortToSyntaxHighlightingWorker', port, 'HandleMessagePort.handleMessagePort2');
1602
- };
1603
- const handleDebugScriptParsed = async script => {
1604
- await invoke('Run And Debug.handleScriptParsed', script);
1605
- };
1606
- const getWindowId = async () => {
1607
- return invoke('GetWindowId.getWindowId');
1608
- };
1609
- const getBlob = async uri => {
1610
- // @ts-ignore
1611
- return invoke('FileSystem.getBlob', uri);
1612
- };
1613
- const getExtensionCommands = async () => {
1614
- return invoke('ExtensionHost.getCommands');
1615
- };
1616
- const showErrorDialog = async errorInfo => {
1617
- // @ts-ignore
1618
- await invoke('ErrorHandling.showErrorDialog', errorInfo);
1619
- };
1620
- const getFolderSize = async uri => {
1621
- // @ts-ignore
1622
- return await invoke('FileSystem.getFolderSize', uri);
1623
- };
1624
- const getExtension = async id => {
1625
- // @ts-ignore
1626
- return invoke('ExtensionManagement.getExtension', id);
1627
- };
1628
- const getMarkdownDom = async html => {
1629
- // @ts-ignore
1630
- return invoke('Markdown.getVirtualDom', html);
1631
- };
1632
- const renderMarkdown = async (markdown, options) => {
1633
- // @ts-ignore
1634
- return invoke('Markdown.renderMarkdown', markdown, options);
1635
- };
1636
- const openNativeFolder = async uri => {
1637
- // @ts-ignore
1638
- await invoke('OpenNativeFolder.openNativeFolder', uri);
1639
- };
1640
- const uninstallExtension = async id => {
1641
- return invoke('ExtensionManagement.uninstall', id);
1642
- };
1643
- const installExtension = async id => {
1644
- // @ts-ignore
1645
- return invoke('ExtensionManagement.install', id);
1646
- };
1647
- const minimizeWindow = async () => {
1648
- // @ts-ignore
1649
- return invoke('ElectronWindow.minimize');
1650
- };
1651
- const unmaximizeWindow = async () => {
1652
- // @ts-ignore
1653
- return invoke('ElectronWindow.unmaximize');
1654
- };
1655
- const maximizeWindow = async () => {
1656
- // @ts-ignore
1657
- return invoke('ElectronWindow.maximize');
1658
- };
1659
- const closeWindow = async () => {
1660
- // @ts-ignore
1661
- return invoke('ElectronWindow.close');
1662
- };
1663
- const openExtensionSearch = async () => {
1664
- // @ts-ignore
1665
- return invoke('SideBar.openViewlet', 'Extensions');
1666
- };
1667
- const setExtensionsSearchValue = async searchValue => {
1668
- // @ts-ignore
1669
- return invoke('Extensions.handleInput', searchValue, Script$1);
1670
- };
1671
- const openExternal = async uri => {
1672
- // @ts-ignore
1673
- await invoke('Open.openExternal', uri);
1674
- };
1675
- const openUrl = async uri => {
1676
- // @ts-ignore
1677
- await invoke('Open.openUrl', uri);
1678
- };
1679
- const getAllPreferences = async () => {
1680
- // @ts-ignore
1681
- return invoke('Preferences.getAll');
1682
- };
1683
- const showSaveFilePicker = async () => {
1684
- // @ts-ignore
1685
- return invoke('FilePicker.showSaveFilePicker');
1686
- };
1687
- const getLogsDir = async () => {
1688
- // @ts-ignore
1689
- return invoke('PlatformPaths.getLogsDir');
1690
- };
1691
- const measureTextBlockHeight = async (actualInput, fontFamily, fontSize, lineHeightPx, width) => {
1692
- return invoke(`MeasureTextHeight.measureTextBlockHeight`, actualInput, fontFamily, fontSize, lineHeightPx, width);
1693
- };
1694
- const refreshOutput = async () => {
1695
- await invoke('Output.refresh');
1696
- };
1697
1318
 
1698
1319
  const RendererWorker = {
1699
1320
  __proto__: null,
1700
- activateByEvent,
1701
- applyBulkReplacement,
1702
- closeWidget,
1703
- closeWindow,
1704
- confirm,
1705
- disableExtension,
1706
- dispose,
1707
- enableExtension,
1708
- getActiveEditorId,
1709
- getAllExtensions,
1710
- getAllPreferences,
1711
- getBlob,
1712
- getChromeVersion,
1713
- getColorThemeNames,
1714
- getElectronVersion,
1715
- getExtension,
1716
- getExtensionCommands,
1717
- getFileHandles,
1718
- getFileIcon,
1719
- getFilePathElectron,
1720
- getFolderIcon,
1721
- getFolderSize,
1722
- getIcons,
1723
- getKeyBindings: getKeyBindings$1,
1724
- getLogsDir,
1725
- getMarkdownDom,
1726
- getNodeVersion,
1727
- getPreference,
1728
- getRecentlyOpened,
1729
- getV8Version,
1730
- getWebViewSecret,
1731
- getWindowId,
1732
- getWorkspacePath,
1733
- handleDebugChange,
1734
- handleDebugPaused,
1735
- handleDebugResumed,
1736
- handleDebugScriptParsed,
1737
- handleWorkspaceRefresh,
1738
- installExtension,
1739
1321
  invoke,
1740
1322
  invokeAndTransfer,
1741
- maximizeWindow,
1742
- measureTextBlockHeight,
1743
- minimizeWindow,
1744
- openExtensionSearch,
1745
- openExternal,
1746
- openNativeFolder,
1747
- openUri,
1748
- openUrl,
1749
- openWidget,
1750
- readClipBoardText,
1751
- readFile,
1752
- refreshOutput,
1753
- registerMockRpc,
1754
- registerWebViewInterceptor,
1755
- renderMarkdown,
1756
- rerenderEditor,
1757
- searchFileFetch,
1758
- searchFileHtml,
1759
- searchFileMemory,
1760
1323
  sendMessagePortToEditorWorker: sendMessagePortToEditorWorker$1,
1761
- sendMessagePortToErrorWorker,
1762
- sendMessagePortToExtensionHostWorker,
1763
- sendMessagePortToExtensionManagementWorker,
1764
- sendMessagePortToFileSearchWorker,
1765
- sendMessagePortToFileSystemProcess,
1766
- sendMessagePortToFileSystemWorker,
1767
- sendMessagePortToIconThemeWorker,
1768
- sendMessagePortToIframeWorker,
1769
- sendMessagePortToMarkdownWorker,
1770
- sendMessagePortToRendererProcess,
1771
- sendMessagePortToSearchProcess,
1772
- sendMessagePortToSharedProcess,
1773
- sendMessagePortToSourceControlWorker,
1774
- sendMessagePortToSyntaxHighlightingWorker,
1775
- sendMessagePortToTextMeasurementWorker,
1776
1324
  set: set$2,
1777
- setAdditionalFocus,
1778
- setColorTheme,
1779
- setExtensionsSearchValue,
1780
- setFocus,
1781
- setWebViewPort,
1782
- setWorkspacePath,
1783
- showContextMenu,
1784
1325
  showContextMenu2,
1785
- showErrorDialog,
1786
- showMessageBox,
1787
- showSaveFilePicker,
1788
- uninstallExtension,
1789
- unmaximizeWindow,
1790
- unregisterWebViewInterceptor,
1791
- writeClipBoardImage,
1792
1326
  writeClipBoardText: writeClipBoardText$1
1793
1327
  };
1794
1328
 
@@ -1822,7 +1356,7 @@ const {
1822
1356
  set,
1823
1357
  wrapCommand,
1824
1358
  wrapGetter
1825
- } = create$6();
1359
+ } = create$a();
1826
1360
 
1827
1361
  const None = 0;
1828
1362
  const Table = 1;
@@ -2152,6 +1686,13 @@ const handleArrowRight = state => {
2152
1686
  };
2153
1687
  };
2154
1688
 
1689
+ const handleBlur = state => {
1690
+ return {
1691
+ ...state,
1692
+ focusedIndex: -2
1693
+ };
1694
+ };
1695
+
2155
1696
  const getListIndex = (eventX, eventY, x, y, deltaY, itemHeight) => {
2156
1697
  const relativeY = eventY - y + deltaY;
2157
1698
  const index = Math.floor(relativeY / itemHeight);
@@ -2459,6 +2000,17 @@ const getActionButtonVirtualDom = action => {
2459
2000
  }, getIconVirtualDom(icon)];
2460
2001
  };
2461
2002
 
2003
+ const getFilterBadgeDom = badgeText => {
2004
+ if (!badgeText) {
2005
+ return [];
2006
+ }
2007
+ return [{
2008
+ childCount: 1,
2009
+ className: FilterBadge,
2010
+ type: Div
2011
+ }, text(badgeText)];
2012
+ };
2013
+
2462
2014
  const getInputBoxVirtualDom = (name, onInput, placeholder) => {
2463
2015
  return {
2464
2016
  autocapitalize: 'off',
@@ -2486,22 +2038,12 @@ const getChildCount = badgeText => {
2486
2038
  childCount++; // action button
2487
2039
  return childCount;
2488
2040
  };
2489
- const getBadgeDom = badgeText => {
2490
- if (!badgeText) {
2491
- return [];
2492
- }
2493
- return [{
2494
- childCount: 1,
2495
- className: FilterBadge,
2496
- type: Div
2497
- }, text(badgeText)];
2498
- };
2499
2041
  const getProblemsFilterVirtualDom = action => {
2500
2042
  return [{
2501
2043
  childCount: getChildCount(action.badgeText),
2502
2044
  className: Filter$1,
2503
2045
  type: Div
2504
- }, getInputBoxVirtualDom(Filter$2, action.command, action.placeholder || ''), ...getBadgeDom(action.badgeText), ...getActionButtonVirtualDom({
2046
+ }, getInputBoxVirtualDom(Filter$2, action.command, action.placeholder || ''), ...getFilterBadgeDom(action.badgeText), ...getActionButtonVirtualDom({
2505
2047
  command: 'more filters',
2506
2048
  icon: Filter,
2507
2049
  id: 'more filters'})];
@@ -2818,9 +2360,7 @@ const getProblemsVirtualDom$1 = (viewMode, problems, filterValue, message) => {
2818
2360
  };
2819
2361
 
2820
2362
  const getProblemsVirtualDom = (viewMode, problems, filterValue, isSmall, message) => {
2821
- // TODO avoid mutation
2822
- const dom = [];
2823
- dom.push({
2363
+ const baseDom = {
2824
2364
  childCount: 1,
2825
2365
  className: mergeClassNames(Viewlet, Problems),
2826
2366
  onBlur: HandleBlur,
@@ -2828,16 +2368,13 @@ const getProblemsVirtualDom = (viewMode, problems, filterValue, isSmall, message
2828
2368
  onPointerDown: HandlePointerDown,
2829
2369
  tabIndex: 0,
2830
2370
  type: Div
2831
- });
2832
- if (isSmall) {
2833
- dom[0].childCount++;
2834
- dom.push(...getProblemsFilterVirtualDom({
2835
- badgeText: '',
2836
- command: HandleFilterInput,
2837
- placeholder: filter()}));
2838
- }
2839
- dom.push(...getProblemsVirtualDom$1(viewMode, problems, filterValue, message));
2840
- return dom;
2371
+ };
2372
+ const filterDom = isSmall ? getProblemsFilterVirtualDom({
2373
+ badgeText: '',
2374
+ command: HandleFilterInput,
2375
+ placeholder: filter()}) : [];
2376
+ const itemsDom = getProblemsVirtualDom$1(viewMode, problems, filterValue, message);
2377
+ return [baseDom, ...filterDom, ...itemsDom];
2841
2378
  };
2842
2379
 
2843
2380
  const matchesFilterValue = (string, filterValueLower) => {
@@ -2846,6 +2383,7 @@ const matchesFilterValue = (string, filterValueLower) => {
2846
2383
  }
2847
2384
  return 0;
2848
2385
  };
2386
+
2849
2387
  const getListItemType = (listItemType, isCollapsed) => {
2850
2388
  if (listItemType === Item) {
2851
2389
  return Item;
@@ -2891,6 +2429,7 @@ const getIcon = uri => {
2891
2429
  }
2892
2430
  return getFileNameIcon();
2893
2431
  };
2432
+
2894
2433
  const getVisibleProblems = (problems, collapsedUris, focusedIndex, filterValue) => {
2895
2434
  array(problems);
2896
2435
  array(collapsedUris);
@@ -3105,6 +2644,7 @@ const commandMap = {
3105
2644
  'Problems.getMenuIds': getMenuIds,
3106
2645
  'Problems.handleArrowLeft': wrapCommand(handleArrowLeft),
3107
2646
  'Problems.handleArrowRight': wrapCommand(handleArrowRight),
2647
+ 'Problems.handleBlur': wrapCommand(handleBlur),
3108
2648
  'Problems.handleClickAt': wrapCommand(handleClickAt),
3109
2649
  'Problems.handleClickButton': wrapCommand(handleClickButton),
3110
2650
  'Problems.handleClickMoreFilters': wrapCommand(handleClickMoreFilters),
@@ -3130,7 +2670,7 @@ const send = port => {
3130
2670
  };
3131
2671
  const initializeEditorWorkerRpc = async () => {
3132
2672
  try {
3133
- const rpc = await LazyTransferMessagePortRpcParent.create({
2673
+ const rpc = await create$3({
3134
2674
  commandMap: {},
3135
2675
  send
3136
2676
  });
@@ -3142,7 +2682,7 @@ const initializeEditorWorkerRpc = async () => {
3142
2682
  };
3143
2683
 
3144
2684
  const initializeRendererWorker = async () => {
3145
- const rpc = await WebWorkerRpcClient.create({
2685
+ const rpc = await create$2({
3146
2686
  commandMap: commandMapRef
3147
2687
  });
3148
2688
  set$1(rpc);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/problems-view",
3
- "version": "1.18.0",
3
+ "version": "1.19.0",
4
4
  "description": "Problems View Worker",
5
5
  "repository": {
6
6
  "type": "git",