@lvce-editor/test-worker 10.6.0 → 10.8.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 +8 -0
- package/dist/testWorkerMain.js +39 -13
- package/package.json +2 -2
package/dist/api.d.ts
CHANGED
|
@@ -88,6 +88,10 @@ interface ClipBoard {
|
|
|
88
88
|
readonly writeText: (text: string) => Promise<void>;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
interface ColorPicker {
|
|
92
|
+
readonly setRelativeX: (x: number) => Promise<void>;
|
|
93
|
+
}
|
|
94
|
+
|
|
91
95
|
interface Command {
|
|
92
96
|
readonly execute: (id: string, ...args: readonly any[]) => Promise<any>;
|
|
93
97
|
}
|
|
@@ -135,7 +139,9 @@ interface Editor {
|
|
|
135
139
|
readonly deleteAllLeft: () => Promise<void>;
|
|
136
140
|
readonly deleteAllRight: () => Promise<void>;
|
|
137
141
|
readonly disableCompletionsOnType: () => Promise<void>;
|
|
142
|
+
readonly disableDiagnostics: () => Promise<void>;
|
|
138
143
|
readonly enableCompletionsOnType: () => Promise<void>;
|
|
144
|
+
readonly enableDiagnostics: () => Promise<void>;
|
|
139
145
|
readonly executeTabCompletion: () => Promise<void>;
|
|
140
146
|
readonly findAllImplementations: () => Promise<void>;
|
|
141
147
|
readonly findAllReferences: () => Promise<void>;
|
|
@@ -502,6 +508,7 @@ interface SideBar {
|
|
|
502
508
|
interface SourceControl {
|
|
503
509
|
readonly acceptInput: () => Promise<void>;
|
|
504
510
|
readonly handleClickSourceControlButtons: (index: number, name: string) => Promise<void>;
|
|
511
|
+
readonly handleContextMenu: (button: number, x: number, y: number) => Promise<void>;
|
|
505
512
|
readonly handleInput: (text: string) => Promise<void>;
|
|
506
513
|
readonly selectIndex: (index: number) => Promise<void>;
|
|
507
514
|
readonly show: () => Promise<void>;
|
|
@@ -547,6 +554,7 @@ export interface TestApi {
|
|
|
547
554
|
readonly ActivityBar: ActivityBar
|
|
548
555
|
readonly BaseUrl: BaseUrl
|
|
549
556
|
readonly ClipBoard: ClipBoard
|
|
557
|
+
readonly ColorPicker: ColorPicker
|
|
550
558
|
readonly Command: Command
|
|
551
559
|
readonly ContextMenu: ContextMenu
|
|
552
560
|
readonly Developer: Developer
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1617,7 +1617,7 @@ const focusPrevious$7 = async () => {
|
|
|
1617
1617
|
const handleClick$2 = async index => {
|
|
1618
1618
|
await invoke$1('ActivityBar.handleClick', index);
|
|
1619
1619
|
};
|
|
1620
|
-
const handleContextMenu$
|
|
1620
|
+
const handleContextMenu$5 = async () => {
|
|
1621
1621
|
await invoke$1('ActivityBar.handleContextMenu');
|
|
1622
1622
|
};
|
|
1623
1623
|
const selectCurrent = async () => {
|
|
@@ -1632,7 +1632,7 @@ const ActivityBar = {
|
|
|
1632
1632
|
focusNext: focusNext$8,
|
|
1633
1633
|
focusPrevious: focusPrevious$7,
|
|
1634
1634
|
handleClick: handleClick$2,
|
|
1635
|
-
handleContextMenu: handleContextMenu$
|
|
1635
|
+
handleContextMenu: handleContextMenu$5,
|
|
1636
1636
|
selectCurrent
|
|
1637
1637
|
};
|
|
1638
1638
|
|
|
@@ -1679,6 +1679,15 @@ const ClipBoard = {
|
|
|
1679
1679
|
writeText
|
|
1680
1680
|
};
|
|
1681
1681
|
|
|
1682
|
+
const setRelativeX = async x => {
|
|
1683
|
+
await invoke$1('ColorPicker.setRelativeX', x);
|
|
1684
|
+
};
|
|
1685
|
+
|
|
1686
|
+
const ColorPicker = {
|
|
1687
|
+
__proto__: null,
|
|
1688
|
+
setRelativeX
|
|
1689
|
+
};
|
|
1690
|
+
|
|
1682
1691
|
const execute$1 = async (id, ...args) => {
|
|
1683
1692
|
// @ts-ignore
|
|
1684
1693
|
return invoke$1(id, ...args);
|
|
@@ -1834,13 +1843,13 @@ const update$1 = settings => {
|
|
|
1834
1843
|
// @ts-ignore
|
|
1835
1844
|
return invoke$1('Preferences.update', settings);
|
|
1836
1845
|
};
|
|
1837
|
-
const enableDiagnostics = () => {
|
|
1846
|
+
const enableDiagnostics$1 = () => {
|
|
1838
1847
|
// @ts-ignore
|
|
1839
1848
|
return invoke$1('Preferences.update', {
|
|
1840
1849
|
'editor.diagnostics': true
|
|
1841
1850
|
});
|
|
1842
1851
|
};
|
|
1843
|
-
const disableDiagnostics = () => {
|
|
1852
|
+
const disableDiagnostics$1 = () => {
|
|
1844
1853
|
// @ts-ignore
|
|
1845
1854
|
return invoke$1('Preferences.update', {
|
|
1846
1855
|
'editor.diagnostics': false
|
|
@@ -1849,8 +1858,8 @@ const disableDiagnostics = () => {
|
|
|
1849
1858
|
|
|
1850
1859
|
const Settings = {
|
|
1851
1860
|
__proto__: null,
|
|
1852
|
-
disableDiagnostics,
|
|
1853
|
-
enableDiagnostics,
|
|
1861
|
+
disableDiagnostics: disableDiagnostics$1,
|
|
1862
|
+
enableDiagnostics: enableDiagnostics$1,
|
|
1854
1863
|
update: update$1
|
|
1855
1864
|
};
|
|
1856
1865
|
|
|
@@ -2073,7 +2082,17 @@ const enableCompletionsOnType = async () => {
|
|
|
2073
2082
|
};
|
|
2074
2083
|
const disableCompletionsOnType = async () => {
|
|
2075
2084
|
await update$1({
|
|
2076
|
-
'editor.completionsOnType':
|
|
2085
|
+
'editor.completionsOnType': false
|
|
2086
|
+
});
|
|
2087
|
+
};
|
|
2088
|
+
const enableDiagnostics = async () => {
|
|
2089
|
+
await update$1({
|
|
2090
|
+
'editor.diagnostics': true
|
|
2091
|
+
});
|
|
2092
|
+
};
|
|
2093
|
+
const disableDiagnostics = async () => {
|
|
2094
|
+
await update$1({
|
|
2095
|
+
'editor.diagnostics': false
|
|
2077
2096
|
});
|
|
2078
2097
|
};
|
|
2079
2098
|
|
|
@@ -2099,7 +2118,9 @@ const Editor = {
|
|
|
2099
2118
|
deleteAllLeft,
|
|
2100
2119
|
deleteAllRight,
|
|
2101
2120
|
disableCompletionsOnType,
|
|
2121
|
+
disableDiagnostics,
|
|
2102
2122
|
enableCompletionsOnType,
|
|
2123
|
+
enableDiagnostics,
|
|
2103
2124
|
executeTabCompletion,
|
|
2104
2125
|
findAllImplementations,
|
|
2105
2126
|
findAllReferences,
|
|
@@ -2520,7 +2541,7 @@ const handleInput$4 = async value => {
|
|
|
2520
2541
|
// @ts-ignore
|
|
2521
2542
|
await invoke$1('Extensions.handleInput', value, Script$1);
|
|
2522
2543
|
};
|
|
2523
|
-
const handleContextMenu$
|
|
2544
|
+
const handleContextMenu$4 = async (button, x, y) => {
|
|
2524
2545
|
// @ts-ignore
|
|
2525
2546
|
await invoke$1('Extensions.handleContextMenu', button, x, y);
|
|
2526
2547
|
};
|
|
@@ -2542,7 +2563,7 @@ const ExtensionSearch = {
|
|
|
2542
2563
|
clearSearchResults: clearSearchResults$1,
|
|
2543
2564
|
copyExtensionId,
|
|
2544
2565
|
copyExtensionInfo,
|
|
2545
|
-
handleContextMenu: handleContextMenu$
|
|
2566
|
+
handleContextMenu: handleContextMenu$4,
|
|
2546
2567
|
handleInput: handleInput$4,
|
|
2547
2568
|
open: open$4
|
|
2548
2569
|
};
|
|
@@ -2903,7 +2924,7 @@ const sortByPrecedence = () => {
|
|
|
2903
2924
|
const stopRecordingKeys = () => {
|
|
2904
2925
|
return invoke$1('KeyBindings.stopRecordingKeys');
|
|
2905
2926
|
};
|
|
2906
|
-
const handleContextMenu$
|
|
2927
|
+
const handleContextMenu$3 = (button, x, y) => {
|
|
2907
2928
|
return invoke$1('KeyBindings.handleContextMenu', button, x, y);
|
|
2908
2929
|
};
|
|
2909
2930
|
const copyCommandId = () => {
|
|
@@ -2941,7 +2962,7 @@ const KeyBindingsEditor = {
|
|
|
2941
2962
|
focusNext: focusNext$4,
|
|
2942
2963
|
focusPrevious: focusPrevious$4,
|
|
2943
2964
|
handleClick,
|
|
2944
|
-
handleContextMenu: handleContextMenu$
|
|
2965
|
+
handleContextMenu: handleContextMenu$3,
|
|
2945
2966
|
handleDoubleClick,
|
|
2946
2967
|
handleInput: handleInput$3,
|
|
2947
2968
|
handleWheel: handleWheel$1,
|
|
@@ -3456,7 +3477,7 @@ const handleInputContextMenu = async (name, button, x, y) => {
|
|
|
3456
3477
|
// @ts-ignore
|
|
3457
3478
|
await invoke$1('Search.handleInputConextMenu', name, button, x, y);
|
|
3458
3479
|
};
|
|
3459
|
-
const handleContextMenu$
|
|
3480
|
+
const handleContextMenu$2 = async (button, x, y) => {
|
|
3460
3481
|
// @ts-ignore
|
|
3461
3482
|
await invoke$1('Search.handleContextMenu', name, button, x, y);
|
|
3462
3483
|
};
|
|
@@ -3475,7 +3496,7 @@ const Search = {
|
|
|
3475
3496
|
focusNextPage,
|
|
3476
3497
|
focusPrevious: focusPrevious$1,
|
|
3477
3498
|
focusPreviousPage,
|
|
3478
|
-
handleContextMenu: handleContextMenu$
|
|
3499
|
+
handleContextMenu: handleContextMenu$2,
|
|
3479
3500
|
handleInputContextMenu,
|
|
3480
3501
|
handleInputCopy,
|
|
3481
3502
|
handleInputCut,
|
|
@@ -3565,6 +3586,9 @@ const handleInput = async text => {
|
|
|
3565
3586
|
const handleClickSourceControlButtons = async (index, name) => {
|
|
3566
3587
|
await invoke$1('Source Control.handleClickSourceControlButtons', index, name);
|
|
3567
3588
|
};
|
|
3589
|
+
const handleContextMenu$1 = async (button, x, y) => {
|
|
3590
|
+
await invoke$1('Source Control.handleContextMenu', button, x, y);
|
|
3591
|
+
};
|
|
3568
3592
|
const show = async () => {
|
|
3569
3593
|
// @ts-ignore
|
|
3570
3594
|
await open$5('Source Control');
|
|
@@ -3574,6 +3598,7 @@ const SourceControl = {
|
|
|
3574
3598
|
__proto__: null,
|
|
3575
3599
|
acceptInput,
|
|
3576
3600
|
handleClickSourceControlButtons,
|
|
3601
|
+
handleContextMenu: handleContextMenu$1,
|
|
3577
3602
|
handleInput,
|
|
3578
3603
|
selectIndex,
|
|
3579
3604
|
show
|
|
@@ -3798,6 +3823,7 @@ const createApi = (platform, assetDir) => {
|
|
|
3798
3823
|
}
|
|
3799
3824
|
},
|
|
3800
3825
|
ClipBoard,
|
|
3826
|
+
ColorPicker,
|
|
3801
3827
|
Command,
|
|
3802
3828
|
ContextMenu,
|
|
3803
3829
|
Developer,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/test-worker",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.8.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": "^1.
|
|
14
|
+
"@lvce-editor/constants": "^1.38.0"
|
|
15
15
|
},
|
|
16
16
|
"types": "dist/api.d.ts"
|
|
17
17
|
}
|