@lvce-editor/test-worker 13.3.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 +11 -0
- package/dist/testWorkerMain.js +44 -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,10 @@ 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>;
|
|
219
230
|
readonly selectNextOccurrence: () => Promise<void>;
|
|
220
231
|
readonly selectPreviousOccurrence: () => Promise<void>;
|
|
221
232
|
readonly selectUp: () => 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
|
};
|
|
@@ -2150,6 +2183,7 @@ const disableDiagnostics = async () => {
|
|
|
2150
2183
|
|
|
2151
2184
|
const Editor = {
|
|
2152
2185
|
addAllMissingImports,
|
|
2186
|
+
cancelSelection,
|
|
2153
2187
|
closeColorPicker,
|
|
2154
2188
|
closeCompletion,
|
|
2155
2189
|
closeCompletionDetails,
|
|
@@ -2169,6 +2203,13 @@ const Editor = {
|
|
|
2169
2203
|
deleteAll,
|
|
2170
2204
|
deleteAllLeft,
|
|
2171
2205
|
deleteAllRight,
|
|
2206
|
+
deleteCharacterLeft,
|
|
2207
|
+
deleteCharacterRight,
|
|
2208
|
+
deleteHorizontalRight,
|
|
2209
|
+
deleteWordLeft,
|
|
2210
|
+
deleteWordPartLeft,
|
|
2211
|
+
deleteWordPartRight,
|
|
2212
|
+
deleteWordRight,
|
|
2172
2213
|
disableCompletionsOnType,
|
|
2173
2214
|
disableDiagnostics,
|
|
2174
2215
|
enableCompletionsOnType,
|
|
@@ -2203,7 +2244,10 @@ const Editor = {
|
|
|
2203
2244
|
selectAllLeft,
|
|
2204
2245
|
selectAllOccurrences,
|
|
2205
2246
|
selectAllRight,
|
|
2247
|
+
selectCharacterLeft,
|
|
2248
|
+
selectCharacterRight,
|
|
2206
2249
|
selectDown: selectDown$1,
|
|
2250
|
+
selectLine,
|
|
2207
2251
|
selectNextOccurrence,
|
|
2208
2252
|
selectPreviousOccurrence,
|
|
2209
2253
|
selectUp: selectUp$1,
|