@lvce-editor/test-worker 4.41.0 → 4.43.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 +29 -20
- package/dist/testWorkerMain.js +42 -6
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -91,6 +91,8 @@ declare const shouldHaveText: (expectedText: string) => Promise<void>;
|
|
|
91
91
|
declare const shouldHaveSelections: (expectedSelections: Uint32Array) => Promise<void>;
|
|
92
92
|
declare const selectIndex: (index: number) => Promise<void>;
|
|
93
93
|
declare const selectCurrentIndex: () => Promise<void>;
|
|
94
|
+
declare const selectIndex$1: (index: number) => Promise<void>;
|
|
95
|
+
declare const selectCurrentIndex$1: () => Promise<void>;
|
|
94
96
|
declare const openContextMenu$1: (index: number) => Promise<void>;
|
|
95
97
|
declare const handleDragLeave: () => Promise<void>;
|
|
96
98
|
declare const handleBlur: () => Promise<void>;
|
|
@@ -143,6 +145,7 @@ declare const openJsonValidation: () => Promise<void>;
|
|
|
143
145
|
declare const openSettings: () => Promise<void>;
|
|
144
146
|
declare const handleScroll: (scrollTop: number) => Promise<void>;
|
|
145
147
|
declare const writeFile: (uri: string, content: string) => Promise<void>;
|
|
148
|
+
declare const writeJson: (uri: string, data: any) => Promise<void>;
|
|
146
149
|
declare const readFile: (uri: string) => Promise<string>;
|
|
147
150
|
declare const mkdir: (uri: string) => Promise<void>;
|
|
148
151
|
declare const remove: (uri: string) => Promise<void>;
|
|
@@ -155,7 +158,7 @@ declare const createExecutableFrom: (uri: string) => Promise<string>;
|
|
|
155
158
|
declare const focusNext$3: () => Promise<void>;
|
|
156
159
|
declare const setValue: (value: string) => Promise<void>;
|
|
157
160
|
declare const setIconTheme: (id: string) => Promise<void>;
|
|
158
|
-
declare const selectIndex$
|
|
161
|
+
declare const selectIndex$2: (index: number) => Promise<void>;
|
|
159
162
|
declare const focusNext$4: () => Promise<void>;
|
|
160
163
|
declare const focusPrevious$2: () => Promise<void>;
|
|
161
164
|
declare const focusFirst$2: () => Promise<void>;
|
|
@@ -168,6 +171,7 @@ declare const handleDoubleClick: (x: number, y: number) => Promise<void>;
|
|
|
168
171
|
declare const focusNext$5: () => Promise<void>;
|
|
169
172
|
declare const focusPrevious$3: () => Promise<void>;
|
|
170
173
|
declare const focusFirst$3: () => Promise<void>;
|
|
174
|
+
declare const focusIndex$1: (index: number) => Promise<void>;
|
|
171
175
|
declare const focusLast$3: () => Promise<void>;
|
|
172
176
|
declare const toggleRecordingKeys: () => Promise<void>;
|
|
173
177
|
declare const startRecordingKeys: () => Promise<void>;
|
|
@@ -200,12 +204,13 @@ declare const handleFilterInput: (text: string) => Promise<void>;
|
|
|
200
204
|
declare const selectChannel: (channelId: string) => Promise<void>;
|
|
201
205
|
declare const clear: () => Promise<void>;
|
|
202
206
|
declare const open$2: (id: string) => Promise<void>;
|
|
207
|
+
declare const openProblems: () => Promise<void>;
|
|
203
208
|
declare const getNodePath: () => Promise<string>;
|
|
204
209
|
declare const isFirefox: () => boolean;
|
|
205
210
|
declare const show$2: () => Promise<void>;
|
|
206
211
|
declare const handleFilterInput$1: (text: string) => Promise<void>;
|
|
207
212
|
declare const copyMessage: () => Promise<void>;
|
|
208
|
-
declare const focusIndex$
|
|
213
|
+
declare const focusIndex$2: (index: number) => Promise<void>;
|
|
209
214
|
declare const handleArrowLeft$1: () => Promise<void>;
|
|
210
215
|
declare const handleArrowRight: () => Promise<void>;
|
|
211
216
|
declare const handleClickAt$1: (x: number, y: number) => Promise<void>;
|
|
@@ -219,17 +224,17 @@ declare const setValue$1: (value: string) => Promise<void>;
|
|
|
219
224
|
declare const focusNext$7: () => Promise<void>;
|
|
220
225
|
declare const focusFirst$5: () => Promise<void>;
|
|
221
226
|
declare const focusLast$5: () => Promise<void>;
|
|
222
|
-
declare const focusIndex$
|
|
227
|
+
declare const focusIndex$3: (index: number) => Promise<void>;
|
|
223
228
|
declare const focusPrevious$5: () => Promise<void>;
|
|
224
229
|
declare const selectItem$1: (label: string) => Promise<void>;
|
|
225
|
-
declare const selectIndex$
|
|
226
|
-
declare const selectCurrentIndex$
|
|
230
|
+
declare const selectIndex$3: (index: number) => Promise<void>;
|
|
231
|
+
declare const selectCurrentIndex$2: () => Promise<void>;
|
|
227
232
|
declare const executeCommand: (label: string) => Promise<void>;
|
|
228
233
|
declare const handleClickSectionWatch: () => Promise<void>;
|
|
229
234
|
declare const addWatchExpression: (expression: string) => Promise<void>;
|
|
230
235
|
declare const handleWatchValueChange: () => Promise<void>;
|
|
231
236
|
declare const acceptWatchExpressionEdit: () => Promise<void>;
|
|
232
|
-
declare const selectIndex$
|
|
237
|
+
declare const selectIndex$4: (index: number) => Promise<void>;
|
|
233
238
|
declare const setPauseOnExceptions: (value: number) => Promise<void>;
|
|
234
239
|
declare const handleRename: () => Promise<void>;
|
|
235
240
|
declare const handleSpace: () => Promise<void>;
|
|
@@ -243,8 +248,8 @@ declare const openDetails: () => Promise<void>;
|
|
|
243
248
|
declare const collapseDetails: () => Promise<void>;
|
|
244
249
|
declare const dismissItem: () => Promise<void>;
|
|
245
250
|
declare const focusFirst$6: () => Promise<void>;
|
|
246
|
-
declare const focusIndex$
|
|
247
|
-
declare const selectIndex$
|
|
251
|
+
declare const focusIndex$4: (index: number) => Promise<void>;
|
|
252
|
+
declare const selectIndex$5: (index: number) => Promise<void>;
|
|
248
253
|
declare const focusNext$8: () => Promise<void>;
|
|
249
254
|
declare const handleWheel$1: (deltaMode: number, deltaY: number) => Promise<void>;
|
|
250
255
|
declare const focusNextPage: () => Promise<void>;
|
|
@@ -269,7 +274,7 @@ declare const selectExtensions: () => Promise<void>;
|
|
|
269
274
|
declare const handleScroll$1: (scrollTop: number) => Promise<void>;
|
|
270
275
|
declare const open$4: (id: string) => Promise<void>;
|
|
271
276
|
declare const hide: () => Promise<void>;
|
|
272
|
-
declare const selectIndex$
|
|
277
|
+
declare const selectIndex$6: (index: number) => Promise<void>;
|
|
273
278
|
declare const acceptInput: () => Promise<void>;
|
|
274
279
|
declare const handleInput$3: (text: string) => Promise<void>;
|
|
275
280
|
declare const handleClickSourceControlButtons: (index: number, name: string) => Promise<void>;
|
|
@@ -277,7 +282,7 @@ declare const update$1: () => Promise<void>;
|
|
|
277
282
|
declare const closeMenu: () => Promise<void>;
|
|
278
283
|
declare const focus$2: () => Promise<void>;
|
|
279
284
|
declare const focusFirst$7: () => Promise<void>;
|
|
280
|
-
declare const focusIndex$
|
|
285
|
+
declare const focusIndex$5: (index: number) => Promise<void>;
|
|
281
286
|
declare const focusLast$6: () => Promise<void>;
|
|
282
287
|
declare const focusNext$9: () => Promise<void>;
|
|
283
288
|
declare const focusPrevious$7: () => Promise<void>;
|
|
@@ -330,6 +335,9 @@ declare namespace Editor {
|
|
|
330
335
|
declare namespace EditorCompletion {
|
|
331
336
|
export { selectCurrentIndex, selectIndex };
|
|
332
337
|
}
|
|
338
|
+
declare namespace EditorSourceAction {
|
|
339
|
+
export { selectCurrentIndex$1 as selectCurrentIndex, selectIndex$1 as selectIndex };
|
|
340
|
+
}
|
|
333
341
|
declare namespace Explorer {
|
|
334
342
|
export { acceptEdit, cancelEdit, clickCurrent, expandAll, expandRecursively, focus$1 as focus, focusFirst$1 as focusFirst, focusIndex, focusLast$1 as focusLast, focusNext$2 as focusNext, handleArrowLeft, handleBlur, handleClick$1 as handleClick, handleClickAt, handleCopy, handleCut, handleDragLeave, handleDragOver, handleDragOverIndex, handleDrop, handleInputBlur, handlePaste, newFile, newFolder, openContextMenu$1 as openContextMenu, refresh, removeDirent, rename$1 as rename, renameDirent, selectAll$1 as selectAll, selectDown, selectIndices, selectUp, toggleIndividualSelection, updateEditingValue };
|
|
335
343
|
}
|
|
@@ -340,7 +348,7 @@ declare namespace ExtensionDetail {
|
|
|
340
348
|
export { handleScroll, open, openCommands, openFeature, openJsonValidation, openRuntimeStatus, openSettings, openThemes, openWebViews, selectChangelog, selectDetails, selectFeature, selectFeatures, selectTab };
|
|
341
349
|
}
|
|
342
350
|
declare namespace FileSystem {
|
|
343
|
-
export { chmod, createExecutable, createExecutableFrom, getTmpDir, mkdir, readFile, remove, writeFile };
|
|
351
|
+
export { chmod, createExecutable, createExecutableFrom, getTmpDir, mkdir, readFile, remove, writeFile, writeJson };
|
|
344
352
|
}
|
|
345
353
|
declare namespace FindWidget {
|
|
346
354
|
export { focusNext$3 as focusNext, setValue };
|
|
@@ -349,10 +357,10 @@ declare namespace IconTheme {
|
|
|
349
357
|
export { setIconTheme };
|
|
350
358
|
}
|
|
351
359
|
declare namespace IframeInspector {
|
|
352
|
-
export { focusFirst$2 as focusFirst, focusLast$2 as focusLast, focusNext$4 as focusNext, focusPrevious$2 as focusPrevious, selectIndex$
|
|
360
|
+
export { focusFirst$2 as focusFirst, focusLast$2 as focusLast, focusNext$4 as focusNext, focusPrevious$2 as focusPrevious, selectIndex$2 as selectIndex };
|
|
353
361
|
}
|
|
354
362
|
declare namespace KeyBindingsEditor {
|
|
355
|
-
export { addKeyBinding, changeWhenExpression, clearInput, copyCommandId, copyCommandTitle, focusFirst$3 as focusFirst, focusLast$3 as focusLast, focusNext$5 as focusNext, focusPrevious$3 as focusPrevious, handleClick$2 as handleClick, handleContextMenu$1 as handleContextMenu, handleDoubleClick, handleInput, handleWheel, open$1 as open, removeKeyBinding, resetKeyBinding, showSameKeyBindings, sortByPrecedence, startRecordingKeys, stopRecordingKeys, toggleRecordingKeys };
|
|
363
|
+
export { addKeyBinding, changeWhenExpression, clearInput, copyCommandId, copyCommandTitle, focusFirst$3 as focusFirst, focusIndex$1 as focusIndex, focusLast$3 as focusLast, focusNext$5 as focusNext, focusPrevious$3 as focusPrevious, handleClick$2 as handleClick, handleContextMenu$1 as handleContextMenu, handleDoubleClick, handleInput, handleWheel, open$1 as open, removeKeyBinding, resetKeyBinding, showSameKeyBindings, sortByPrecedence, startRecordingKeys, stopRecordingKeys, toggleRecordingKeys };
|
|
356
364
|
}
|
|
357
365
|
declare namespace KeyBoard {
|
|
358
366
|
export { press };
|
|
@@ -364,22 +372,22 @@ declare namespace Output {
|
|
|
364
372
|
export { clear, handleFilterInput, selectChannel, show$1 as show };
|
|
365
373
|
}
|
|
366
374
|
declare namespace Panel {
|
|
367
|
-
export { open$2 as open };
|
|
375
|
+
export { open$2 as open, openProblems };
|
|
368
376
|
}
|
|
369
377
|
declare namespace Platform {
|
|
370
378
|
export { getNodePath, isFirefox };
|
|
371
379
|
}
|
|
372
380
|
declare namespace Problems {
|
|
373
|
-
export { copyMessage, focusIndex$
|
|
381
|
+
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 };
|
|
374
382
|
}
|
|
375
383
|
declare namespace QuickPick {
|
|
376
|
-
export { executeCommand, focusFirst$5 as focusFirst, focusIndex$
|
|
384
|
+
export { executeCommand, focusFirst$5 as focusFirst, focusIndex$3 as focusIndex, focusLast$5 as focusLast, focusNext$7 as focusNext, focusPrevious$5 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 };
|
|
377
385
|
}
|
|
378
386
|
declare namespace RunAndDebug {
|
|
379
|
-
export { acceptWatchExpressionEdit, addWatchExpression, handleClickSectionWatch, handleRename, handleSpace, handleWatchValueChange, selectIndex$
|
|
387
|
+
export { acceptWatchExpressionEdit, addWatchExpression, handleClickSectionWatch, handleRename, handleSpace, handleWatchValueChange, selectIndex$4 as selectIndex, setPauseOnExceptions };
|
|
380
388
|
}
|
|
381
389
|
declare namespace Search {
|
|
382
|
-
export { clearSearchResults, collapseDetails, dismissItem, focusFirst$6 as focusFirst, focusIndex$
|
|
390
|
+
export { clearSearchResults, collapseDetails, dismissItem, focusFirst$6 as focusFirst, focusIndex$4 as focusIndex, focusNext$8 as focusNext, focusNextPage, focusPrevious$6 as focusPrevious, focusPreviousPage, handleWheel$1 as handleWheel, openDetails, replaceAll, selectIndex$5 as selectIndex, setExcludeValue, setIncludeValue, setReplaceValue, setValue$2 as setValue, toggleMatchCase, toggleMatchWholeWord, togglePreserveCase, toggleReplace, toggleSearchDetails, toggleUseRegularExpression };
|
|
383
391
|
}
|
|
384
392
|
declare namespace Settings {
|
|
385
393
|
export { update };
|
|
@@ -391,13 +399,13 @@ declare namespace SideBar {
|
|
|
391
399
|
export { hide, open$4 as open };
|
|
392
400
|
}
|
|
393
401
|
declare namespace SourceControl {
|
|
394
|
-
export { acceptInput, handleClickSourceControlButtons, handleInput$3 as handleInput, selectIndex$
|
|
402
|
+
export { acceptInput, handleClickSourceControlButtons, handleInput$3 as handleInput, selectIndex$6 as selectIndex };
|
|
395
403
|
}
|
|
396
404
|
declare namespace StatusBar {
|
|
397
405
|
export { update$1 as update };
|
|
398
406
|
}
|
|
399
407
|
declare namespace TitleBarMenuBar {
|
|
400
|
-
export { closeMenu, focus$2 as focus, focusFirst$7 as focusFirst, focusIndex$
|
|
408
|
+
export { closeMenu, focus$2 as focus, focusFirst$7 as focusFirst, focusIndex$5 as focusIndex, focusLast$6 as focusLast, focusNext$9 as focusNext, focusPrevious$7 as focusPrevious, handleKeyArrowDown, handleKeyArrowLeft, handleKeyArrowRight, handleKeyArrowUp, handleKeyEnd, handleKeyEscape, handleKeyHome, handleKeySpace, toggleIndex, toggleMenu };
|
|
401
409
|
}
|
|
402
410
|
declare namespace Url {
|
|
403
411
|
export { resolve, setUrl };
|
|
@@ -417,6 +425,7 @@ export interface TestApi {
|
|
|
417
425
|
readonly Dialog: typeof Dialog,
|
|
418
426
|
readonly Editor: typeof Editor,
|
|
419
427
|
readonly EditorCompletion: typeof EditorCompletion,
|
|
428
|
+
readonly EditorSourceAction: typeof EditorSourceAction,
|
|
420
429
|
readonly Explorer: typeof Explorer,
|
|
421
430
|
readonly Extension: typeof Extension,
|
|
422
431
|
readonly ExtensionDetail: typeof ExtensionDetail,
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -2151,14 +2151,29 @@ const TestFrameWorkComponentEditor = {
|
|
|
2151
2151
|
type
|
|
2152
2152
|
};
|
|
2153
2153
|
|
|
2154
|
-
const selectIndex$
|
|
2154
|
+
const selectIndex$6 = async index => {
|
|
2155
2155
|
await invoke$1('EditorCompletion.selectIndex', index);
|
|
2156
2156
|
};
|
|
2157
|
-
const selectCurrentIndex$
|
|
2157
|
+
const selectCurrentIndex$2 = async () => {
|
|
2158
2158
|
await invoke$1('EditorCompletion.selectCurrentIndex');
|
|
2159
2159
|
};
|
|
2160
2160
|
|
|
2161
2161
|
const TestFrameWorkComponentEditorCompletion = {
|
|
2162
|
+
__proto__: null,
|
|
2163
|
+
selectCurrentIndex: selectCurrentIndex$2,
|
|
2164
|
+
selectIndex: selectIndex$6
|
|
2165
|
+
};
|
|
2166
|
+
|
|
2167
|
+
const selectIndex$5 = async index => {
|
|
2168
|
+
// @ts-ignore
|
|
2169
|
+
await invoke$1('EditorSourceAction.selectIndex', index);
|
|
2170
|
+
};
|
|
2171
|
+
const selectCurrentIndex$1 = async () => {
|
|
2172
|
+
// @ts-ignore
|
|
2173
|
+
await invoke$1('EditorSourceAction.selectCurrentIndex');
|
|
2174
|
+
};
|
|
2175
|
+
|
|
2176
|
+
const TestFrameWorkComponentEditorSourceAction = {
|
|
2162
2177
|
__proto__: null,
|
|
2163
2178
|
selectCurrentIndex: selectCurrentIndex$1,
|
|
2164
2179
|
selectIndex: selectIndex$5
|
|
@@ -2198,7 +2213,7 @@ const selectDown = async () => {
|
|
|
2198
2213
|
const refresh = async () => {
|
|
2199
2214
|
await invoke$1('Explorer.refresh');
|
|
2200
2215
|
};
|
|
2201
|
-
const focusIndex$
|
|
2216
|
+
const focusIndex$5 = async index => {
|
|
2202
2217
|
await invoke$1('Explorer.focusIndex', index);
|
|
2203
2218
|
};
|
|
2204
2219
|
const clickCurrent = async () => {
|
|
@@ -2289,7 +2304,7 @@ const TestFrameWorkComponentExplorer = {
|
|
|
2289
2304
|
expandRecursively,
|
|
2290
2305
|
focus: focus$1,
|
|
2291
2306
|
focusFirst: focusFirst$6,
|
|
2292
|
-
focusIndex: focusIndex$
|
|
2307
|
+
focusIndex: focusIndex$5,
|
|
2293
2308
|
focusLast: focusLast$5,
|
|
2294
2309
|
focusNext: focusNext$7,
|
|
2295
2310
|
handleArrowLeft: handleArrowLeft$1,
|
|
@@ -2415,9 +2430,17 @@ const {
|
|
|
2415
2430
|
Slash
|
|
2416
2431
|
} = Character;
|
|
2417
2432
|
|
|
2433
|
+
const stringifyJson = data => {
|
|
2434
|
+
return JSON.stringify(data, null, 2) + '\n';
|
|
2435
|
+
};
|
|
2436
|
+
|
|
2418
2437
|
const writeFile = async (uri, content) => {
|
|
2419
2438
|
await invoke$1('FileSystem.writeFile', uri, content);
|
|
2420
2439
|
};
|
|
2440
|
+
const writeJson = async (uri, data) => {
|
|
2441
|
+
const content = stringifyJson(data);
|
|
2442
|
+
await writeFile(uri, content);
|
|
2443
|
+
};
|
|
2421
2444
|
const readFile = async uri => {
|
|
2422
2445
|
return invoke$1('FileSystem.readFile', uri);
|
|
2423
2446
|
};
|
|
@@ -2472,7 +2495,8 @@ const TestFrameWorkComponentFileSystem = {
|
|
|
2472
2495
|
mkdir,
|
|
2473
2496
|
readFile,
|
|
2474
2497
|
remove,
|
|
2475
|
-
writeFile
|
|
2498
|
+
writeFile,
|
|
2499
|
+
writeJson
|
|
2476
2500
|
};
|
|
2477
2501
|
|
|
2478
2502
|
const focusNext$6 = async () => {
|
|
@@ -2546,6 +2570,10 @@ const focusPrevious$4 = () => {
|
|
|
2546
2570
|
const focusFirst$4 = () => {
|
|
2547
2571
|
return invoke$1('KeyBindings.focusFirst');
|
|
2548
2572
|
};
|
|
2573
|
+
const focusIndex$4 = index => {
|
|
2574
|
+
// @ts-ignore
|
|
2575
|
+
return invoke$1('KeyBindings.focusIndex', index);
|
|
2576
|
+
};
|
|
2549
2577
|
const focusLast$3 = () => {
|
|
2550
2578
|
return invoke$1('KeyBindings.focusLast');
|
|
2551
2579
|
};
|
|
@@ -2597,6 +2625,7 @@ const TestFrameWorkComponentKeyBindingsEditor = {
|
|
|
2597
2625
|
copyCommandId,
|
|
2598
2626
|
copyCommandTitle,
|
|
2599
2627
|
focusFirst: focusFirst$4,
|
|
2628
|
+
focusIndex: focusIndex$4,
|
|
2600
2629
|
focusLast: focusLast$3,
|
|
2601
2630
|
focusNext: focusNext$4,
|
|
2602
2631
|
focusPrevious: focusPrevious$4,
|
|
@@ -2751,10 +2780,16 @@ const TestFrameWorkComponentOutput = {
|
|
|
2751
2780
|
const open$2 = async id => {
|
|
2752
2781
|
await invoke$1('Layout.showPanel', id);
|
|
2753
2782
|
};
|
|
2783
|
+
const openProblems = async () => {
|
|
2784
|
+
await open$2('Problems');
|
|
2785
|
+
// @ts-ignore
|
|
2786
|
+
await invoke$1('Panel.selectIndex', 0);
|
|
2787
|
+
};
|
|
2754
2788
|
|
|
2755
2789
|
const TestFrameWorkComponentPanel = {
|
|
2756
2790
|
__proto__: null,
|
|
2757
|
-
open: open$2
|
|
2791
|
+
open: open$2,
|
|
2792
|
+
openProblems
|
|
2758
2793
|
};
|
|
2759
2794
|
|
|
2760
2795
|
const getIsFirefox = () => {
|
|
@@ -3362,6 +3397,7 @@ const TestFrameWorkComponent = {
|
|
|
3362
3397
|
Dialog: TestFrameWorkComponentDialog,
|
|
3363
3398
|
Editor: TestFrameWorkComponentEditor,
|
|
3364
3399
|
EditorCompletion: TestFrameWorkComponentEditorCompletion,
|
|
3400
|
+
EditorSourceAction: TestFrameWorkComponentEditorSourceAction,
|
|
3365
3401
|
Explorer: TestFrameWorkComponentExplorer,
|
|
3366
3402
|
Extension: TestFrameWorkComponentExtension,
|
|
3367
3403
|
ExtensionDetail: TestFrameWorkComponentExtensionDetail,
|