@lvce-editor/test-worker 10.4.0 → 10.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 +4 -0
- package/dist/testWorkerMain.js +52 -30
- package/package.json +2 -2
package/dist/api.d.ts
CHANGED
|
@@ -134,6 +134,8 @@ interface Editor {
|
|
|
134
134
|
readonly cursorWordRight: () => Promise<void>;
|
|
135
135
|
readonly deleteAllLeft: () => Promise<void>;
|
|
136
136
|
readonly deleteAllRight: () => Promise<void>;
|
|
137
|
+
readonly disableCompletionsOnType: () => Promise<void>;
|
|
138
|
+
readonly enableCompletionsOnType: () => Promise<void>;
|
|
137
139
|
readonly executeTabCompletion: () => Promise<void>;
|
|
138
140
|
readonly findAllImplementations: () => Promise<void>;
|
|
139
141
|
readonly findAllReferences: () => Promise<void>;
|
|
@@ -448,6 +450,8 @@ interface Search {
|
|
|
448
450
|
readonly focusNextPage: () => Promise<void>;
|
|
449
451
|
readonly focusPrevious: () => Promise<void>;
|
|
450
452
|
readonly focusPreviousPage: () => Promise<void>;
|
|
453
|
+
readonly handleContextMenu: (button: number, x: number, y: number) => Promise<void>;
|
|
454
|
+
readonly handleInputContextMenu: (name: string, button: number, x: number, y: number) => Promise<void>;
|
|
451
455
|
readonly handleInputCopy: (name: string) => Promise<void>;
|
|
452
456
|
readonly handleInputCut: (name: string) => Promise<void>;
|
|
453
457
|
readonly handleInputPaste: (name: string) => 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$4 = 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$4,
|
|
1636
1636
|
selectCurrent
|
|
1637
1637
|
};
|
|
1638
1638
|
|
|
@@ -1830,6 +1830,30 @@ const getEditorKey = async () => {
|
|
|
1830
1830
|
|
|
1831
1831
|
const Script = 2;
|
|
1832
1832
|
|
|
1833
|
+
const update$1 = settings => {
|
|
1834
|
+
// @ts-ignore
|
|
1835
|
+
return invoke$1('Preferences.update', settings);
|
|
1836
|
+
};
|
|
1837
|
+
const enableDiagnostics = () => {
|
|
1838
|
+
// @ts-ignore
|
|
1839
|
+
return invoke$1('Preferences.update', {
|
|
1840
|
+
'editor.diagnostics': true
|
|
1841
|
+
});
|
|
1842
|
+
};
|
|
1843
|
+
const disableDiagnostics = () => {
|
|
1844
|
+
// @ts-ignore
|
|
1845
|
+
return invoke$1('Preferences.update', {
|
|
1846
|
+
'editor.diagnostics': false
|
|
1847
|
+
});
|
|
1848
|
+
};
|
|
1849
|
+
|
|
1850
|
+
const Settings = {
|
|
1851
|
+
__proto__: null,
|
|
1852
|
+
disableDiagnostics,
|
|
1853
|
+
enableDiagnostics,
|
|
1854
|
+
update: update$1
|
|
1855
|
+
};
|
|
1856
|
+
|
|
1833
1857
|
const setCursor = async (rowIndex, columnIndex) => {
|
|
1834
1858
|
await invoke$1('Editor.cursorSet', rowIndex, columnIndex);
|
|
1835
1859
|
};
|
|
@@ -2042,6 +2066,16 @@ const shouldHaveDiagnostics = async expectedDiagnostics => {
|
|
|
2042
2066
|
throw new Error(`Expected editor to have diagnostics ${stringifiedExpected} but was ${stringifiedActual}`);
|
|
2043
2067
|
}
|
|
2044
2068
|
};
|
|
2069
|
+
const enableCompletionsOnType = async () => {
|
|
2070
|
+
await update$1({
|
|
2071
|
+
'editor.completionsOnType': true
|
|
2072
|
+
});
|
|
2073
|
+
};
|
|
2074
|
+
const disableCompletionsOnType = async () => {
|
|
2075
|
+
await update$1({
|
|
2076
|
+
'editor.completionsOnType': true
|
|
2077
|
+
});
|
|
2078
|
+
};
|
|
2045
2079
|
|
|
2046
2080
|
const Editor = {
|
|
2047
2081
|
__proto__: null,
|
|
@@ -2064,6 +2098,8 @@ const Editor = {
|
|
|
2064
2098
|
cursorWordRight,
|
|
2065
2099
|
deleteAllLeft,
|
|
2066
2100
|
deleteAllRight,
|
|
2101
|
+
disableCompletionsOnType,
|
|
2102
|
+
enableCompletionsOnType,
|
|
2067
2103
|
executeTabCompletion,
|
|
2068
2104
|
findAllImplementations,
|
|
2069
2105
|
findAllReferences,
|
|
@@ -2484,7 +2520,7 @@ const handleInput$4 = async value => {
|
|
|
2484
2520
|
// @ts-ignore
|
|
2485
2521
|
await invoke$1('Extensions.handleInput', value, Script$1);
|
|
2486
2522
|
};
|
|
2487
|
-
const handleContextMenu$
|
|
2523
|
+
const handleContextMenu$3 = async (button, x, y) => {
|
|
2488
2524
|
// @ts-ignore
|
|
2489
2525
|
await invoke$1('Extensions.handleContextMenu', button, x, y);
|
|
2490
2526
|
};
|
|
@@ -2506,7 +2542,7 @@ const ExtensionSearch = {
|
|
|
2506
2542
|
clearSearchResults: clearSearchResults$1,
|
|
2507
2543
|
copyExtensionId,
|
|
2508
2544
|
copyExtensionInfo,
|
|
2509
|
-
handleContextMenu: handleContextMenu$
|
|
2545
|
+
handleContextMenu: handleContextMenu$3,
|
|
2510
2546
|
handleInput: handleInput$4,
|
|
2511
2547
|
open: open$4
|
|
2512
2548
|
};
|
|
@@ -2867,7 +2903,7 @@ const sortByPrecedence = () => {
|
|
|
2867
2903
|
const stopRecordingKeys = () => {
|
|
2868
2904
|
return invoke$1('KeyBindings.stopRecordingKeys');
|
|
2869
2905
|
};
|
|
2870
|
-
const handleContextMenu$
|
|
2906
|
+
const handleContextMenu$2 = (button, x, y) => {
|
|
2871
2907
|
return invoke$1('KeyBindings.handleContextMenu', button, x, y);
|
|
2872
2908
|
};
|
|
2873
2909
|
const copyCommandId = () => {
|
|
@@ -2905,7 +2941,7 @@ const KeyBindingsEditor = {
|
|
|
2905
2941
|
focusNext: focusNext$4,
|
|
2906
2942
|
focusPrevious: focusPrevious$4,
|
|
2907
2943
|
handleClick,
|
|
2908
|
-
handleContextMenu: handleContextMenu$
|
|
2944
|
+
handleContextMenu: handleContextMenu$2,
|
|
2909
2945
|
handleDoubleClick,
|
|
2910
2946
|
handleInput: handleInput$3,
|
|
2911
2947
|
handleWheel: handleWheel$1,
|
|
@@ -3416,6 +3452,14 @@ const handleInputSelectionChange = async (name, start, end) => {
|
|
|
3416
3452
|
// @ts-ignore
|
|
3417
3453
|
await invoke$1('Search.handleInputSelectionChange', name, start, end);
|
|
3418
3454
|
};
|
|
3455
|
+
const handleInputContextMenu = async (name, button, x, y) => {
|
|
3456
|
+
// @ts-ignore
|
|
3457
|
+
await invoke$1('Search.handleInputConextMenu', name, button, x, y);
|
|
3458
|
+
};
|
|
3459
|
+
const handleContextMenu$1 = async (button, x, y) => {
|
|
3460
|
+
// @ts-ignore
|
|
3461
|
+
await invoke$1('Search.handleContextMenu', name, button, x, y);
|
|
3462
|
+
};
|
|
3419
3463
|
|
|
3420
3464
|
const Search = {
|
|
3421
3465
|
__proto__: null,
|
|
@@ -3431,6 +3475,8 @@ const Search = {
|
|
|
3431
3475
|
focusNextPage,
|
|
3432
3476
|
focusPrevious: focusPrevious$1,
|
|
3433
3477
|
focusPreviousPage,
|
|
3478
|
+
handleContextMenu: handleContextMenu$1,
|
|
3479
|
+
handleInputContextMenu,
|
|
3434
3480
|
handleInputCopy,
|
|
3435
3481
|
handleInputCut,
|
|
3436
3482
|
handleInputPaste,
|
|
@@ -3454,30 +3500,6 @@ const Search = {
|
|
|
3454
3500
|
toggleUseRegularExpression
|
|
3455
3501
|
};
|
|
3456
3502
|
|
|
3457
|
-
const update$1 = settings => {
|
|
3458
|
-
// @ts-ignore
|
|
3459
|
-
return invoke$1('Preferences.update', settings);
|
|
3460
|
-
};
|
|
3461
|
-
const enableDiagnostics = () => {
|
|
3462
|
-
// @ts-ignore
|
|
3463
|
-
return invoke$1('Preferences.update', {
|
|
3464
|
-
'editor.diagnostics': true
|
|
3465
|
-
});
|
|
3466
|
-
};
|
|
3467
|
-
const disableDiagnostics = () => {
|
|
3468
|
-
// @ts-ignore
|
|
3469
|
-
return invoke$1('Preferences.update', {
|
|
3470
|
-
'editor.diagnostics': false
|
|
3471
|
-
});
|
|
3472
|
-
};
|
|
3473
|
-
|
|
3474
|
-
const Settings = {
|
|
3475
|
-
__proto__: null,
|
|
3476
|
-
disableDiagnostics,
|
|
3477
|
-
enableDiagnostics,
|
|
3478
|
-
update: update$1
|
|
3479
|
-
};
|
|
3480
|
-
|
|
3481
3503
|
const show$1 = async () => {
|
|
3482
3504
|
return invoke$1('Main.openUri', 'settings://');
|
|
3483
3505
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/test-worker",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.6.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.35.0"
|
|
15
15
|
},
|
|
16
16
|
"types": "dist/api.d.ts"
|
|
17
17
|
}
|