@lvce-editor/test-worker 5.4.0 → 5.6.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 +27 -19
- package/dist/testWorkerMain.js +47 -6
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -163,11 +163,19 @@ declare const chmod: (uri: string, permissions: any) => Promise<void>;
|
|
|
163
163
|
declare const createExecutable: (content: string) => Promise<string>;
|
|
164
164
|
declare const createExecutableFrom: (uri: string) => Promise<string>;
|
|
165
165
|
declare const focusNext$3: () => Promise<void>;
|
|
166
|
+
declare const focusPrevious$2: () => Promise<void>;
|
|
167
|
+
declare const setReplaceValue: (value: string) => Promise<void>;
|
|
166
168
|
declare const setValue: (value: string) => Promise<void>;
|
|
169
|
+
declare const toggleReplace: () => Promise<void>;
|
|
170
|
+
declare const toggleMatchCase: () => Promise<void>;
|
|
171
|
+
declare const toggleMatchWholeWord: () => Promise<void>;
|
|
172
|
+
declare const toggleUseRegularExpression: () => Promise<void>;
|
|
173
|
+
declare const replace: () => Promise<void>;
|
|
174
|
+
declare const replaceAll: () => Promise<void>;
|
|
167
175
|
declare const setIconTheme: (id: string) => Promise<void>;
|
|
168
176
|
declare const selectIndex$2: (index: number) => Promise<void>;
|
|
169
177
|
declare const focusNext$4: () => Promise<void>;
|
|
170
|
-
declare const focusPrevious$
|
|
178
|
+
declare const focusPrevious$3: () => Promise<void>;
|
|
171
179
|
declare const focusFirst$2: () => Promise<void>;
|
|
172
180
|
declare const focusLast$2: () => Promise<void>;
|
|
173
181
|
declare const open$1: () => Promise<void>;
|
|
@@ -176,7 +184,7 @@ declare const handleClick$2: (x: number, y: number) => Promise<void>;
|
|
|
176
184
|
declare const handleWheel$1: (deltaMode: number, deltaY: number) => Promise<void>;
|
|
177
185
|
declare const handleDoubleClick: (x: number, y: number) => Promise<void>;
|
|
178
186
|
declare const focusNext$5: () => Promise<void>;
|
|
179
|
-
declare const focusPrevious$
|
|
187
|
+
declare const focusPrevious$4: () => Promise<void>;
|
|
180
188
|
declare const focusFirst$3: () => Promise<void>;
|
|
181
189
|
declare const focusIndex$1: (index: number) => Promise<void>;
|
|
182
190
|
declare const focusLast$3: () => Promise<void>;
|
|
@@ -204,7 +212,7 @@ declare const closeOthers: () => Promise<void>;
|
|
|
204
212
|
declare const closeActiveEditor: () => Promise<void>;
|
|
205
213
|
declare const focusFirst$4: () => Promise<void>;
|
|
206
214
|
declare const focusNext$6: () => Promise<void>;
|
|
207
|
-
declare const focusPrevious$
|
|
215
|
+
declare const focusPrevious$5: () => Promise<void>;
|
|
208
216
|
declare const focusLast$4: () => Promise<void>;
|
|
209
217
|
declare const show$1: () => Promise<void>;
|
|
210
218
|
declare const handleFilterInput: (text: string) => Promise<void>;
|
|
@@ -232,7 +240,7 @@ declare const focusNext$7: () => Promise<void>;
|
|
|
232
240
|
declare const focusFirst$5: () => Promise<void>;
|
|
233
241
|
declare const focusLast$5: () => Promise<void>;
|
|
234
242
|
declare const focusIndex$3: (index: number) => Promise<void>;
|
|
235
|
-
declare const focusPrevious$
|
|
243
|
+
declare const focusPrevious$6: () => Promise<void>;
|
|
236
244
|
declare const selectItem$1: (label: string) => Promise<void>;
|
|
237
245
|
declare const selectIndex$3: (index: number) => Promise<void>;
|
|
238
246
|
declare const selectCurrentIndex$2: () => Promise<void>;
|
|
@@ -249,9 +257,9 @@ declare const setPauseOnExceptions: (value: number) => Promise<void>;
|
|
|
249
257
|
declare const handleRename: () => Promise<void>;
|
|
250
258
|
declare const handleSpace: () => Promise<void>;
|
|
251
259
|
declare const setValue$2: (value: string) => Promise<void>;
|
|
252
|
-
declare const setReplaceValue: (value: string) => Promise<void>;
|
|
260
|
+
declare const setReplaceValue$1: (value: string) => Promise<void>;
|
|
253
261
|
declare const setExcludeValue: (value: string) => Promise<void>;
|
|
254
|
-
declare const replaceAll: () => Promise<void>;
|
|
262
|
+
declare const replaceAll$1: () => Promise<void>;
|
|
255
263
|
declare const setIncludeValue: (value: string) => Promise<void>;
|
|
256
264
|
declare const clearSearchResults: () => Promise<void>;
|
|
257
265
|
declare const openDetails: () => Promise<void>;
|
|
@@ -264,13 +272,13 @@ declare const focusNext$8: () => Promise<void>;
|
|
|
264
272
|
declare const handleWheel$2: (deltaMode: number, deltaY: number) => Promise<void>;
|
|
265
273
|
declare const focusNextPage: () => Promise<void>;
|
|
266
274
|
declare const focusPreviousPage: () => Promise<void>;
|
|
267
|
-
declare const focusPrevious$
|
|
275
|
+
declare const focusPrevious$7: () => Promise<void>;
|
|
268
276
|
declare const toggleSearchDetails: () => Promise<void>;
|
|
269
|
-
declare const toggleMatchCase: () => Promise<void>;
|
|
270
|
-
declare const toggleMatchWholeWord: () => Promise<void>;
|
|
277
|
+
declare const toggleMatchCase$1: () => Promise<void>;
|
|
278
|
+
declare const toggleMatchWholeWord$1: () => Promise<void>;
|
|
271
279
|
declare const togglePreserveCase: () => Promise<void>;
|
|
272
|
-
declare const toggleUseRegularExpression: () => Promise<void>;
|
|
273
|
-
declare const toggleReplace: () => Promise<void>;
|
|
280
|
+
declare const toggleUseRegularExpression$1: () => Promise<void>;
|
|
281
|
+
declare const toggleReplace$1: () => Promise<void>;
|
|
274
282
|
declare const update: (settings: any) => Promise<void>;
|
|
275
283
|
declare const show$3: () => Promise<void>;
|
|
276
284
|
declare const handleInput$2: (searchValue: string) => Promise<void>;
|
|
@@ -295,7 +303,7 @@ declare const focusFirst$7: () => Promise<void>;
|
|
|
295
303
|
declare const focusIndex$5: (index: number) => Promise<void>;
|
|
296
304
|
declare const focusLast$6: () => Promise<void>;
|
|
297
305
|
declare const focusNext$9: () => Promise<void>;
|
|
298
|
-
declare const focusPrevious$
|
|
306
|
+
declare const focusPrevious$8: () => Promise<void>;
|
|
299
307
|
declare const handleKeyArrowDown: () => Promise<void>;
|
|
300
308
|
declare const handleKeyArrowLeft: () => Promise<void>;
|
|
301
309
|
declare const handleKeyArrowRight: () => Promise<void>;
|
|
@@ -361,22 +369,22 @@ declare namespace FileSystem {
|
|
|
361
369
|
export { chmod, createExecutable, createExecutableFrom, getTmpDir, mkdir, readFile, remove, writeFile, writeJson };
|
|
362
370
|
}
|
|
363
371
|
declare namespace FindWidget {
|
|
364
|
-
export { focusNext$3 as focusNext, setValue };
|
|
372
|
+
export { focusNext$3 as focusNext, focusPrevious$2 as focusPrevious, replace, replaceAll, setReplaceValue, setValue, toggleMatchCase, toggleMatchWholeWord, toggleReplace, toggleUseRegularExpression };
|
|
365
373
|
}
|
|
366
374
|
declare namespace IconTheme {
|
|
367
375
|
export { setIconTheme };
|
|
368
376
|
}
|
|
369
377
|
declare namespace IframeInspector {
|
|
370
|
-
export { focusFirst$2 as focusFirst, focusLast$2 as focusLast, focusNext$4 as focusNext, focusPrevious$
|
|
378
|
+
export { focusFirst$2 as focusFirst, focusLast$2 as focusLast, focusNext$4 as focusNext, focusPrevious$3 as focusPrevious, selectIndex$2 as selectIndex };
|
|
371
379
|
}
|
|
372
380
|
declare namespace KeyBindingsEditor {
|
|
373
|
-
export { addKeyBinding, changeWhenExpression, clearInput, copyCommandId, copyCommandTitle, focusFirst$3 as focusFirst, focusIndex$1 as focusIndex, focusLast$3 as focusLast, focusNext$5 as focusNext, focusPrevious$
|
|
381
|
+
export { addKeyBinding, changeWhenExpression, clearInput, copyCommandId, copyCommandTitle, focusFirst$3 as focusFirst, focusIndex$1 as focusIndex, focusLast$3 as focusLast, focusNext$5 as focusNext, focusPrevious$4 as focusPrevious, handleClick$2 as handleClick, handleContextMenu$1 as handleContextMenu, handleDoubleClick, handleInput, handleWheel$1 as handleWheel, open$1 as open, removeKeyBinding, resetKeyBinding, showSameKeyBindings, sortByPrecedence, startRecordingKeys, stopRecordingKeys, toggleRecordingKeys };
|
|
374
382
|
}
|
|
375
383
|
declare namespace KeyBoard {
|
|
376
384
|
export { press };
|
|
377
385
|
}
|
|
378
386
|
declare namespace Main {
|
|
379
|
-
export { closeActiveEditor, closeAllEditors, closeOthers, closeTabsLeft, closeTabsRight, focusFirst$4 as focusFirst, focusLast$4 as focusLast, focusNext$6 as focusNext, focusPrevious$
|
|
387
|
+
export { closeActiveEditor, closeAllEditors, closeOthers, closeTabsLeft, closeTabsRight, focusFirst$4 as focusFirst, focusLast$4 as focusLast, focusNext$6 as focusNext, focusPrevious$5 as focusPrevious, openKeyBindings, openUri, splitRight };
|
|
380
388
|
}
|
|
381
389
|
declare namespace Output {
|
|
382
390
|
export { clear, handleFilterInput, selectChannel, show$1 as show };
|
|
@@ -391,7 +399,7 @@ declare namespace Problems {
|
|
|
391
399
|
export { copyMessage, focusIndex$2 as focusIndex, handleArrowLeft$1 as handleArrowLeft, handleArrowRight, handleClickAt$1 as handleClickAt, handleFilterInput$1 as handleFilterInput, handleIconThemeChange, show$2 as show, viewAsList, viewAsTable };
|
|
392
400
|
}
|
|
393
401
|
declare namespace QuickPick {
|
|
394
|
-
export { executeCommand, focusFirst$5 as focusFirst, focusIndex$3 as focusIndex, focusLast$5 as focusLast, focusNext$7 as focusNext, focusPrevious$
|
|
402
|
+
export { executeCommand, focusFirst$5 as focusFirst, focusIndex$3 as focusIndex, focusLast$5 as focusLast, focusNext$7 as focusNext, focusPrevious$6 as focusPrevious, handleClickAt$2 as handleClickAt, handleInput$1 as handleInput, open$3 as open, selectCurrentIndex$2 as selectCurrentIndex, selectIndex$3 as selectIndex, selectItem$1 as selectItem, setValue$1 as setValue };
|
|
395
403
|
}
|
|
396
404
|
declare namespace References {
|
|
397
405
|
export { clear$1 as clear, collapseAll, refresh$1 as refresh };
|
|
@@ -400,7 +408,7 @@ declare namespace RunAndDebug {
|
|
|
400
408
|
export { acceptWatchExpressionEdit, addWatchExpression, handleClickSectionWatch, handleRename, handleSpace, handleWatchValueChange, selectIndex$4 as selectIndex, setPauseOnExceptions };
|
|
401
409
|
}
|
|
402
410
|
declare namespace Search {
|
|
403
|
-
export { clearSearchResults, collapseDetails, dismissItem, focusFirst$6 as focusFirst, focusIndex$4 as focusIndex, focusNext$8 as focusNext, focusNextPage, focusPrevious$
|
|
411
|
+
export { clearSearchResults, collapseDetails, dismissItem, focusFirst$6 as focusFirst, focusIndex$4 as focusIndex, focusNext$8 as focusNext, focusNextPage, focusPrevious$7 as focusPrevious, focusPreviousPage, handleWheel$2 as handleWheel, openDetails, replaceAll$1 as replaceAll, selectIndex$5 as selectIndex, setExcludeValue, setIncludeValue, setReplaceValue$1 as setReplaceValue, setValue$2 as setValue, toggleMatchCase$1 as toggleMatchCase, toggleMatchWholeWord$1 as toggleMatchWholeWord, togglePreserveCase, toggleReplace$1 as toggleReplace, toggleSearchDetails, toggleUseRegularExpression$1 as toggleUseRegularExpression };
|
|
404
412
|
}
|
|
405
413
|
declare namespace Settings {
|
|
406
414
|
export { update };
|
|
@@ -418,7 +426,7 @@ declare namespace StatusBar {
|
|
|
418
426
|
export { update$1 as update };
|
|
419
427
|
}
|
|
420
428
|
declare namespace TitleBarMenuBar {
|
|
421
|
-
export { closeMenu, focus$2 as focus, focusFirst$7 as focusFirst, focusIndex$5 as focusIndex, focusLast$6 as focusLast, focusNext$9 as focusNext, focusPrevious$
|
|
429
|
+
export { closeMenu, focus$2 as focus, focusFirst$7 as focusFirst, focusIndex$5 as focusIndex, focusLast$6 as focusLast, focusNext$9 as focusNext, focusPrevious$8 as focusPrevious, handleKeyArrowDown, handleKeyArrowLeft, handleKeyArrowRight, handleKeyArrowUp, handleKeyEnd, handleKeyEscape, handleKeyHome, handleKeySpace, toggleIndex, toggleMenu };
|
|
422
430
|
}
|
|
423
431
|
declare namespace Url {
|
|
424
432
|
export { resolve, setUrl };
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1626,14 +1626,14 @@ const handleClickCopy = async () => {
|
|
|
1626
1626
|
const focusNext$9 = async () => {
|
|
1627
1627
|
return invoke$1('About.focusNext');
|
|
1628
1628
|
};
|
|
1629
|
-
const focusPrevious$
|
|
1629
|
+
const focusPrevious$8 = async () => {
|
|
1630
1630
|
return invoke$1('About.focusPrevious');
|
|
1631
1631
|
};
|
|
1632
1632
|
|
|
1633
1633
|
const TestFrameWorkComponentAbout = {
|
|
1634
1634
|
__proto__: null,
|
|
1635
1635
|
focusNext: focusNext$9,
|
|
1636
|
-
focusPrevious: focusPrevious$
|
|
1636
|
+
focusPrevious: focusPrevious$8,
|
|
1637
1637
|
handleClickClose,
|
|
1638
1638
|
handleClickCopy,
|
|
1639
1639
|
handleClickOk,
|
|
@@ -1652,7 +1652,7 @@ const focusLast$6 = async () => {
|
|
|
1652
1652
|
const focusNext$8 = async () => {
|
|
1653
1653
|
await invoke$1('ActivityBar.focusNext');
|
|
1654
1654
|
};
|
|
1655
|
-
const focusPrevious$
|
|
1655
|
+
const focusPrevious$7 = async () => {
|
|
1656
1656
|
await invoke$1('ActivityBar.focusPrevious');
|
|
1657
1657
|
};
|
|
1658
1658
|
const handleClick$2 = async index => {
|
|
@@ -1671,7 +1671,7 @@ const TestFrameworkComponentActivityBar = {
|
|
|
1671
1671
|
focusFirst: focusFirst$7,
|
|
1672
1672
|
focusLast: focusLast$6,
|
|
1673
1673
|
focusNext: focusNext$8,
|
|
1674
|
-
focusPrevious: focusPrevious$
|
|
1674
|
+
focusPrevious: focusPrevious$7,
|
|
1675
1675
|
handleClick: handleClick$2,
|
|
1676
1676
|
handleContextMenu: handleContextMenu$1,
|
|
1677
1677
|
selectCurrent
|
|
@@ -2538,14 +2538,55 @@ const TestFrameWorkComponentFileSystem = {
|
|
|
2538
2538
|
const focusNext$6 = async () => {
|
|
2539
2539
|
await invoke$1('FindWidget.focusNext');
|
|
2540
2540
|
};
|
|
2541
|
+
const focusPrevious$6 = async () => {
|
|
2542
|
+
// @ts-ignore
|
|
2543
|
+
await invoke$1('FindWidget.focusPrevious');
|
|
2544
|
+
};
|
|
2545
|
+
const setReplaceValue$1 = async value => {
|
|
2546
|
+
// @ts-ignore
|
|
2547
|
+
await invoke$1('FindWidget.handleReplaceInput', value, Script);
|
|
2548
|
+
};
|
|
2541
2549
|
const setValue$2 = async value => {
|
|
2542
|
-
|
|
2550
|
+
// @ts-ignore
|
|
2551
|
+
await invoke$1('FindWidget.handleInput', value, Script);
|
|
2552
|
+
};
|
|
2553
|
+
const toggleReplace$1 = async () => {
|
|
2554
|
+
// @ts-ignore
|
|
2555
|
+
await invoke$1('FindWidget.toggleReplace');
|
|
2556
|
+
};
|
|
2557
|
+
const toggleMatchCase$1 = async () => {
|
|
2558
|
+
// @ts-ignore
|
|
2559
|
+
await invoke$1('FindWidget.toggleMatchCase');
|
|
2560
|
+
};
|
|
2561
|
+
const toggleMatchWholeWord$1 = async () => {
|
|
2562
|
+
// @ts-ignore
|
|
2563
|
+
await invoke$1('FindWidget.toggleMatchWholeWord');
|
|
2564
|
+
};
|
|
2565
|
+
const toggleUseRegularExpression$1 = async () => {
|
|
2566
|
+
// @ts-ignore
|
|
2567
|
+
await invoke$1('FindWidget.toggleUseRegularExpression');
|
|
2568
|
+
};
|
|
2569
|
+
const replace = async () => {
|
|
2570
|
+
// @ts-ignore
|
|
2571
|
+
await invoke$1('FindWidget.replace');
|
|
2572
|
+
};
|
|
2573
|
+
const replaceAll$1 = async () => {
|
|
2574
|
+
// @ts-ignore
|
|
2575
|
+
await invoke$1('FindWidget.replaceAll');
|
|
2543
2576
|
};
|
|
2544
2577
|
|
|
2545
2578
|
const TestFrameWorkComponentFindWidget = {
|
|
2546
2579
|
__proto__: null,
|
|
2547
2580
|
focusNext: focusNext$6,
|
|
2548
|
-
|
|
2581
|
+
focusPrevious: focusPrevious$6,
|
|
2582
|
+
replace,
|
|
2583
|
+
replaceAll: replaceAll$1,
|
|
2584
|
+
setReplaceValue: setReplaceValue$1,
|
|
2585
|
+
setValue: setValue$2,
|
|
2586
|
+
toggleMatchCase: toggleMatchCase$1,
|
|
2587
|
+
toggleMatchWholeWord: toggleMatchWholeWord$1,
|
|
2588
|
+
toggleReplace: toggleReplace$1,
|
|
2589
|
+
toggleUseRegularExpression: toggleUseRegularExpression$1
|
|
2549
2590
|
};
|
|
2550
2591
|
|
|
2551
2592
|
const setIconTheme = async id => {
|