@lvce-editor/test-worker 14.4.0 → 14.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 +1 -0
- package/dist/testWorkerMain.js +21 -19
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -743,6 +743,7 @@ interface Search {
|
|
|
743
743
|
readonly setLimit: (limit: number) => Promise<void>;
|
|
744
744
|
readonly setReplaceValue: (value: string) => Promise<void>;
|
|
745
745
|
readonly setValue: (value: string) => Promise<void>;
|
|
746
|
+
readonly show: () => Promise<void>;
|
|
746
747
|
readonly toggleMatchCase: () => Promise<void>;
|
|
747
748
|
readonly toggleMatchWholeWord: () => Promise<void>;
|
|
748
749
|
readonly togglePreserveCase: () => Promise<void>;
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1749,7 +1749,7 @@ const {
|
|
|
1749
1749
|
expect
|
|
1750
1750
|
} = Expect$1;
|
|
1751
1751
|
|
|
1752
|
-
const show$
|
|
1752
|
+
const show$8 = async () => {
|
|
1753
1753
|
return invoke('About.showAbout');
|
|
1754
1754
|
};
|
|
1755
1755
|
const handleClickOk = async () => {
|
|
@@ -1774,7 +1774,7 @@ const About = {
|
|
|
1774
1774
|
handleClickClose: handleClickClose$1,
|
|
1775
1775
|
handleClickCopy,
|
|
1776
1776
|
handleClickOk,
|
|
1777
|
-
show: show$
|
|
1777
|
+
show: show$8
|
|
1778
1778
|
};
|
|
1779
1779
|
|
|
1780
1780
|
const focus$2 = async () => {
|
|
@@ -1891,7 +1891,7 @@ const enterNewLine = async () => {
|
|
|
1891
1891
|
const setScrollDownButtonEnabled = async enabled => {
|
|
1892
1892
|
await invoke('Chat.setScrollDownButtonEnabled', enabled);
|
|
1893
1893
|
};
|
|
1894
|
-
const show$
|
|
1894
|
+
const show$7 = async () => {
|
|
1895
1895
|
await invoke('Layout.showSecondarySideBar');
|
|
1896
1896
|
await invoke('Chat.reset');
|
|
1897
1897
|
};
|
|
@@ -2076,7 +2076,7 @@ const Chat = {
|
|
|
2076
2076
|
setScrollDownButtonEnabled,
|
|
2077
2077
|
setSearchEnabled,
|
|
2078
2078
|
setStreamingEnabled,
|
|
2079
|
-
show: show$
|
|
2079
|
+
show: show$7,
|
|
2080
2080
|
showComposerAttachmentPreviewOverlay,
|
|
2081
2081
|
useMockApi
|
|
2082
2082
|
};
|
|
@@ -2915,7 +2915,7 @@ const EditorCompletion = {
|
|
|
2915
2915
|
selectIndex: selectIndex$6
|
|
2916
2916
|
};
|
|
2917
2917
|
|
|
2918
|
-
const show$
|
|
2918
|
+
const show$6 = async () => {
|
|
2919
2919
|
await invoke('Editor.showHover2');
|
|
2920
2920
|
};
|
|
2921
2921
|
const close$1 = async () => {
|
|
@@ -2924,7 +2924,7 @@ const close$1 = async () => {
|
|
|
2924
2924
|
|
|
2925
2925
|
const EditorHover = {
|
|
2926
2926
|
close: close$1,
|
|
2927
|
-
show: show$
|
|
2927
|
+
show: show$6
|
|
2928
2928
|
};
|
|
2929
2929
|
|
|
2930
2930
|
const handleInput$6 = async value => {
|
|
@@ -3374,10 +3374,11 @@ const getFileMapWeb = async url => {
|
|
|
3374
3374
|
};
|
|
3375
3375
|
|
|
3376
3376
|
const loadFixtureToMemFs = async fileMap => {
|
|
3377
|
-
|
|
3377
|
+
await Promise.all(Object.entries(fileMap).map(entry => {
|
|
3378
|
+
const [path, content] = entry;
|
|
3378
3379
|
const memfsPath = `memfs:///fixture/${path}`;
|
|
3379
|
-
|
|
3380
|
-
}
|
|
3380
|
+
return invoke('FileSystem.writeFile', memfsPath, content);
|
|
3381
|
+
}));
|
|
3381
3382
|
return `memfs:///fixture`;
|
|
3382
3383
|
};
|
|
3383
3384
|
|
|
@@ -3815,7 +3816,7 @@ const Panel = {
|
|
|
3815
3816
|
openProblems
|
|
3816
3817
|
};
|
|
3817
3818
|
|
|
3818
|
-
const show$
|
|
3819
|
+
const show$5 = async () => {
|
|
3819
3820
|
await open$3('Output');
|
|
3820
3821
|
await invoke('Panel.selectIndex', 1);
|
|
3821
3822
|
};
|
|
@@ -3837,7 +3838,7 @@ const Output = {
|
|
|
3837
3838
|
handleFilterInput: handleFilterInput$1,
|
|
3838
3839
|
saveAs,
|
|
3839
3840
|
selectChannel,
|
|
3840
|
-
show: show$
|
|
3841
|
+
show: show$5
|
|
3841
3842
|
};
|
|
3842
3843
|
|
|
3843
3844
|
const getIsFirefox = () => {
|
|
@@ -3917,7 +3918,7 @@ const Preview = {
|
|
|
3917
3918
|
waitForMutation
|
|
3918
3919
|
};
|
|
3919
3920
|
|
|
3920
|
-
const show$
|
|
3921
|
+
const show$4 = async () => {
|
|
3921
3922
|
await invoke('Panel.selectIndex', 0);
|
|
3922
3923
|
};
|
|
3923
3924
|
const handleFilterInput = async text => {
|
|
@@ -3956,7 +3957,7 @@ const Problems = {
|
|
|
3956
3957
|
handleClickAt: handleClickAt$1,
|
|
3957
3958
|
handleFilterInput,
|
|
3958
3959
|
handleIconThemeChange,
|
|
3959
|
-
show: show$
|
|
3960
|
+
show: show$4,
|
|
3960
3961
|
viewAsList,
|
|
3961
3962
|
viewAsTable
|
|
3962
3963
|
};
|
|
@@ -4025,10 +4026,7 @@ const selectItem2 = async ({
|
|
|
4025
4026
|
const {
|
|
4026
4027
|
promise
|
|
4027
4028
|
} = await registerCallbackCommand(callbackCommand);
|
|
4028
|
-
|
|
4029
|
-
// @ts-ignore
|
|
4030
|
-
invoke('QuickPick.selectItem', label);
|
|
4031
|
-
await promise;
|
|
4029
|
+
await Promise.all([promise, invoke('QuickPick.selectItem', label)]);
|
|
4032
4030
|
};
|
|
4033
4031
|
|
|
4034
4032
|
const QuickPick = {
|
|
@@ -4064,7 +4062,7 @@ const References = {
|
|
|
4064
4062
|
refresh
|
|
4065
4063
|
};
|
|
4066
4064
|
|
|
4067
|
-
const show$
|
|
4065
|
+
const show$3 = async () => {
|
|
4068
4066
|
await open$7('Run And Debug');
|
|
4069
4067
|
};
|
|
4070
4068
|
const handleClickSectionBreakPoints = async () => {
|
|
@@ -4105,9 +4103,12 @@ const RunAndDebug = {
|
|
|
4105
4103
|
handleWatchValueChange,
|
|
4106
4104
|
selectIndex: selectIndex$2,
|
|
4107
4105
|
setPauseOnExceptions,
|
|
4108
|
-
show: show$
|
|
4106
|
+
show: show$3
|
|
4109
4107
|
};
|
|
4110
4108
|
|
|
4109
|
+
const show$2 = async () => {
|
|
4110
|
+
await open$7('Search');
|
|
4111
|
+
};
|
|
4111
4112
|
const setValue = async value => {
|
|
4112
4113
|
await invoke('Search.handleInput', value, Script);
|
|
4113
4114
|
};
|
|
@@ -4252,6 +4253,7 @@ const Search = {
|
|
|
4252
4253
|
setLimit,
|
|
4253
4254
|
setReplaceValue,
|
|
4254
4255
|
setValue,
|
|
4256
|
+
show: show$2,
|
|
4255
4257
|
toggleMatchCase,
|
|
4256
4258
|
toggleMatchWholeWord,
|
|
4257
4259
|
togglePreserveCase,
|