@lvce-editor/test-worker 11.16.0 → 11.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 +19 -0
- package/dist/testWorkerMain.js +85 -29
- package/package.json +2 -2
package/dist/api.d.ts
CHANGED
|
@@ -400,6 +400,14 @@ interface KeyBoard {
|
|
|
400
400
|
readonly press: (key: string) => Promise<void>;
|
|
401
401
|
}
|
|
402
402
|
|
|
403
|
+
interface LanguageModels {
|
|
404
|
+
readonly addModel: () => Promise<void>;
|
|
405
|
+
readonly clearFilterInput: () => Promise<void>;
|
|
406
|
+
readonly handleFilterInput: (value: string) => Promise<void>;
|
|
407
|
+
readonly open: () => Promise<void>;
|
|
408
|
+
readonly removeModel: (id: string) => Promise<void>;
|
|
409
|
+
}
|
|
410
|
+
|
|
403
411
|
interface Main {
|
|
404
412
|
readonly closeActiveEditor: () => Promise<void>;
|
|
405
413
|
readonly closeAllEditors: () => Promise<void>;
|
|
@@ -412,6 +420,7 @@ interface Main {
|
|
|
412
420
|
readonly focusLast: () => Promise<void>;
|
|
413
421
|
readonly focusNext: () => Promise<void>;
|
|
414
422
|
readonly focusPrevious: () => Promise<void>;
|
|
423
|
+
readonly handleClickTogglePreview: () => Promise<void>;
|
|
415
424
|
readonly handleModifiedStatusChange: (uri: string, newStatus: boolean) => Promise<void>;
|
|
416
425
|
readonly handleTabContextMenu: (button: number, x: number, y: number) => Promise<void>;
|
|
417
426
|
readonly openKeyBindings: () => Promise<void>;
|
|
@@ -439,6 +448,14 @@ interface Platform {
|
|
|
439
448
|
readonly isFirefox: () => boolean;
|
|
440
449
|
}
|
|
441
450
|
|
|
451
|
+
interface Preview {
|
|
452
|
+
readonly handleClick: (hdId: string) => Promise<void>;
|
|
453
|
+
readonly handleInput: (hdId: string, value: string) => Promise<void>;
|
|
454
|
+
readonly handleKeyDown: (hdId: string, key: string, code: string) => Promise<void>;
|
|
455
|
+
readonly open: (uri: string) => Promise<void>;
|
|
456
|
+
readonly setUri: (uri: string) => Promise<void>;
|
|
457
|
+
}
|
|
458
|
+
|
|
442
459
|
interface Problems {
|
|
443
460
|
readonly copyMessage: () => Promise<void>;
|
|
444
461
|
readonly focusIndex: (index: number) => Promise<void>;
|
|
@@ -623,10 +640,12 @@ export interface TestApi {
|
|
|
623
640
|
readonly IframeInspector: IframeInspector
|
|
624
641
|
readonly KeyBindingsEditor: KeyBindingsEditor
|
|
625
642
|
readonly KeyBoard: KeyBoard
|
|
643
|
+
readonly LanguageModels: LanguageModels
|
|
626
644
|
readonly Main: Main
|
|
627
645
|
readonly Output: Output
|
|
628
646
|
readonly Panel: Panel
|
|
629
647
|
readonly Platform: Platform
|
|
648
|
+
readonly Preview: Preview
|
|
630
649
|
readonly Problems: Problems
|
|
631
650
|
readonly QuickPick: QuickPick
|
|
632
651
|
readonly References: References
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1673,7 +1673,7 @@ const focusNext$8 = async () => {
|
|
|
1673
1673
|
const focusPrevious$7 = async () => {
|
|
1674
1674
|
await invoke('ActivityBar.focusPrevious');
|
|
1675
1675
|
};
|
|
1676
|
-
const handleClick$
|
|
1676
|
+
const handleClick$4 = async index => {
|
|
1677
1677
|
await invoke('ActivityBar.handleClick', index);
|
|
1678
1678
|
};
|
|
1679
1679
|
const handleContextMenu$5 = async () => {
|
|
@@ -1690,7 +1690,7 @@ const ActivityBar = {
|
|
|
1690
1690
|
focusLast: focusLast$6,
|
|
1691
1691
|
focusNext: focusNext$8,
|
|
1692
1692
|
focusPrevious: focusPrevious$7,
|
|
1693
|
-
handleClick: handleClick$
|
|
1693
|
+
handleClick: handleClick$4,
|
|
1694
1694
|
handleContextMenu: handleContextMenu$5,
|
|
1695
1695
|
selectCurrent,
|
|
1696
1696
|
setAccountEnabled
|
|
@@ -2224,7 +2224,7 @@ const EditorHover = {
|
|
|
2224
2224
|
show: show$5
|
|
2225
2225
|
};
|
|
2226
2226
|
|
|
2227
|
-
const handleInput$
|
|
2227
|
+
const handleInput$6 = async value => {
|
|
2228
2228
|
await invoke('EditorRename.handleInput', value, Script);
|
|
2229
2229
|
};
|
|
2230
2230
|
const accept = async () => {
|
|
@@ -2238,7 +2238,7 @@ const EditorRename = {
|
|
|
2238
2238
|
__proto__: null,
|
|
2239
2239
|
accept,
|
|
2240
2240
|
cancel,
|
|
2241
|
-
handleInput: handleInput$
|
|
2241
|
+
handleInput: handleInput$6
|
|
2242
2242
|
};
|
|
2243
2243
|
|
|
2244
2244
|
const selectIndex$5 = async index => {
|
|
@@ -2323,7 +2323,7 @@ const copyPath$2 = async () => {
|
|
|
2323
2323
|
const copyRelativePath$1 = async () => {
|
|
2324
2324
|
await invoke('Explorer.copyRelativePath');
|
|
2325
2325
|
};
|
|
2326
|
-
const handleClick$
|
|
2326
|
+
const handleClick$3 = async index => {
|
|
2327
2327
|
await invoke('Explorer.handleClick', index);
|
|
2328
2328
|
};
|
|
2329
2329
|
const handleClickAt$2 = async (preventDefault, button, ctrlKey, shiftKey, x, y) => {
|
|
@@ -2389,7 +2389,7 @@ const Explorer = {
|
|
|
2389
2389
|
focusNext: focusNext$7,
|
|
2390
2390
|
handleArrowLeft: handleArrowLeft$1,
|
|
2391
2391
|
handleBlur,
|
|
2392
|
-
handleClick: handleClick$
|
|
2392
|
+
handleClick: handleClick$3,
|
|
2393
2393
|
handleClickAt: handleClickAt$2,
|
|
2394
2394
|
handleCopy,
|
|
2395
2395
|
handleCut,
|
|
@@ -2471,7 +2471,7 @@ const focusNextTab = async () => {
|
|
|
2471
2471
|
const focusPreviousTab = async () => {
|
|
2472
2472
|
await invoke('ExtensionDetail.focusPreviousTab');
|
|
2473
2473
|
};
|
|
2474
|
-
const open$
|
|
2474
|
+
const open$8 = extensionId => {
|
|
2475
2475
|
const uri = `extension-detail://${extensionId}`;
|
|
2476
2476
|
return invoke('Main.openUri', uri);
|
|
2477
2477
|
};
|
|
@@ -2527,7 +2527,7 @@ const ExtensionDetail = {
|
|
|
2527
2527
|
handleScroll: handleScroll$1,
|
|
2528
2528
|
handleTabFocus,
|
|
2529
2529
|
hideSizeLink,
|
|
2530
|
-
open: open$
|
|
2530
|
+
open: open$8,
|
|
2531
2531
|
openCommands,
|
|
2532
2532
|
openFeature,
|
|
2533
2533
|
openJsonValidation,
|
|
@@ -2542,7 +2542,7 @@ const ExtensionDetail = {
|
|
|
2542
2542
|
selectTab: selectTab$2
|
|
2543
2543
|
};
|
|
2544
2544
|
|
|
2545
|
-
const open$
|
|
2545
|
+
const open$7 = async id => {
|
|
2546
2546
|
await invoke('SideBar.openViewlet', id);
|
|
2547
2547
|
};
|
|
2548
2548
|
const hide = async () => {
|
|
@@ -2552,16 +2552,16 @@ const hide = async () => {
|
|
|
2552
2552
|
const SideBar = {
|
|
2553
2553
|
__proto__: null,
|
|
2554
2554
|
hide,
|
|
2555
|
-
open: open$
|
|
2555
|
+
open: open$7
|
|
2556
2556
|
};
|
|
2557
2557
|
|
|
2558
|
-
const open$
|
|
2559
|
-
await open$
|
|
2558
|
+
const open$6 = async () => {
|
|
2559
|
+
await open$7('Extensions');
|
|
2560
2560
|
};
|
|
2561
|
-
const handleInput$
|
|
2561
|
+
const handleInput$5 = async value => {
|
|
2562
2562
|
await invoke('Extensions.handleInput', value, Script$1);
|
|
2563
2563
|
};
|
|
2564
|
-
const handleClick$
|
|
2564
|
+
const handleClick$2 = async index => {
|
|
2565
2565
|
await invoke('Extensions.handleClick', index);
|
|
2566
2566
|
};
|
|
2567
2567
|
const handleClickFilter = async () => {
|
|
@@ -2585,11 +2585,11 @@ const ExtensionSearch = {
|
|
|
2585
2585
|
clearSearchResults: clearSearchResults$1,
|
|
2586
2586
|
copyExtensionId,
|
|
2587
2587
|
copyExtensionInfo,
|
|
2588
|
-
handleClick: handleClick$
|
|
2588
|
+
handleClick: handleClick$2,
|
|
2589
2589
|
handleClickFilter,
|
|
2590
2590
|
handleContextMenu: handleContextMenu$4,
|
|
2591
|
-
handleInput: handleInput$
|
|
2592
|
-
open: open$
|
|
2591
|
+
handleInput: handleInput$5,
|
|
2592
|
+
open: open$6
|
|
2593
2593
|
};
|
|
2594
2594
|
|
|
2595
2595
|
const Memfs = 'memfs';
|
|
@@ -2886,13 +2886,13 @@ const IframeInspector = {
|
|
|
2886
2886
|
selectIndex: selectIndex$4
|
|
2887
2887
|
};
|
|
2888
2888
|
|
|
2889
|
-
const open$
|
|
2889
|
+
const open$5 = async () => {
|
|
2890
2890
|
await invoke('Main.openUri', 'app://keybindings');
|
|
2891
2891
|
};
|
|
2892
|
-
const handleInput$
|
|
2892
|
+
const handleInput$4 = value => {
|
|
2893
2893
|
return invoke('KeyBindings.handleInput', value);
|
|
2894
2894
|
};
|
|
2895
|
-
const handleClick = (x, y) => {
|
|
2895
|
+
const handleClick$1 = (x, y) => {
|
|
2896
2896
|
return invoke('KeyBindings.handleClick', x, y);
|
|
2897
2897
|
};
|
|
2898
2898
|
const handleWheel$1 = (deltaMode, deltaY) => {
|
|
@@ -2968,12 +2968,12 @@ const KeyBindingsEditor = {
|
|
|
2968
2968
|
focusLast: focusLast$3,
|
|
2969
2969
|
focusNext: focusNext$4,
|
|
2970
2970
|
focusPrevious: focusPrevious$4,
|
|
2971
|
-
handleClick,
|
|
2971
|
+
handleClick: handleClick$1,
|
|
2972
2972
|
handleContextMenu: handleContextMenu$3,
|
|
2973
2973
|
handleDoubleClick,
|
|
2974
|
-
handleInput: handleInput$
|
|
2974
|
+
handleInput: handleInput$4,
|
|
2975
2975
|
handleWheel: handleWheel$1,
|
|
2976
|
-
open: open$
|
|
2976
|
+
open: open$5,
|
|
2977
2977
|
removeKeyBinding,
|
|
2978
2978
|
resetKeyBinding,
|
|
2979
2979
|
showSameKeyBindings,
|
|
@@ -3037,6 +3037,31 @@ const KeyBoard = {
|
|
|
3037
3037
|
press
|
|
3038
3038
|
};
|
|
3039
3039
|
|
|
3040
|
+
const open$4 = async () => {
|
|
3041
|
+
await invoke('Main.openUri', 'language-models:///1');
|
|
3042
|
+
};
|
|
3043
|
+
const handleFilterInput$2 = async value => {
|
|
3044
|
+
await invoke('LanguageModels.handleFilterInput', value);
|
|
3045
|
+
};
|
|
3046
|
+
const clearFilterInput = async () => {
|
|
3047
|
+
await invoke('LanguageModels.clearFilterInput');
|
|
3048
|
+
};
|
|
3049
|
+
const addModel = async () => {
|
|
3050
|
+
await invoke('LanguageModels.addModel');
|
|
3051
|
+
};
|
|
3052
|
+
const removeModel = async id => {
|
|
3053
|
+
await invoke('LanguageModels.removeModel', id);
|
|
3054
|
+
};
|
|
3055
|
+
|
|
3056
|
+
const LanguageModels = {
|
|
3057
|
+
__proto__: null,
|
|
3058
|
+
addModel,
|
|
3059
|
+
clearFilterInput,
|
|
3060
|
+
handleFilterInput: handleFilterInput$2,
|
|
3061
|
+
open: open$4,
|
|
3062
|
+
removeModel
|
|
3063
|
+
};
|
|
3064
|
+
|
|
3040
3065
|
const openUri = async uri => {
|
|
3041
3066
|
await invoke('Main.openUri', uri);
|
|
3042
3067
|
};
|
|
@@ -3046,6 +3071,9 @@ const splitRight = async () => {
|
|
|
3046
3071
|
const openKeyBindings = async () => {
|
|
3047
3072
|
await invoke('Main.openKeyBindings');
|
|
3048
3073
|
};
|
|
3074
|
+
const handleClickTogglePreview = async () => {
|
|
3075
|
+
await invoke('Main.handleClickTogglePreview');
|
|
3076
|
+
};
|
|
3049
3077
|
const closeAllEditors = async () => {
|
|
3050
3078
|
await invoke('Main.closeAllEditors');
|
|
3051
3079
|
};
|
|
@@ -3105,6 +3133,7 @@ const Main = {
|
|
|
3105
3133
|
focusLast: focusLast$2,
|
|
3106
3134
|
focusNext: focusNext$3,
|
|
3107
3135
|
focusPrevious: focusPrevious$3,
|
|
3136
|
+
handleClickTogglePreview,
|
|
3108
3137
|
handleModifiedStatusChange,
|
|
3109
3138
|
handleTabContextMenu,
|
|
3110
3139
|
openKeyBindings,
|
|
@@ -3114,22 +3143,22 @@ const Main = {
|
|
|
3114
3143
|
splitRight
|
|
3115
3144
|
};
|
|
3116
3145
|
|
|
3117
|
-
const open$
|
|
3146
|
+
const open$3 = async id => {
|
|
3118
3147
|
await invoke('Layout.showPanel', id);
|
|
3119
3148
|
};
|
|
3120
3149
|
const openProblems = async () => {
|
|
3121
|
-
await open$
|
|
3150
|
+
await open$3('Problems');
|
|
3122
3151
|
await invoke('Panel.selectIndex', 0);
|
|
3123
3152
|
};
|
|
3124
3153
|
|
|
3125
3154
|
const Panel = {
|
|
3126
3155
|
__proto__: null,
|
|
3127
|
-
open: open$
|
|
3156
|
+
open: open$3,
|
|
3128
3157
|
openProblems
|
|
3129
3158
|
};
|
|
3130
3159
|
|
|
3131
3160
|
const show$4 = async () => {
|
|
3132
|
-
await open$
|
|
3161
|
+
await open$3('Output');
|
|
3133
3162
|
await invoke('Panel.selectIndex', 1);
|
|
3134
3163
|
};
|
|
3135
3164
|
const handleFilterInput$1 = async text => {
|
|
@@ -3184,6 +3213,31 @@ const Platform = {
|
|
|
3184
3213
|
isFirefox
|
|
3185
3214
|
};
|
|
3186
3215
|
|
|
3216
|
+
const open$2 = async uri => {
|
|
3217
|
+
await invoke('Layout.showPreview', uri);
|
|
3218
|
+
};
|
|
3219
|
+
const handleClick = async hdId => {
|
|
3220
|
+
await invoke('Preview.handleClick', hdId);
|
|
3221
|
+
};
|
|
3222
|
+
const handleInput$3 = async (hdId, value) => {
|
|
3223
|
+
await invoke('Preview.handleInput', hdId, value);
|
|
3224
|
+
};
|
|
3225
|
+
const handleKeyDown = async (hdId, key, code) => {
|
|
3226
|
+
await invoke('Preview.handleKeyDown', hdId, key, code);
|
|
3227
|
+
};
|
|
3228
|
+
const setUri = async uri => {
|
|
3229
|
+
await invoke('Preview.setUri');
|
|
3230
|
+
};
|
|
3231
|
+
|
|
3232
|
+
const Preview = {
|
|
3233
|
+
__proto__: null,
|
|
3234
|
+
handleClick,
|
|
3235
|
+
handleInput: handleInput$3,
|
|
3236
|
+
handleKeyDown,
|
|
3237
|
+
open: open$2,
|
|
3238
|
+
setUri
|
|
3239
|
+
};
|
|
3240
|
+
|
|
3187
3241
|
const show$3 = async () => {
|
|
3188
3242
|
await invoke('Panel.selectIndex', 0);
|
|
3189
3243
|
};
|
|
@@ -3335,7 +3389,7 @@ const References = {
|
|
|
3335
3389
|
};
|
|
3336
3390
|
|
|
3337
3391
|
const show$2 = async () => {
|
|
3338
|
-
await open$
|
|
3392
|
+
await open$7('Run And Debug');
|
|
3339
3393
|
};
|
|
3340
3394
|
const handleClickSectionBreakPoints = async () => {
|
|
3341
3395
|
await invoke('Run And Debug.handleClickSectionBreakPoints');
|
|
@@ -3597,7 +3651,7 @@ const handleContextMenu$1 = async (button, x, y) => {
|
|
|
3597
3651
|
await invoke('Source Control.handleContextMenu', button, x, y);
|
|
3598
3652
|
};
|
|
3599
3653
|
const show = async () => {
|
|
3600
|
-
await open$
|
|
3654
|
+
await open$7('Source Control');
|
|
3601
3655
|
};
|
|
3602
3656
|
|
|
3603
3657
|
const SourceControl = {
|
|
@@ -3844,11 +3898,13 @@ const createApi = (platform, assetDir) => {
|
|
|
3844
3898
|
IframeInspector,
|
|
3845
3899
|
KeyBindingsEditor,
|
|
3846
3900
|
KeyBoard,
|
|
3901
|
+
LanguageModels,
|
|
3847
3902
|
Locator: createLocator,
|
|
3848
3903
|
Main,
|
|
3849
3904
|
Output,
|
|
3850
3905
|
Panel,
|
|
3851
3906
|
Platform,
|
|
3907
|
+
Preview,
|
|
3852
3908
|
Problems,
|
|
3853
3909
|
QuickPick,
|
|
3854
3910
|
References,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/test-worker",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.17.0",
|
|
4
4
|
"description": "Test Worker",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "module",
|
|
12
12
|
"main": "dist/testWorkerMain.js",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@lvce-editor/constants": "^3.
|
|
14
|
+
"@lvce-editor/constants": "^3.5.0"
|
|
15
15
|
},
|
|
16
16
|
"types": "dist/api.d.ts"
|
|
17
17
|
}
|