@lvce-editor/test-worker 13.2.0 → 13.4.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 +13 -0
- package/dist/testWorkerMain.js +52 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -162,6 +162,7 @@ interface Dialog {
|
|
|
162
162
|
|
|
163
163
|
interface Editor {
|
|
164
164
|
readonly addAllMissingImports: () => Promise<void>;
|
|
165
|
+
readonly cancelSelection: () => Promise<void>;
|
|
165
166
|
readonly closeColorPicker: () => Promise<void>;
|
|
166
167
|
readonly closeCompletion: () => Promise<void>;
|
|
167
168
|
readonly closeCompletionDetails: () => Promise<void>;
|
|
@@ -181,6 +182,13 @@ interface Editor {
|
|
|
181
182
|
readonly deleteAll: () => Promise<void>;
|
|
182
183
|
readonly deleteAllLeft: () => Promise<void>;
|
|
183
184
|
readonly deleteAllRight: () => Promise<void>;
|
|
185
|
+
readonly deleteCharacterLeft: () => Promise<void>;
|
|
186
|
+
readonly deleteCharacterRight: () => Promise<void>;
|
|
187
|
+
readonly deleteHorizontalRight: () => Promise<void>;
|
|
188
|
+
readonly deleteWordLeft: () => Promise<void>;
|
|
189
|
+
readonly deleteWordPartLeft: () => Promise<void>;
|
|
190
|
+
readonly deleteWordPartRight: () => Promise<void>;
|
|
191
|
+
readonly deleteWordRight: () => Promise<void>;
|
|
184
192
|
readonly disableCompletionsOnType: () => Promise<void>;
|
|
185
193
|
readonly disableDiagnostics: () => Promise<void>;
|
|
186
194
|
readonly enableCompletionsOnType: () => Promise<void>;
|
|
@@ -215,7 +223,12 @@ interface Editor {
|
|
|
215
223
|
readonly selectAllLeft: () => Promise<void>;
|
|
216
224
|
readonly selectAllOccurrences: () => Promise<void>;
|
|
217
225
|
readonly selectAllRight: () => Promise<void>;
|
|
226
|
+
readonly selectCharacterLeft: () => Promise<void>;
|
|
227
|
+
readonly selectCharacterRight: () => Promise<void>;
|
|
218
228
|
readonly selectDown: () => Promise<void>;
|
|
229
|
+
readonly selectLine: () => Promise<void>;
|
|
230
|
+
readonly selectNextOccurrence: () => Promise<void>;
|
|
231
|
+
readonly selectPreviousOccurrence: () => Promise<void>;
|
|
219
232
|
readonly selectUp: () => Promise<void>;
|
|
220
233
|
readonly selectionGrow: () => Promise<void>;
|
|
221
234
|
readonly setCursor: (rowIndex: number, columnIndex: number) => Promise<void>;
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1897,6 +1897,9 @@ const Settings = {
|
|
|
1897
1897
|
const setCursor = async (rowIndex, columnIndex) => {
|
|
1898
1898
|
await invoke('Editor.cursorSet', rowIndex, columnIndex);
|
|
1899
1899
|
};
|
|
1900
|
+
const cancelSelection = async () => {
|
|
1901
|
+
await invoke('Editor.cancelSelection');
|
|
1902
|
+
};
|
|
1900
1903
|
const openCompletion = async () => {
|
|
1901
1904
|
await invoke('Editor.openCompletion');
|
|
1902
1905
|
};
|
|
@@ -1930,6 +1933,9 @@ const cursorDown = async () => {
|
|
|
1930
1933
|
const selectDown$1 = async () => {
|
|
1931
1934
|
await invoke('Editor.selectDown');
|
|
1932
1935
|
};
|
|
1936
|
+
const selectLine = async () => {
|
|
1937
|
+
await invoke('Editor.selectLine');
|
|
1938
|
+
};
|
|
1933
1939
|
const selectAllLeft = async () => {
|
|
1934
1940
|
await invoke('Editor.selectAllLeft');
|
|
1935
1941
|
};
|
|
@@ -1957,6 +1963,33 @@ const setText = async text => {
|
|
|
1957
1963
|
const deleteAll = async () => {
|
|
1958
1964
|
await invoke('Editor.deleteAll');
|
|
1959
1965
|
};
|
|
1966
|
+
const selectCharacterLeft = async () => {
|
|
1967
|
+
await invoke('Editor.selectCharacterLeft');
|
|
1968
|
+
};
|
|
1969
|
+
const selectCharacterRight = async () => {
|
|
1970
|
+
await invoke('Editor.selectCharacterRight');
|
|
1971
|
+
};
|
|
1972
|
+
const deleteCharacterLeft = async () => {
|
|
1973
|
+
await invoke('Editor.deleteCharacterLeft');
|
|
1974
|
+
};
|
|
1975
|
+
const deleteWordPartRight = async () => {
|
|
1976
|
+
await invoke('Editor.deleteWordPartRight');
|
|
1977
|
+
};
|
|
1978
|
+
const deleteWordRight = async () => {
|
|
1979
|
+
await invoke('Editor.deleteWordRight');
|
|
1980
|
+
};
|
|
1981
|
+
const deleteWordPartLeft = async () => {
|
|
1982
|
+
await invoke('Editor.deleteWordPartLeft');
|
|
1983
|
+
};
|
|
1984
|
+
const deleteWordLeft = async () => {
|
|
1985
|
+
await invoke('Editor.deleteWordLeft');
|
|
1986
|
+
};
|
|
1987
|
+
const deleteHorizontalRight = async () => {
|
|
1988
|
+
await invoke('Editor.deleteHorizontalRight');
|
|
1989
|
+
};
|
|
1990
|
+
const deleteCharacterRight = async () => {
|
|
1991
|
+
await invoke('Editor.deleteCharacterRight');
|
|
1992
|
+
};
|
|
1960
1993
|
const cursorWordRight = async () => {
|
|
1961
1994
|
await invoke('Editor.cursorWordRight');
|
|
1962
1995
|
};
|
|
@@ -1981,6 +2014,12 @@ const findAllImplementations = async () => {
|
|
|
1981
2014
|
const setSelections = async selections => {
|
|
1982
2015
|
await invoke('Editor.setSelections', selections);
|
|
1983
2016
|
};
|
|
2017
|
+
const selectNextOccurrence = async () => {
|
|
2018
|
+
await invoke('Editor.selectNextOccurrence');
|
|
2019
|
+
};
|
|
2020
|
+
const selectPreviousOccurrence = async () => {
|
|
2021
|
+
await invoke('Editor.selectPreviousOccurrence');
|
|
2022
|
+
};
|
|
1984
2023
|
const openFindWidget = async () => {
|
|
1985
2024
|
await invoke('Editor.openFind');
|
|
1986
2025
|
};
|
|
@@ -2144,6 +2183,7 @@ const disableDiagnostics = async () => {
|
|
|
2144
2183
|
|
|
2145
2184
|
const Editor = {
|
|
2146
2185
|
addAllMissingImports,
|
|
2186
|
+
cancelSelection,
|
|
2147
2187
|
closeColorPicker,
|
|
2148
2188
|
closeCompletion,
|
|
2149
2189
|
closeCompletionDetails,
|
|
@@ -2163,6 +2203,13 @@ const Editor = {
|
|
|
2163
2203
|
deleteAll,
|
|
2164
2204
|
deleteAllLeft,
|
|
2165
2205
|
deleteAllRight,
|
|
2206
|
+
deleteCharacterLeft,
|
|
2207
|
+
deleteCharacterRight,
|
|
2208
|
+
deleteHorizontalRight,
|
|
2209
|
+
deleteWordLeft,
|
|
2210
|
+
deleteWordPartLeft,
|
|
2211
|
+
deleteWordPartRight,
|
|
2212
|
+
deleteWordRight,
|
|
2166
2213
|
disableCompletionsOnType,
|
|
2167
2214
|
disableDiagnostics,
|
|
2168
2215
|
enableCompletionsOnType,
|
|
@@ -2197,7 +2244,12 @@ const Editor = {
|
|
|
2197
2244
|
selectAllLeft,
|
|
2198
2245
|
selectAllOccurrences,
|
|
2199
2246
|
selectAllRight,
|
|
2247
|
+
selectCharacterLeft,
|
|
2248
|
+
selectCharacterRight,
|
|
2200
2249
|
selectDown: selectDown$1,
|
|
2250
|
+
selectLine,
|
|
2251
|
+
selectNextOccurrence,
|
|
2252
|
+
selectPreviousOccurrence,
|
|
2201
2253
|
selectUp: selectUp$1,
|
|
2202
2254
|
selectionGrow,
|
|
2203
2255
|
setCursor,
|