@lvce-editor/test-worker 4.41.0 → 4.42.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 +21 -13
- package/dist/testWorkerMain.js +35 -4
- 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>;
|
|
@@ -200,6 +203,7 @@ declare const handleFilterInput: (text: string) => Promise<void>;
|
|
|
200
203
|
declare const selectChannel: (channelId: string) => Promise<void>;
|
|
201
204
|
declare const clear: () => Promise<void>;
|
|
202
205
|
declare const open$2: (id: string) => Promise<void>;
|
|
206
|
+
declare const openProblems: () => Promise<void>;
|
|
203
207
|
declare const getNodePath: () => Promise<string>;
|
|
204
208
|
declare const isFirefox: () => boolean;
|
|
205
209
|
declare const show$2: () => Promise<void>;
|
|
@@ -222,14 +226,14 @@ declare const focusLast$5: () => Promise<void>;
|
|
|
222
226
|
declare const focusIndex$2: (index: number) => Promise<void>;
|
|
223
227
|
declare const focusPrevious$5: () => Promise<void>;
|
|
224
228
|
declare const selectItem$1: (label: string) => Promise<void>;
|
|
225
|
-
declare const selectIndex$
|
|
226
|
-
declare const selectCurrentIndex$
|
|
229
|
+
declare const selectIndex$3: (index: number) => Promise<void>;
|
|
230
|
+
declare const selectCurrentIndex$2: () => Promise<void>;
|
|
227
231
|
declare const executeCommand: (label: string) => Promise<void>;
|
|
228
232
|
declare const handleClickSectionWatch: () => Promise<void>;
|
|
229
233
|
declare const addWatchExpression: (expression: string) => Promise<void>;
|
|
230
234
|
declare const handleWatchValueChange: () => Promise<void>;
|
|
231
235
|
declare const acceptWatchExpressionEdit: () => Promise<void>;
|
|
232
|
-
declare const selectIndex$
|
|
236
|
+
declare const selectIndex$4: (index: number) => Promise<void>;
|
|
233
237
|
declare const setPauseOnExceptions: (value: number) => Promise<void>;
|
|
234
238
|
declare const handleRename: () => Promise<void>;
|
|
235
239
|
declare const handleSpace: () => Promise<void>;
|
|
@@ -244,7 +248,7 @@ declare const collapseDetails: () => Promise<void>;
|
|
|
244
248
|
declare const dismissItem: () => Promise<void>;
|
|
245
249
|
declare const focusFirst$6: () => Promise<void>;
|
|
246
250
|
declare const focusIndex$3: (index: number) => Promise<void>;
|
|
247
|
-
declare const selectIndex$
|
|
251
|
+
declare const selectIndex$5: (index: number) => Promise<void>;
|
|
248
252
|
declare const focusNext$8: () => Promise<void>;
|
|
249
253
|
declare const handleWheel$1: (deltaMode: number, deltaY: number) => Promise<void>;
|
|
250
254
|
declare const focusNextPage: () => Promise<void>;
|
|
@@ -269,7 +273,7 @@ declare const selectExtensions: () => Promise<void>;
|
|
|
269
273
|
declare const handleScroll$1: (scrollTop: number) => Promise<void>;
|
|
270
274
|
declare const open$4: (id: string) => Promise<void>;
|
|
271
275
|
declare const hide: () => Promise<void>;
|
|
272
|
-
declare const selectIndex$
|
|
276
|
+
declare const selectIndex$6: (index: number) => Promise<void>;
|
|
273
277
|
declare const acceptInput: () => Promise<void>;
|
|
274
278
|
declare const handleInput$3: (text: string) => Promise<void>;
|
|
275
279
|
declare const handleClickSourceControlButtons: (index: number, name: string) => Promise<void>;
|
|
@@ -330,6 +334,9 @@ declare namespace Editor {
|
|
|
330
334
|
declare namespace EditorCompletion {
|
|
331
335
|
export { selectCurrentIndex, selectIndex };
|
|
332
336
|
}
|
|
337
|
+
declare namespace EditorSourceAction {
|
|
338
|
+
export { selectCurrentIndex$1 as selectCurrentIndex, selectIndex$1 as selectIndex };
|
|
339
|
+
}
|
|
333
340
|
declare namespace Explorer {
|
|
334
341
|
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
342
|
}
|
|
@@ -340,7 +347,7 @@ declare namespace ExtensionDetail {
|
|
|
340
347
|
export { handleScroll, open, openCommands, openFeature, openJsonValidation, openRuntimeStatus, openSettings, openThemes, openWebViews, selectChangelog, selectDetails, selectFeature, selectFeatures, selectTab };
|
|
341
348
|
}
|
|
342
349
|
declare namespace FileSystem {
|
|
343
|
-
export { chmod, createExecutable, createExecutableFrom, getTmpDir, mkdir, readFile, remove, writeFile };
|
|
350
|
+
export { chmod, createExecutable, createExecutableFrom, getTmpDir, mkdir, readFile, remove, writeFile, writeJson };
|
|
344
351
|
}
|
|
345
352
|
declare namespace FindWidget {
|
|
346
353
|
export { focusNext$3 as focusNext, setValue };
|
|
@@ -349,7 +356,7 @@ declare namespace IconTheme {
|
|
|
349
356
|
export { setIconTheme };
|
|
350
357
|
}
|
|
351
358
|
declare namespace IframeInspector {
|
|
352
|
-
export { focusFirst$2 as focusFirst, focusLast$2 as focusLast, focusNext$4 as focusNext, focusPrevious$2 as focusPrevious, selectIndex$
|
|
359
|
+
export { focusFirst$2 as focusFirst, focusLast$2 as focusLast, focusNext$4 as focusNext, focusPrevious$2 as focusPrevious, selectIndex$2 as selectIndex };
|
|
353
360
|
}
|
|
354
361
|
declare namespace KeyBindingsEditor {
|
|
355
362
|
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 };
|
|
@@ -364,7 +371,7 @@ declare namespace Output {
|
|
|
364
371
|
export { clear, handleFilterInput, selectChannel, show$1 as show };
|
|
365
372
|
}
|
|
366
373
|
declare namespace Panel {
|
|
367
|
-
export { open$2 as open };
|
|
374
|
+
export { open$2 as open, openProblems };
|
|
368
375
|
}
|
|
369
376
|
declare namespace Platform {
|
|
370
377
|
export { getNodePath, isFirefox };
|
|
@@ -373,13 +380,13 @@ declare namespace Problems {
|
|
|
373
380
|
export { copyMessage, focusIndex$1 as focusIndex, handleArrowLeft$1 as handleArrowLeft, handleArrowRight, handleClickAt$1 as handleClickAt, handleFilterInput$1 as handleFilterInput, handleIconThemeChange, show$2 as show, viewAsList, viewAsTable };
|
|
374
381
|
}
|
|
375
382
|
declare namespace QuickPick {
|
|
376
|
-
export { executeCommand, focusFirst$5 as focusFirst, focusIndex$2 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$
|
|
383
|
+
export { executeCommand, focusFirst$5 as focusFirst, focusIndex$2 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
384
|
}
|
|
378
385
|
declare namespace RunAndDebug {
|
|
379
|
-
export { acceptWatchExpressionEdit, addWatchExpression, handleClickSectionWatch, handleRename, handleSpace, handleWatchValueChange, selectIndex$
|
|
386
|
+
export { acceptWatchExpressionEdit, addWatchExpression, handleClickSectionWatch, handleRename, handleSpace, handleWatchValueChange, selectIndex$4 as selectIndex, setPauseOnExceptions };
|
|
380
387
|
}
|
|
381
388
|
declare namespace Search {
|
|
382
|
-
export { clearSearchResults, collapseDetails, dismissItem, focusFirst$6 as focusFirst, focusIndex$3 as focusIndex, focusNext$8 as focusNext, focusNextPage, focusPrevious$6 as focusPrevious, focusPreviousPage, handleWheel$1 as handleWheel, openDetails, replaceAll, selectIndex$
|
|
389
|
+
export { clearSearchResults, collapseDetails, dismissItem, focusFirst$6 as focusFirst, focusIndex$3 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
390
|
}
|
|
384
391
|
declare namespace Settings {
|
|
385
392
|
export { update };
|
|
@@ -391,7 +398,7 @@ declare namespace SideBar {
|
|
|
391
398
|
export { hide, open$4 as open };
|
|
392
399
|
}
|
|
393
400
|
declare namespace SourceControl {
|
|
394
|
-
export { acceptInput, handleClickSourceControlButtons, handleInput$3 as handleInput, selectIndex$
|
|
401
|
+
export { acceptInput, handleClickSourceControlButtons, handleInput$3 as handleInput, selectIndex$6 as selectIndex };
|
|
395
402
|
}
|
|
396
403
|
declare namespace StatusBar {
|
|
397
404
|
export { update$1 as update };
|
|
@@ -417,6 +424,7 @@ export interface TestApi {
|
|
|
417
424
|
readonly Dialog: typeof Dialog,
|
|
418
425
|
readonly Editor: typeof Editor,
|
|
419
426
|
readonly EditorCompletion: typeof EditorCompletion,
|
|
427
|
+
readonly EditorSourceAction: typeof EditorSourceAction,
|
|
420
428
|
readonly Explorer: typeof Explorer,
|
|
421
429
|
readonly Extension: typeof Extension,
|
|
422
430
|
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
|
|
@@ -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 () => {
|
|
@@ -2751,10 +2775,16 @@ const TestFrameWorkComponentOutput = {
|
|
|
2751
2775
|
const open$2 = async id => {
|
|
2752
2776
|
await invoke$1('Layout.showPanel', id);
|
|
2753
2777
|
};
|
|
2778
|
+
const openProblems = async () => {
|
|
2779
|
+
await open$2('Problems');
|
|
2780
|
+
// @ts-ignore
|
|
2781
|
+
await invoke$1('Panel.selectIndex', 0);
|
|
2782
|
+
};
|
|
2754
2783
|
|
|
2755
2784
|
const TestFrameWorkComponentPanel = {
|
|
2756
2785
|
__proto__: null,
|
|
2757
|
-
open: open$2
|
|
2786
|
+
open: open$2,
|
|
2787
|
+
openProblems
|
|
2758
2788
|
};
|
|
2759
2789
|
|
|
2760
2790
|
const getIsFirefox = () => {
|
|
@@ -3362,6 +3392,7 @@ const TestFrameWorkComponent = {
|
|
|
3362
3392
|
Dialog: TestFrameWorkComponentDialog,
|
|
3363
3393
|
Editor: TestFrameWorkComponentEditor,
|
|
3364
3394
|
EditorCompletion: TestFrameWorkComponentEditorCompletion,
|
|
3395
|
+
EditorSourceAction: TestFrameWorkComponentEditorSourceAction,
|
|
3365
3396
|
Explorer: TestFrameWorkComponentExplorer,
|
|
3366
3397
|
Extension: TestFrameWorkComponentExtension,
|
|
3367
3398
|
ExtensionDetail: TestFrameWorkComponentExtensionDetail,
|