@lvce-editor/test-worker 10.7.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 +3 -0
- package/dist/testWorkerMain.js +29 -13
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -139,7 +139,9 @@ interface Editor {
|
|
|
139
139
|
readonly deleteAllLeft: () => Promise<void>;
|
|
140
140
|
readonly deleteAllRight: () => Promise<void>;
|
|
141
141
|
readonly disableCompletionsOnType: () => Promise<void>;
|
|
142
|
+
readonly disableDiagnostics: () => Promise<void>;
|
|
142
143
|
readonly enableCompletionsOnType: () => Promise<void>;
|
|
144
|
+
readonly enableDiagnostics: () => Promise<void>;
|
|
143
145
|
readonly executeTabCompletion: () => Promise<void>;
|
|
144
146
|
readonly findAllImplementations: () => Promise<void>;
|
|
145
147
|
readonly findAllReferences: () => Promise<void>;
|
|
@@ -506,6 +508,7 @@ interface SideBar {
|
|
|
506
508
|
interface SourceControl {
|
|
507
509
|
readonly acceptInput: () => Promise<void>;
|
|
508
510
|
readonly handleClickSourceControlButtons: (index: number, name: string) => Promise<void>;
|
|
511
|
+
readonly handleContextMenu: (button: number, x: number, y: number) => Promise<void>;
|
|
509
512
|
readonly handleInput: (text: string) => Promise<void>;
|
|
510
513
|
readonly selectIndex: (index: number) => Promise<void>;
|
|
511
514
|
readonly show: () => Promise<void>;
|
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
|
|
|
@@ -1843,13 +1843,13 @@ const update$1 = settings => {
|
|
|
1843
1843
|
// @ts-ignore
|
|
1844
1844
|
return invoke$1('Preferences.update', settings);
|
|
1845
1845
|
};
|
|
1846
|
-
const enableDiagnostics = () => {
|
|
1846
|
+
const enableDiagnostics$1 = () => {
|
|
1847
1847
|
// @ts-ignore
|
|
1848
1848
|
return invoke$1('Preferences.update', {
|
|
1849
1849
|
'editor.diagnostics': true
|
|
1850
1850
|
});
|
|
1851
1851
|
};
|
|
1852
|
-
const disableDiagnostics = () => {
|
|
1852
|
+
const disableDiagnostics$1 = () => {
|
|
1853
1853
|
// @ts-ignore
|
|
1854
1854
|
return invoke$1('Preferences.update', {
|
|
1855
1855
|
'editor.diagnostics': false
|
|
@@ -1858,8 +1858,8 @@ const disableDiagnostics = () => {
|
|
|
1858
1858
|
|
|
1859
1859
|
const Settings = {
|
|
1860
1860
|
__proto__: null,
|
|
1861
|
-
disableDiagnostics,
|
|
1862
|
-
enableDiagnostics,
|
|
1861
|
+
disableDiagnostics: disableDiagnostics$1,
|
|
1862
|
+
enableDiagnostics: enableDiagnostics$1,
|
|
1863
1863
|
update: update$1
|
|
1864
1864
|
};
|
|
1865
1865
|
|
|
@@ -2082,7 +2082,17 @@ const enableCompletionsOnType = async () => {
|
|
|
2082
2082
|
};
|
|
2083
2083
|
const disableCompletionsOnType = async () => {
|
|
2084
2084
|
await update$1({
|
|
2085
|
-
'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
|
|
2086
2096
|
});
|
|
2087
2097
|
};
|
|
2088
2098
|
|
|
@@ -2108,7 +2118,9 @@ const Editor = {
|
|
|
2108
2118
|
deleteAllLeft,
|
|
2109
2119
|
deleteAllRight,
|
|
2110
2120
|
disableCompletionsOnType,
|
|
2121
|
+
disableDiagnostics,
|
|
2111
2122
|
enableCompletionsOnType,
|
|
2123
|
+
enableDiagnostics,
|
|
2112
2124
|
executeTabCompletion,
|
|
2113
2125
|
findAllImplementations,
|
|
2114
2126
|
findAllReferences,
|
|
@@ -2529,7 +2541,7 @@ const handleInput$4 = async value => {
|
|
|
2529
2541
|
// @ts-ignore
|
|
2530
2542
|
await invoke$1('Extensions.handleInput', value, Script$1);
|
|
2531
2543
|
};
|
|
2532
|
-
const handleContextMenu$
|
|
2544
|
+
const handleContextMenu$4 = async (button, x, y) => {
|
|
2533
2545
|
// @ts-ignore
|
|
2534
2546
|
await invoke$1('Extensions.handleContextMenu', button, x, y);
|
|
2535
2547
|
};
|
|
@@ -2551,7 +2563,7 @@ const ExtensionSearch = {
|
|
|
2551
2563
|
clearSearchResults: clearSearchResults$1,
|
|
2552
2564
|
copyExtensionId,
|
|
2553
2565
|
copyExtensionInfo,
|
|
2554
|
-
handleContextMenu: handleContextMenu$
|
|
2566
|
+
handleContextMenu: handleContextMenu$4,
|
|
2555
2567
|
handleInput: handleInput$4,
|
|
2556
2568
|
open: open$4
|
|
2557
2569
|
};
|
|
@@ -2912,7 +2924,7 @@ const sortByPrecedence = () => {
|
|
|
2912
2924
|
const stopRecordingKeys = () => {
|
|
2913
2925
|
return invoke$1('KeyBindings.stopRecordingKeys');
|
|
2914
2926
|
};
|
|
2915
|
-
const handleContextMenu$
|
|
2927
|
+
const handleContextMenu$3 = (button, x, y) => {
|
|
2916
2928
|
return invoke$1('KeyBindings.handleContextMenu', button, x, y);
|
|
2917
2929
|
};
|
|
2918
2930
|
const copyCommandId = () => {
|
|
@@ -2950,7 +2962,7 @@ const KeyBindingsEditor = {
|
|
|
2950
2962
|
focusNext: focusNext$4,
|
|
2951
2963
|
focusPrevious: focusPrevious$4,
|
|
2952
2964
|
handleClick,
|
|
2953
|
-
handleContextMenu: handleContextMenu$
|
|
2965
|
+
handleContextMenu: handleContextMenu$3,
|
|
2954
2966
|
handleDoubleClick,
|
|
2955
2967
|
handleInput: handleInput$3,
|
|
2956
2968
|
handleWheel: handleWheel$1,
|
|
@@ -3465,7 +3477,7 @@ const handleInputContextMenu = async (name, button, x, y) => {
|
|
|
3465
3477
|
// @ts-ignore
|
|
3466
3478
|
await invoke$1('Search.handleInputConextMenu', name, button, x, y);
|
|
3467
3479
|
};
|
|
3468
|
-
const handleContextMenu$
|
|
3480
|
+
const handleContextMenu$2 = async (button, x, y) => {
|
|
3469
3481
|
// @ts-ignore
|
|
3470
3482
|
await invoke$1('Search.handleContextMenu', name, button, x, y);
|
|
3471
3483
|
};
|
|
@@ -3484,7 +3496,7 @@ const Search = {
|
|
|
3484
3496
|
focusNextPage,
|
|
3485
3497
|
focusPrevious: focusPrevious$1,
|
|
3486
3498
|
focusPreviousPage,
|
|
3487
|
-
handleContextMenu: handleContextMenu$
|
|
3499
|
+
handleContextMenu: handleContextMenu$2,
|
|
3488
3500
|
handleInputContextMenu,
|
|
3489
3501
|
handleInputCopy,
|
|
3490
3502
|
handleInputCut,
|
|
@@ -3574,6 +3586,9 @@ const handleInput = async text => {
|
|
|
3574
3586
|
const handleClickSourceControlButtons = async (index, name) => {
|
|
3575
3587
|
await invoke$1('Source Control.handleClickSourceControlButtons', index, name);
|
|
3576
3588
|
};
|
|
3589
|
+
const handleContextMenu$1 = async (button, x, y) => {
|
|
3590
|
+
await invoke$1('Source Control.handleContextMenu', button, x, y);
|
|
3591
|
+
};
|
|
3577
3592
|
const show = async () => {
|
|
3578
3593
|
// @ts-ignore
|
|
3579
3594
|
await open$5('Source Control');
|
|
@@ -3583,6 +3598,7 @@ const SourceControl = {
|
|
|
3583
3598
|
__proto__: null,
|
|
3584
3599
|
acceptInput,
|
|
3585
3600
|
handleClickSourceControlButtons,
|
|
3601
|
+
handleContextMenu: handleContextMenu$1,
|
|
3586
3602
|
handleInput,
|
|
3587
3603
|
selectIndex,
|
|
3588
3604
|
show
|