@lvce-editor/test-worker 5.15.0 → 5.17.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 +16 -9
- package/dist/testWorkerMain.js +22 -2
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -95,7 +95,10 @@ declare const undo: () => Promise<void>;
|
|
|
95
95
|
declare const redo: () => Promise<void>;
|
|
96
96
|
declare const selectIndex: (index: number) => Promise<void>;
|
|
97
97
|
declare const selectCurrentIndex: () => Promise<void>;
|
|
98
|
+
declare const close$1: () => Promise<void>;
|
|
98
99
|
declare const handleWheel: (deltaMode: number, deltaY: number) => Promise<void>;
|
|
100
|
+
declare const show$1: () => Promise<void>;
|
|
101
|
+
declare const close$1: () => Promise<void>;
|
|
99
102
|
declare const selectIndex$1: (index: number) => Promise<void>;
|
|
100
103
|
declare const selectCurrentIndex$1: () => Promise<void>;
|
|
101
104
|
declare const openContextMenu$1: (index: number) => Promise<void>;
|
|
@@ -172,7 +175,7 @@ declare const createExecutableFrom: (uri: string) => Promise<string>;
|
|
|
172
175
|
declare const createDroppedFileHandle: () => Promise<DroppedFileHandle>;
|
|
173
176
|
declare const focusNext$3: () => Promise<void>;
|
|
174
177
|
declare const focusPrevious$2: () => Promise<void>;
|
|
175
|
-
declare const close$
|
|
178
|
+
declare const close$2: () => Promise<void>;
|
|
176
179
|
declare const setReplaceValue: (value: string) => Promise<void>;
|
|
177
180
|
declare const setValue: (value: string) => Promise<void>;
|
|
178
181
|
declare const toggleReplace: () => Promise<void>;
|
|
@@ -227,7 +230,7 @@ declare const focusFirst$4: () => Promise<void>;
|
|
|
227
230
|
declare const focusNext$6: () => Promise<void>;
|
|
228
231
|
declare const focusPrevious$5: () => Promise<void>;
|
|
229
232
|
declare const focusLast$4: () => Promise<void>;
|
|
230
|
-
declare const show$
|
|
233
|
+
declare const show$2: () => Promise<void>;
|
|
231
234
|
declare const handleFilterInput: (text: string) => Promise<void>;
|
|
232
235
|
declare const selectChannel: (channelId: string) => Promise<void>;
|
|
233
236
|
declare const clear: () => Promise<void>;
|
|
@@ -235,7 +238,7 @@ declare const open$2: (id: string) => Promise<void>;
|
|
|
235
238
|
declare const openProblems: () => Promise<void>;
|
|
236
239
|
declare const getNodePath: () => Promise<string>;
|
|
237
240
|
declare const isFirefox: () => boolean;
|
|
238
|
-
declare const show$
|
|
241
|
+
declare const show$3: () => Promise<void>;
|
|
239
242
|
declare const handleFilterInput$1: (text: string) => Promise<void>;
|
|
240
243
|
declare const copyMessage: () => Promise<void>;
|
|
241
244
|
declare const focusIndex$2: (index: number) => Promise<void>;
|
|
@@ -295,7 +298,7 @@ declare const toggleReplace$1: () => Promise<void>;
|
|
|
295
298
|
declare const open$4: () => Promise<void>;
|
|
296
299
|
declare const setLimit: (limit: number) => Promise<void>;
|
|
297
300
|
declare const update: (settings: any) => Promise<void>;
|
|
298
|
-
declare const show$
|
|
301
|
+
declare const show$4: () => Promise<void>;
|
|
299
302
|
declare const handleInput$2: (searchValue: string) => Promise<void>;
|
|
300
303
|
declare const usePreviousSearchValue: () => Promise<void>;
|
|
301
304
|
declare const useNextSearchValue: () => Promise<void>;
|
|
@@ -366,7 +369,10 @@ declare namespace Editor {
|
|
|
366
369
|
export { addAllMissingImports, closeColorPicker, closeCompletion, closeCompletionDetails, copy, copyLineDown, copyLineUp, cursorCharacterLeft, cursorCharacterRight, cursorDown, cursorEnd, cursorHome, cursorUp, cursorWordLeft, cursorWordPartLeft, cursorWordPartRight, cursorWordRight, deleteAllLeft, deleteAllRight, executeTabCompletion, findAllImplementations, findAllReferences, format, getSelections, getText, goToDefinition, goToTypeDefinition, growSelection, insertLineBreak, invokeBraceCompletion, invokeTabCompletion, openColorPicker, openCompletion, openCompletionDetails, openContextMenu, openEditorContextMenu, openFind, openFindWidget, openHover, openRename, openSourceActions, organizeImports, redo, rename, rename2, selectAll, setCursor, setDeltaY, setSelections, shouldHaveSelections, shouldHaveText$1 as shouldHaveText, showHover, sortImports, sourceActionsSelectCurrent, toggleBlockComment, toggleCompletionDetails, toggleLineComment, type, undo };
|
|
367
370
|
}
|
|
368
371
|
declare namespace EditorCompletion {
|
|
369
|
-
export { handleWheel, selectCurrentIndex, selectIndex };
|
|
372
|
+
export { close$1 as close, handleWheel, selectCurrentIndex, selectIndex };
|
|
373
|
+
}
|
|
374
|
+
declare namespace EditorHover {
|
|
375
|
+
export { close$1 as close, show$1 as show };
|
|
370
376
|
}
|
|
371
377
|
declare namespace EditorSourceAction {
|
|
372
378
|
export { selectCurrentIndex$1 as selectCurrentIndex, selectIndex$1 as selectIndex };
|
|
@@ -384,7 +390,7 @@ declare namespace FileSystem {
|
|
|
384
390
|
export { chmod, createDroppedFileHandle, createExecutable, createExecutableFrom, getTmpDir, mkdir, readFile, remove, writeFile, writeJson };
|
|
385
391
|
}
|
|
386
392
|
declare namespace FindWidget {
|
|
387
|
-
export { close$
|
|
393
|
+
export { close$2 as close, focusElement, focusNext$3 as focusNext, focusNextElement, focusPrevious$2 as focusPrevious, focusPreviousElement, replace, replaceAll, setReplaceValue, setValue, toggleMatchCase, toggleMatchWholeWord, togglePreserveCase, toggleReplace, toggleUseRegularExpression };
|
|
388
394
|
}
|
|
389
395
|
declare namespace IconTheme {
|
|
390
396
|
export { setIconTheme };
|
|
@@ -402,7 +408,7 @@ declare namespace Main {
|
|
|
402
408
|
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 };
|
|
403
409
|
}
|
|
404
410
|
declare namespace Output {
|
|
405
|
-
export { clear, handleFilterInput, selectChannel, show$
|
|
411
|
+
export { clear, handleFilterInput, selectChannel, show$2 as show };
|
|
406
412
|
}
|
|
407
413
|
declare namespace Panel {
|
|
408
414
|
export { open$2 as open, openProblems };
|
|
@@ -411,7 +417,7 @@ declare namespace Platform {
|
|
|
411
417
|
export { getNodePath, isFirefox };
|
|
412
418
|
}
|
|
413
419
|
declare namespace Problems {
|
|
414
|
-
export { copyMessage, focusIndex$2 as focusIndex, handleArrowLeft$1 as handleArrowLeft, handleArrowRight, handleClickAt$1 as handleClickAt, handleFilterInput$1 as handleFilterInput, handleIconThemeChange, show$
|
|
420
|
+
export { copyMessage, focusIndex$2 as focusIndex, handleArrowLeft$1 as handleArrowLeft, handleArrowRight, handleClickAt$1 as handleClickAt, handleFilterInput$1 as handleFilterInput, handleIconThemeChange, show$3 as show, viewAsList, viewAsTable };
|
|
415
421
|
}
|
|
416
422
|
declare namespace QuickPick {
|
|
417
423
|
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 };
|
|
@@ -429,7 +435,7 @@ declare namespace Settings {
|
|
|
429
435
|
export { update };
|
|
430
436
|
}
|
|
431
437
|
declare namespace SettingsView {
|
|
432
|
-
export { clear$2 as clear, handleInput$2 as handleInput, handleScroll$1 as handleScroll, selectExtensions, selectTab$1 as selectTab, selectTextEditor, selectWorkspace, show$
|
|
438
|
+
export { clear$2 as clear, handleInput$2 as handleInput, handleScroll$1 as handleScroll, selectExtensions, selectTab$1 as selectTab, selectTextEditor, selectWorkspace, show$4 as show, useNextSearchValue, usePreviousSearchValue };
|
|
433
439
|
}
|
|
434
440
|
declare namespace SideBar {
|
|
435
441
|
export { hide, open$5 as open };
|
|
@@ -461,6 +467,7 @@ export interface TestApi {
|
|
|
461
467
|
readonly Dialog: typeof Dialog,
|
|
462
468
|
readonly Editor: typeof Editor,
|
|
463
469
|
readonly EditorCompletion: typeof EditorCompletion,
|
|
470
|
+
readonly EditorHover: typeof EditorHover,
|
|
464
471
|
readonly EditorSourceAction: typeof EditorSourceAction,
|
|
465
472
|
readonly Explorer: typeof Explorer,
|
|
466
473
|
readonly Extension: typeof Extension,
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1611,7 +1611,7 @@ const TestFrameWork = {
|
|
|
1611
1611
|
test
|
|
1612
1612
|
};
|
|
1613
1613
|
|
|
1614
|
-
const show$
|
|
1614
|
+
const show$4 = async () => {
|
|
1615
1615
|
return invoke$1('About.showAbout');
|
|
1616
1616
|
};
|
|
1617
1617
|
const handleClickOk = async () => {
|
|
@@ -1637,7 +1637,7 @@ const TestFrameWorkComponentAbout = {
|
|
|
1637
1637
|
handleClickClose,
|
|
1638
1638
|
handleClickCopy,
|
|
1639
1639
|
handleClickOk,
|
|
1640
|
-
show: show$
|
|
1640
|
+
show: show$4
|
|
1641
1641
|
};
|
|
1642
1642
|
|
|
1643
1643
|
const focus$2 = async () => {
|
|
@@ -2185,6 +2185,10 @@ const selectIndex$6 = async index => {
|
|
|
2185
2185
|
const selectCurrentIndex$2 = async () => {
|
|
2186
2186
|
await invoke$1('EditorCompletion.selectCurrentIndex');
|
|
2187
2187
|
};
|
|
2188
|
+
const close$2 = async () => {
|
|
2189
|
+
// @ts-ignore
|
|
2190
|
+
await invoke$1('EditorCompletion.close');
|
|
2191
|
+
};
|
|
2188
2192
|
const handleWheel$2 = async (deltaMode, deltaY) => {
|
|
2189
2193
|
// @ts-ignore
|
|
2190
2194
|
await invoke$1('EditorCompletion.handleWheel', deltaMode, deltaY);
|
|
@@ -2192,11 +2196,26 @@ const handleWheel$2 = async (deltaMode, deltaY) => {
|
|
|
2192
2196
|
|
|
2193
2197
|
const TestFrameWorkComponentEditorCompletion = {
|
|
2194
2198
|
__proto__: null,
|
|
2199
|
+
close: close$2,
|
|
2195
2200
|
handleWheel: handleWheel$2,
|
|
2196
2201
|
selectCurrentIndex: selectCurrentIndex$2,
|
|
2197
2202
|
selectIndex: selectIndex$6
|
|
2198
2203
|
};
|
|
2199
2204
|
|
|
2205
|
+
const show$3 = async () => {
|
|
2206
|
+
await invoke$1('Editor.showHover2');
|
|
2207
|
+
};
|
|
2208
|
+
const close$1 = async () => {
|
|
2209
|
+
// @ts-ignore
|
|
2210
|
+
await invoke$1('EditorHover.close');
|
|
2211
|
+
};
|
|
2212
|
+
|
|
2213
|
+
const TestFrameWorkComponentEditorHover = {
|
|
2214
|
+
__proto__: null,
|
|
2215
|
+
close: close$1,
|
|
2216
|
+
show: show$3
|
|
2217
|
+
};
|
|
2218
|
+
|
|
2200
2219
|
const selectIndex$5 = async index => {
|
|
2201
2220
|
// @ts-ignore
|
|
2202
2221
|
await invoke$1('EditorSourceAction.selectIndex', index);
|
|
@@ -3565,6 +3584,7 @@ const TestFrameWorkComponent = {
|
|
|
3565
3584
|
Dialog: TestFrameWorkComponentDialog,
|
|
3566
3585
|
Editor: TestFrameWorkComponentEditor,
|
|
3567
3586
|
EditorCompletion: TestFrameWorkComponentEditorCompletion,
|
|
3587
|
+
EditorHover: TestFrameWorkComponentEditorHover,
|
|
3568
3588
|
EditorSourceAction: TestFrameWorkComponentEditorSourceAction,
|
|
3569
3589
|
Explorer: TestFrameWorkComponentExplorer,
|
|
3570
3590
|
Extension: TestFrameWorkComponentExtension,
|