@lvce-editor/test-worker 10.5.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 +2 -0
- package/dist/testWorkerMain.js +36 -24
- 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>;
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -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,
|
|
@@ -3464,30 +3500,6 @@ const Search = {
|
|
|
3464
3500
|
toggleUseRegularExpression
|
|
3465
3501
|
};
|
|
3466
3502
|
|
|
3467
|
-
const update$1 = settings => {
|
|
3468
|
-
// @ts-ignore
|
|
3469
|
-
return invoke$1('Preferences.update', settings);
|
|
3470
|
-
};
|
|
3471
|
-
const enableDiagnostics = () => {
|
|
3472
|
-
// @ts-ignore
|
|
3473
|
-
return invoke$1('Preferences.update', {
|
|
3474
|
-
'editor.diagnostics': true
|
|
3475
|
-
});
|
|
3476
|
-
};
|
|
3477
|
-
const disableDiagnostics = () => {
|
|
3478
|
-
// @ts-ignore
|
|
3479
|
-
return invoke$1('Preferences.update', {
|
|
3480
|
-
'editor.diagnostics': false
|
|
3481
|
-
});
|
|
3482
|
-
};
|
|
3483
|
-
|
|
3484
|
-
const Settings = {
|
|
3485
|
-
__proto__: null,
|
|
3486
|
-
disableDiagnostics,
|
|
3487
|
-
enableDiagnostics,
|
|
3488
|
-
update: update$1
|
|
3489
|
-
};
|
|
3490
|
-
|
|
3491
3503
|
const show$1 = async () => {
|
|
3492
3504
|
return invoke$1('Main.openUri', 'settings://');
|
|
3493
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
|
}
|