@lvce-editor/test-worker 5.20.0 → 6.1.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 CHANGED
@@ -1,506 +1,522 @@
1
- // Generated by dts-bundle-generator v9.5.1
2
-
3
- declare const show: () => Promise<void>;
4
- declare const handleClickOk: () => Promise<void>;
5
- declare const handleClickClose: () => Promise<void>;
6
- declare const handleClickCopy: () => Promise<void>;
7
- declare const focusNext: () => Promise<void>;
8
- declare const focusPrevious: () => Promise<void>;
9
- declare const focus: () => Promise<void>;
10
- declare const focusFirst: () => Promise<void>;
11
- declare const focusLast: () => Promise<void>;
12
- declare const focusNext$1: () => Promise<void>;
13
- declare const focusPrevious$1: () => Promise<void>;
14
- declare const handleClick: (index: number) => Promise<void>;
15
- declare const handleContextMenu: () => Promise<void>;
16
- declare const selectCurrent: () => Promise<void>;
17
- declare const getBaseUrl: () => string;
18
- declare const readNativeFiles: () => Promise<void>;
19
- declare const writeNativeFiles: (uris: readonly string[]) => Promise<void>;
20
- declare const enableMemoryClipBoard: () => Promise<void>;
21
- declare const disableMemoryClipBoard: () => Promise<void>;
22
- declare const shouldHaveText: (expectedText: string | RegExp) => Promise<void>;
23
- declare const execute: (id: string, ...args: readonly any[]) => Promise<any>;
24
- declare const selectItem: (text: string) => Promise<void>;
25
- declare const openIframeInspector: () => Promise<void>;
26
- declare const openCacheFolder: () => Promise<void>;
27
- declare const openConfigFolder: () => Promise<void>;
28
- declare const openLogsFolder: () => Promise<void>;
29
- declare const openProcessExplorer: () => Promise<void>;
30
- declare const reloadColorTheme: () => Promise<void>;
31
- declare const reloadIconTheme: () => Promise<void>;
32
- declare const toggleDeveloperTools: () => Promise<void>;
33
- declare const showSaveFilePicker: () => Promise<void>;
34
- declare const mockSaveFilePicker: (fn: () => string) => Promise<void>;
35
- declare const mockConfirm: (fn: () => boolean) => Promise<void>;
36
- declare const executeMock: (id: number, ...args: readonly any[]) => string;
37
- declare const setCursor: (rowIndex: number, columnIndex: number) => Promise<void>;
38
- declare const openCompletion: () => Promise<void>;
39
- declare const closeCompletion: () => Promise<void>;
40
- declare const openEditorContextMenu: () => Promise<void>;
41
- declare const invokeTabCompletion: () => Promise<void>;
42
- declare const executeTabCompletion: () => Promise<void>;
43
- declare const invokeBraceCompletion: (text: string) => Promise<void>;
44
- declare const cursorCharacterRight: () => Promise<void>;
45
- declare const cursorCharacterLeft: () => Promise<void>;
46
- declare const copyLineDown: () => Promise<void>;
47
- declare const cursorDown: () => Promise<void>;
48
- declare const cursorUp: () => Promise<void>;
49
- declare const cursorWordLeft: () => Promise<void>;
50
- declare const cursorWordRight: () => Promise<void>;
51
- declare const goToDefinition: () => Promise<void>;
52
- declare const openHover: () => Promise<void>;
53
- declare const goToTypeDefinition: () => Promise<void>;
54
- declare const type: (text: string) => Promise<void>;
55
- declare const findAllReferences: () => Promise<void>;
56
- declare const findAllImplementations: () => Promise<void>;
57
- declare const setSelections: (selections: any) => Promise<void>;
58
- declare const openFindWidget: () => Promise<void>;
59
- declare const setDeltaY: (deltaY: number) => Promise<void>;
60
- declare const format: () => Promise<void>;
61
- declare const insertLineBreak: () => Promise<void>;
62
- declare const openSourceActions: () => Promise<void>;
63
- declare const sourceActionsSelectCurrent: () => Promise<void>;
64
- declare const openCompletionDetails: () => Promise<void>;
65
- declare const closeCompletionDetails: () => Promise<void>;
66
- declare const toggleCompletionDetails: () => Promise<void>;
67
- declare const organizeImports: () => Promise<void>;
68
- declare const addAllMissingImports: () => Promise<void>;
69
- declare const sortImports: () => Promise<void>;
70
- declare const toggleLineComment: () => Promise<void>;
71
- declare const toggleBlockComment: () => Promise<void>;
72
- declare const selectAll: () => Promise<void>;
73
- declare const openColorPicker: () => Promise<void>;
74
- declare const openFind: () => Promise<void>;
75
- declare const deleteAllLeft: () => Promise<void>;
76
- declare const deleteAllRight: () => Promise<void>;
77
- declare const cursorWordPartLeft: () => Promise<void>;
78
- declare const cursorWordPartRight: () => Promise<void>;
79
- declare const cursorEnd: () => Promise<void>;
80
- declare const cursorHome: () => Promise<void>;
81
- declare const copyLineUp: () => Promise<void>;
82
- declare const copy: () => Promise<void>;
83
- declare const closeColorPicker: () => Promise<void>;
84
- declare const openContextMenu: () => Promise<void>;
85
- declare const getText: () => Promise<string>;
86
- declare const rename: () => Promise<void>;
87
- declare const showHover: () => Promise<void>;
88
- declare const openRename: () => Promise<void>;
89
- declare const rename2: (newName: string) => Promise<void>;
90
- declare const growSelection: () => Promise<void>;
91
- declare const getSelections: () => Promise<Uint32Array>;
92
- declare const shouldHaveText$1: (expectedText: string) => Promise<void>;
93
- declare const shouldHaveSelections: (expectedSelections: Uint32Array) => Promise<void>;
94
- declare const undo: () => Promise<void>;
95
- declare const redo: () => Promise<void>;
96
- declare const selectIndex: (index: number) => Promise<void>;
97
- declare const selectCurrentIndex: () => Promise<void>;
98
- declare const close$1: () => Promise<void>;
99
- declare const handleWheel: (deltaMode: number, deltaY: number) => Promise<void>;
100
- declare const show$1: () => Promise<void>;
101
- declare const close$1: () => Promise<void>;
102
- declare const selectIndex$1: (index: number) => Promise<void>;
103
- declare const selectCurrentIndex$1: () => Promise<void>;
104
- declare const openContextMenu$1: (index: number) => Promise<void>;
105
- declare const handleDragLeave: () => Promise<void>;
106
- declare const handleBlur: () => Promise<void>;
107
- declare const handleInputBlur: () => Promise<void>;
108
- declare const focus$1: () => Promise<void>;
109
- declare const focusNext$2: () => Promise<void>;
110
- declare const selectUp: () => Promise<void>;
111
- declare const handleDragOverIndex: (index: number) => Promise<void>;
112
- declare const selectDown: () => Promise<void>;
113
- declare const collapseAll: () => Promise<void>;
114
- declare const refresh: () => Promise<void>;
115
- declare const focusIndex: (index: number) => Promise<void>;
116
- declare const clickCurrent: () => Promise<void>;
117
- declare const handleArrowLeft: () => Promise<void>;
118
- declare const focusLast$1: () => Promise<void>;
119
- declare const focusFirst$1: () => Promise<void>;
120
- declare const removeDirent: () => Promise<void>;
121
- declare const expandRecursively: () => Promise<void>;
122
- declare const newFile: () => Promise<void>;
123
- declare const newFolder: () => Promise<void>;
124
- declare const handleClick$1: (index: number) => Promise<void>;
125
- declare const handleClickAt: (preventDefault: boolean, button: number, ctrlKey: boolean, shiftKey: boolean, x: number, y: number) => Promise<void>;
126
- declare const handleDrop: (x: number, y: number, fileIds: readonly number[], fileList: FileList | readonly File[]) => Promise<void>;
127
- declare const rename$1: () => Promise<void>;
128
- declare const selectAll$1: () => Promise<void>;
129
- declare const renameDirent: () => Promise<void>;
130
- declare const cancelEdit: () => Promise<void>;
131
- declare const acceptEdit: () => Promise<void>;
132
- declare const updateEditingValue: (value: string) => Promise<void>;
133
- declare const expandAll: () => Promise<void>;
134
- declare const handleDragOver: (x: number, y: number) => Promise<void>;
135
- declare const handleCut: () => Promise<void>;
136
- declare const handleCopy: () => Promise<void>;
137
- declare const handlePaste: () => Promise<void>;
138
- declare const selectIndices: (indices: readonly number[]) => Promise<void>;
139
- declare const toggleIndividualSelection: (index: number) => Promise<void>;
140
- declare const addWebExtension: (relativePath: string) => Promise<void>;
141
- declare const addNodeExtension: (relativePath: string) => Promise<void>;
142
- declare const handleClickCategory: (categoryId: string) => Promise<void>;
143
- declare const handleClickEnable: () => Promise<void>;
144
- declare const handleClickDisable: () => Promise<void>;
145
- declare const handleClickSetColorTheme: () => Promise<void>;
146
- declare const selectFeature: (name: string) => Promise<void>;
147
- declare const selectTab: (name: string) => Promise<void>;
148
- declare const selectDetails: () => Promise<void>;
149
- declare const selectFeatures: () => Promise<void>;
150
- declare const selectChangelog: () => Promise<void>;
151
- declare const open: (extensionId: string) => Promise<void>;
152
- declare const openFeature: (featureName: string) => Promise<void>;
153
- declare const openThemes: () => Promise<void>;
154
- declare const openCommands: () => Promise<void>;
155
- declare const openWebViews: () => Promise<void>;
156
- declare const openRuntimeStatus: () => Promise<void>;
157
- declare const openJsonValidation: () => Promise<void>;
158
- declare const openSettings: () => Promise<void>;
159
- declare const handleScroll: (scrollTop: number) => Promise<void>;
1
+
2
+ interface LocatorClickOptions {
3
+ readonly button?: string;
4
+ }
5
+ interface ILocatorExternal {
6
+ readonly click: (options: LocatorClickOptions) => Promise<void>;
7
+ readonly hover: () => Promise<void>;
8
+ readonly first: () => ILocatorExternal;
9
+ readonly locator: (subSelector: string) => ILocatorExternal;
10
+ readonly nth: (nth: number) => ILocatorExternal;
11
+ readonly type: (text: string) => Promise<void>;
12
+ readonly dispatchEvent: (type: string, init: string) => Promise<void>;
13
+ }
14
+ interface LocatorConstructor {
15
+ (selector: string, option?: any): ILocatorExternal
16
+ }
17
+
18
+
160
19
  export interface DroppedFileHandle {
161
20
  readonly id: number;
162
21
  readonly file: File;
163
22
  }
164
- declare const writeFile: (uri: string, content: string) => Promise<void>;
165
- declare const writeJson: (uri: string, data: any) => Promise<void>;
166
- declare const readFile: (uri: string) => Promise<string>;
167
- declare const mkdir: (uri: string) => Promise<void>;
168
- declare const remove: (uri: string) => Promise<void>;
169
- declare const getTmpDir: ({ scheme }?: {
23
+
24
+ export interface FileSystemTmpDirOptions {
170
25
  readonly scheme?: string;
171
- }) => Promise<string>;
172
- declare const chmod: (uri: string, permissions: any) => Promise<void>;
173
- declare const createExecutable: (content: string) => Promise<string>;
174
- declare const createExecutableFrom: (uri: string) => Promise<string>;
175
- declare const createDroppedFileHandle: () => Promise<DroppedFileHandle>;
176
- declare const focusNext$3: () => Promise<void>;
177
- declare const focusPrevious$2: () => Promise<void>;
178
- declare const close$2: () => Promise<void>;
179
- declare const setReplaceValue: (value: string) => Promise<void>;
180
- declare const setValue: (value: string) => Promise<void>;
181
- declare const toggleReplace: () => Promise<void>;
182
- declare const toggleMatchCase: () => Promise<void>;
183
- declare const toggleMatchWholeWord: () => Promise<void>;
184
- declare const togglePreserveCase: () => Promise<void>;
185
- declare const toggleUseRegularExpression: () => Promise<void>;
186
- declare const replace: () => Promise<void>;
187
- declare const replaceAll: () => Promise<void>;
188
- declare const focusElement: (whenExpression: number) => Promise<void>;
189
- declare const focusNextElement: () => Promise<void>;
190
- declare const focusPreviousElement: () => Promise<void>;
191
- declare const setIconTheme: (id: string) => Promise<void>;
192
- declare const selectIndex$2: (index: number) => Promise<void>;
193
- declare const focusNext$4: () => Promise<void>;
194
- declare const focusPrevious$3: () => Promise<void>;
195
- declare const focusFirst$2: () => Promise<void>;
196
- declare const focusLast$2: () => Promise<void>;
197
- declare const open$1: () => Promise<void>;
198
- declare const handleInput: (value: string) => Promise<void>;
199
- declare const handleClick$2: (x: number, y: number) => Promise<void>;
200
- declare const handleWheel$1: (deltaMode: number, deltaY: number) => Promise<void>;
201
- declare const handleDoubleClick: (x: number, y: number) => Promise<void>;
202
- declare const focusNext$5: () => Promise<void>;
203
- declare const focusPrevious$4: () => Promise<void>;
204
- declare const focusFirst$3: () => Promise<void>;
205
- declare const focusIndex$1: (index: number) => Promise<void>;
206
- declare const focusLast$3: () => Promise<void>;
207
- declare const toggleRecordingKeys: () => Promise<void>;
208
- declare const startRecordingKeys: () => Promise<void>;
209
- declare const clearInput: () => Promise<void>;
210
- declare const sortByPrecedence: () => Promise<void>;
211
- declare const stopRecordingKeys: () => Promise<void>;
212
- declare const handleContextMenu$1: (button: number, x: number, y: number) => Promise<void>;
213
- declare const copyCommandId: () => Promise<void>;
214
- declare const copyCommandTitle: () => Promise<void>;
215
- declare const addKeyBinding: () => Promise<void>;
216
- declare const removeKeyBinding: () => Promise<void>;
217
- declare const changeWhenExpression: () => Promise<void>;
218
- declare const showSameKeyBindings: () => Promise<void>;
219
- declare const resetKeyBinding: () => Promise<void>;
220
- declare const press: (key: string) => Promise<void>;
221
- declare const openUri: (uri: string) => Promise<void>;
222
- declare const splitRight: () => Promise<void>;
223
- declare const openKeyBindings: () => Promise<void>;
224
- declare const closeAllEditors: () => Promise<void>;
225
- declare const closeTabsLeft: () => Promise<void>;
226
- declare const closeTabsRight: () => Promise<void>;
227
- declare const closeOthers: () => Promise<void>;
228
- declare const closeActiveEditor: () => Promise<void>;
229
- declare const focusFirst$4: () => Promise<void>;
230
- declare const focusNext$6: () => Promise<void>;
231
- declare const focusPrevious$5: () => Promise<void>;
232
- declare const focusLast$4: () => Promise<void>;
233
- declare const show$2: () => Promise<void>;
234
- declare const handleFilterInput: (text: string) => Promise<void>;
235
- declare const selectChannel: (channelId: string) => Promise<void>;
236
- declare const clear: () => Promise<void>;
237
- declare const open$2: (id: string) => Promise<void>;
238
- declare const openProblems: () => Promise<void>;
239
- declare const getNodePath: () => Promise<string>;
240
- declare const isFirefox: () => boolean;
241
- declare const show$3: () => Promise<void>;
242
- declare const handleFilterInput$1: (text: string) => Promise<void>;
243
- declare const copyMessage: () => Promise<void>;
244
- declare const focusIndex$2: (index: number) => Promise<void>;
245
- declare const handleArrowLeft$1: () => Promise<void>;
246
- declare const handleArrowRight: () => Promise<void>;
247
- declare const handleClickAt$1: (x: number, y: number) => Promise<void>;
248
- declare const handleIconThemeChange: () => Promise<void>;
249
- declare const viewAsList: () => Promise<void>;
250
- declare const viewAsTable: () => Promise<void>;
251
- declare const open$3: () => Promise<void>;
252
- declare const handleInput$1: (value: string) => Promise<void>;
253
- declare const handleClickAt$2: (x: number, y: number) => Promise<void>;
254
- declare const setValue$1: (value: string) => Promise<void>;
255
- declare const focusNext$7: () => Promise<void>;
256
- declare const focusFirst$5: () => Promise<void>;
257
- declare const focusLast$5: () => Promise<void>;
258
- declare const focusIndex$3: (index: number) => Promise<void>;
259
- declare const focusPrevious$6: () => Promise<void>;
260
- declare const selectItem$1: (label: string) => Promise<void>;
261
- declare const selectIndex$3: (index: number) => Promise<void>;
262
- declare const selectCurrentIndex$2: () => Promise<void>;
263
- declare const executeCommand: (label: string) => Promise<void>;
264
- declare const clear$1: () => Promise<void>;
265
- declare const collapseAll$1: () => Promise<void>;
266
- declare const refresh$1: () => Promise<void>;
267
- declare const handleClickSectionWatch: () => Promise<void>;
268
- declare const addWatchExpression: (expression: string) => Promise<void>;
269
- declare const handleWatchValueChange: () => Promise<void>;
270
- declare const acceptWatchExpressionEdit: () => Promise<void>;
271
- declare const selectIndex$4: (index: number) => Promise<void>;
272
- declare const setPauseOnExceptions: (value: number) => Promise<void>;
273
- declare const handleRename: () => Promise<void>;
274
- declare const handleSpace: () => Promise<void>;
275
- declare const setValue$2: (value: string) => Promise<void>;
276
- declare const setReplaceValue$1: (value: string) => Promise<void>;
277
- declare const setExcludeValue: (value: string) => Promise<void>;
278
- declare const replaceAll$1: () => Promise<void>;
279
- declare const setIncludeValue: (value: string) => Promise<void>;
280
- declare const clearSearchResults: () => Promise<void>;
281
- declare const openDetails: () => Promise<void>;
282
- declare const collapseDetails: () => Promise<void>;
283
- declare const dismissItem: () => Promise<void>;
284
- declare const focusFirst$6: () => Promise<void>;
285
- declare const focusIndex$4: (index: number) => Promise<void>;
286
- declare const selectIndex$5: (index: number) => Promise<void>;
287
- declare const focusNext$8: () => Promise<void>;
288
- declare const handleWheel$2: (deltaMode: number, deltaY: number) => Promise<void>;
289
- declare const focusNextPage: () => Promise<void>;
290
- declare const focusPreviousPage: () => Promise<void>;
291
- declare const focusPrevious$7: () => Promise<void>;
292
- declare const toggleSearchDetails: () => Promise<void>;
293
- declare const toggleMatchCase$1: () => Promise<void>;
294
- declare const toggleMatchWholeWord$1: () => Promise<void>;
295
- declare const togglePreserveCase$1: () => Promise<void>;
296
- declare const toggleUseRegularExpression$1: () => Promise<void>;
297
- declare const toggleReplace$1: () => Promise<void>;
298
- declare const open$4: () => Promise<void>;
299
- declare const setLimit: (limit: number) => Promise<void>;
300
- declare const update: (settings: any) => Promise<void>;
301
- declare const show$4: () => Promise<void>;
302
- declare const handleInput$2: (searchValue: string) => Promise<void>;
303
- declare const usePreviousSearchValue: () => Promise<void>;
304
- declare const useNextSearchValue: () => Promise<void>;
305
- declare const clear$2: (searchValue: string) => Promise<void>;
306
- declare const selectTab$1: (tabId: string) => Promise<void>;
307
- declare const selectWorkspace: () => Promise<void>;
308
- declare const selectTextEditor: () => Promise<void>;
309
- declare const selectExtensions: () => Promise<void>;
310
- declare const handleScroll$1: (scrollTop: number) => Promise<void>;
311
- declare const open$5: (id: string) => Promise<void>;
312
- declare const hide: () => Promise<void>;
313
- declare const selectIndex$6: (index: number) => Promise<void>;
314
- declare const acceptInput: () => Promise<void>;
315
- declare const handleInput$3: (text: string) => Promise<void>;
316
- declare const handleClickSourceControlButtons: (index: number, name: string) => Promise<void>;
317
- declare const update$1: () => Promise<void>;
318
- declare const closeMenu: () => Promise<void>;
319
- declare const focus$2: () => Promise<void>;
320
- declare const focusFirst$7: () => Promise<void>;
321
- declare const focusIndex$5: (index: number) => Promise<void>;
322
- declare const focusLast$6: () => Promise<void>;
323
- declare const focusNext$9: () => Promise<void>;
324
- declare const focusPrevious$8: () => Promise<void>;
325
- declare const handleKeyArrowDown: () => Promise<void>;
326
- declare const handleKeyArrowLeft: () => Promise<void>;
327
- declare const handleKeyArrowRight: () => Promise<void>;
328
- declare const handleKeyArrowUp: () => Promise<void>;
329
- declare const handleKeyEnd: () => Promise<void>;
330
- declare const handleKeyHome: () => Promise<void>;
331
- declare const handleKeySpace: () => Promise<void>;
332
- declare const handleKeyEscape: () => Promise<void>;
333
- declare const toggleIndex: (index: number) => Promise<void>;
334
- declare const toggleMenu: () => Promise<void>;
335
- declare const setUrl: (newUrl: string) => void;
336
- declare const resolve: (relativePath: string) => string;
337
- declare const fromId: (webViewId: string) => Promise<any>;
338
- declare const setPath: (path: string) => Promise<void>;
339
- declare const openTmpDir: () => Promise<string>;
340
-
341
- declare namespace Workspace {
342
- export { openTmpDir, setPath };
343
- }
344
- declare namespace About {
345
- export { focusNext, focusPrevious, handleClickClose, handleClickCopy, handleClickOk, show };
346
- }
347
- declare namespace ActivityBar {
348
- export { focus, focusFirst, focusLast, focusNext$1 as focusNext, focusPrevious$1 as focusPrevious, handleClick, handleContextMenu, selectCurrent };
349
- }
350
- declare namespace BaseUrl {
351
- export { getBaseUrl };
352
- }
353
- declare namespace ClipBoard {
354
- export { disableMemoryClipBoard, enableMemoryClipBoard, readNativeFiles, shouldHaveText, writeNativeFiles };
355
- }
356
- declare namespace Command {
357
- export { execute };
358
- }
359
- declare namespace ContextMenu {
360
- export { selectItem };
361
- }
362
- declare namespace Developer {
363
- export { openCacheFolder, openConfigFolder, openIframeInspector, openLogsFolder, openProcessExplorer, reloadColorTheme, reloadIconTheme, toggleDeveloperTools };
364
- }
365
- declare namespace Dialog {
366
- export { executeMock, mockConfirm, mockSaveFilePicker, showSaveFilePicker };
367
- }
368
- declare namespace Editor {
369
- export { addAllMissingImports, closeColorPicker, closeCompletion, closeCompletionDetails, copy, copyLineDown, copyLineUp, cursorCharacterLeft, cursorCharacterRight, cursorDown, cursorEnd, cursorHome, cursorUp, cursorWordLeft, cursorWordPartLeft, cursorWordPartRight, cursorWordRight, deleteAllLeft, deleteAllRight, executeTabCompletion, findAllImplementations, findAllReferences, format, getSelections, getText, goToDefinition, goToTypeDefinition, growSelection, insertLineBreak, invokeBraceCompletion, invokeTabCompletion, openColorPicker, openCompletion, openCompletionDetails, openContextMenu, openEditorContextMenu, openFind, openFindWidget, openHover, openRename, openSourceActions, organizeImports, redo, rename, rename2, selectAll, setCursor, setDeltaY, setSelections, shouldHaveSelections, shouldHaveText$1 as shouldHaveText, showHover, sortImports, sourceActionsSelectCurrent, toggleBlockComment, toggleCompletionDetails, toggleLineComment, type, undo };
370
- }
371
- declare namespace EditorCompletion {
372
- export { close$1 as close, handleWheel, selectCurrentIndex, selectIndex };
373
- }
374
- declare namespace EditorHover {
375
- export { close$1 as close, show$1 as show };
376
- }
377
- declare namespace EditorSourceAction {
378
- export { selectCurrentIndex$1 as selectCurrentIndex, selectIndex$1 as selectIndex };
379
- }
380
- declare namespace Explorer {
381
- export { acceptEdit, cancelEdit, clickCurrent, collapseAll, expandAll, expandRecursively, focus$1 as focus, focusFirst$1 as focusFirst, focusIndex, focusLast$1 as focusLast, focusNext$2 as focusNext, handleArrowLeft, handleBlur, handleClick$1 as handleClick, handleClickAt, handleCopy, handleCut, handleDragLeave, handleDragOver, handleDragOverIndex, handleDrop, handleInputBlur, handlePaste, newFile, newFolder, openContextMenu$1 as openContextMenu, refresh, removeDirent, rename$1 as rename, renameDirent, selectAll$1 as selectAll, selectDown, selectIndices, selectUp, toggleIndividualSelection, updateEditingValue };
382
- }
383
- declare namespace Extension {
384
- export { addNodeExtension, addWebExtension };
385
- }
386
- declare namespace ExtensionDetail {
387
- export { handleClickCategory, handleClickDisable, handleClickEnable, handleClickSetColorTheme, handleScroll, open, openCommands, openFeature, openJsonValidation, openRuntimeStatus, openSettings, openThemes, openWebViews, selectChangelog, selectDetails, selectFeature, selectFeatures, selectTab };
388
- }
389
- declare namespace FileSystem {
390
- export { chmod, createDroppedFileHandle, createExecutable, createExecutableFrom, getTmpDir, mkdir, readFile, remove, writeFile, writeJson };
391
- }
392
- declare namespace FindWidget {
393
- export { close$2 as close, focusElement, focusNext$3 as focusNext, focusNextElement, focusPrevious$2 as focusPrevious, focusPreviousElement, replace, replaceAll, setReplaceValue, setValue, toggleMatchCase, toggleMatchWholeWord, togglePreserveCase, toggleReplace, toggleUseRegularExpression };
394
26
  }
395
- declare namespace IconTheme {
396
- export { setIconTheme };
27
+
28
+ interface Workspace {
29
+ readonly openTmpDir: () => Promise<string>;
30
+ readonly setPath: (path: string) => Promise<void>;
397
31
  }
398
- declare namespace IframeInspector {
399
- export { focusFirst$2 as focusFirst, focusLast$2 as focusLast, focusNext$4 as focusNext, focusPrevious$3 as focusPrevious, selectIndex$2 as selectIndex };
32
+
33
+ interface About {
34
+ readonly focusNext: () => Promise<void>;
35
+ readonly focusPrevious: () => Promise<void>;
36
+ readonly handleClickClose: () => Promise<void>;
37
+ readonly handleClickCopy: () => Promise<void>;
38
+ readonly handleClickOk: () => Promise<void>;
39
+ readonly show: () => Promise<void>;
400
40
  }
401
- declare namespace KeyBindingsEditor {
402
- export { addKeyBinding, changeWhenExpression, clearInput, copyCommandId, copyCommandTitle, focusFirst$3 as focusFirst, focusIndex$1 as focusIndex, focusLast$3 as focusLast, focusNext$5 as focusNext, focusPrevious$4 as focusPrevious, handleClick$2 as handleClick, handleContextMenu$1 as handleContextMenu, handleDoubleClick, handleInput, handleWheel$1 as handleWheel, open$1 as open, removeKeyBinding, resetKeyBinding, showSameKeyBindings, sortByPrecedence, startRecordingKeys, stopRecordingKeys, toggleRecordingKeys };
41
+
42
+ interface ActivityBar {
43
+ readonly focus: () => Promise<void>;
44
+ readonly focusFirst: () => Promise<void>;
45
+ readonly focusLast: () => Promise<void>;
46
+ readonly focusNext: () => Promise<void>;
47
+ readonly focusPrevious: () => Promise<void>;
48
+ readonly handleClick: (index: number) => Promise<void>;
49
+ readonly handleContextMenu: () => Promise<void>;
50
+ readonly selectCurrent: () => Promise<void>;
403
51
  }
404
- declare namespace KeyBoard {
405
- export { press };
52
+
53
+ interface BaseUrl {
54
+ readonly getBaseUrl: () => string;
406
55
  }
407
- declare namespace Main {
408
- export { closeActiveEditor, closeAllEditors, closeOthers, closeTabsLeft, closeTabsRight, focusFirst$4 as focusFirst, focusLast$4 as focusLast, focusNext$6 as focusNext, focusPrevious$5 as focusPrevious, openKeyBindings, openUri, splitRight };
56
+
57
+ interface ClipBoard {
58
+ readonly disableMemoryClipBoard: () => Promise<void>;
59
+ readonly enableMemoryClipBoard: () => Promise<void>;
60
+ readonly readNativeFiles: () => Promise<void>;
61
+ readonly shouldHaveText: (expectedText: string | RegExp) => Promise<void>;
62
+ readonly writeNativeFiles: (uris: readonly string[]) => Promise<void>;
409
63
  }
410
- declare namespace Output {
411
- export { clear, handleFilterInput, selectChannel, show$2 as show };
64
+
65
+ interface Command {
66
+ readonly execute: (id: string, ...args: readonly any[]) => Promise<any>;
412
67
  }
413
- declare namespace Panel {
414
- export { open$2 as open, openProblems };
68
+
69
+ interface ContextMenu {
70
+ readonly selectItem: (text: string) => Promise<void>;
415
71
  }
416
- declare namespace Platform {
417
- export { getNodePath, isFirefox };
72
+
73
+ interface Developer {
74
+ readonly openCacheFolder: () => Promise<void>;
75
+ readonly openConfigFolder: () => Promise<void>;
76
+ readonly openIframeInspector: () => Promise<void>;
77
+ readonly openLogsFolder: () => Promise<void>;
78
+ readonly openProcessExplorer: () => Promise<void>;
79
+ readonly reloadColorTheme: () => Promise<void>;
80
+ readonly reloadIconTheme: () => Promise<void>;
81
+ readonly toggleDeveloperTools: () => Promise<void>;
418
82
  }
419
- declare namespace Problems {
420
- export { copyMessage, focusIndex$2 as focusIndex, handleArrowLeft$1 as handleArrowLeft, handleArrowRight, handleClickAt$1 as handleClickAt, handleFilterInput$1 as handleFilterInput, handleIconThemeChange, show$3 as show, viewAsList, viewAsTable };
83
+
84
+ interface Dialog {
85
+ readonly executeMock: (id: number, ...args: readonly any[]) => string;
86
+ readonly mockConfirm: (fn: () => boolean) => Promise<void>;
87
+ readonly mockSaveFilePicker: (fn: () => string) => Promise<void>;
88
+ readonly showSaveFilePicker: () => Promise<void>;
421
89
  }
422
- declare namespace QuickPick {
423
- export { executeCommand, focusFirst$5 as focusFirst, focusIndex$3 as focusIndex, focusLast$5 as focusLast, focusNext$7 as focusNext, focusPrevious$6 as focusPrevious, handleClickAt$2 as handleClickAt, handleInput$1 as handleInput, open$3 as open, selectCurrentIndex$2 as selectCurrentIndex, selectIndex$3 as selectIndex, selectItem$1 as selectItem, setValue$1 as setValue };
90
+
91
+ interface Editor {
92
+ readonly addAllMissingImports: () => Promise<void>;
93
+ readonly closeColorPicker: () => Promise<void>;
94
+ readonly closeCompletion: () => Promise<void>;
95
+ readonly closeCompletionDetails: () => Promise<void>;
96
+ readonly copy: () => Promise<void>;
97
+ readonly copyLineDown: () => Promise<void>;
98
+ readonly copyLineUp: () => Promise<void>;
99
+ readonly cursorCharacterLeft: () => Promise<void>;
100
+ readonly cursorCharacterRight: () => Promise<void>;
101
+ readonly cursorDown: () => Promise<void>;
102
+ readonly cursorEnd: () => Promise<void>;
103
+ readonly cursorHome: () => Promise<void>;
104
+ readonly cursorUp: () => Promise<void>;
105
+ readonly cursorWordLeft: () => Promise<void>;
106
+ readonly cursorWordPartLeft: () => Promise<void>;
107
+ readonly cursorWordPartRight: () => Promise<void>;
108
+ readonly cursorWordRight: () => Promise<void>;
109
+ readonly deleteAllLeft: () => Promise<void>;
110
+ readonly deleteAllRight: () => Promise<void>;
111
+ readonly executeTabCompletion: () => Promise<void>;
112
+ readonly findAllImplementations: () => Promise<void>;
113
+ readonly findAllReferences: () => Promise<void>;
114
+ readonly format: () => Promise<void>;
115
+ readonly getSelections: () => Promise<Uint32Array>;
116
+ readonly getText: () => Promise<string>;
117
+ readonly goToDefinition: () => Promise<void>;
118
+ readonly goToTypeDefinition: () => Promise<void>;
119
+ readonly growSelection: () => Promise<void>;
120
+ readonly insertLineBreak: () => Promise<void>;
121
+ readonly invokeBraceCompletion: (text: string) => Promise<void>;
122
+ readonly invokeTabCompletion: () => Promise<void>;
123
+ readonly openColorPicker: () => Promise<void>;
124
+ readonly openCompletion: () => Promise<void>;
125
+ readonly openCompletionDetails: () => Promise<void>;
126
+ readonly openContextMenu: () => Promise<void>;
127
+ readonly openEditorContextMenu: () => Promise<void>;
128
+ readonly openFind: () => Promise<void>;
129
+ readonly openFindWidget: () => Promise<void>;
130
+ readonly openHover: () => Promise<void>;
131
+ readonly openRename: () => Promise<void>;
132
+ readonly openSourceActions: () => Promise<void>;
133
+ readonly organizeImports: () => Promise<void>;
134
+ readonly redo: () => Promise<void>;
135
+ readonly rename: () => Promise<void>;
136
+ readonly rename2: (newName: string) => Promise<void>;
137
+ readonly selectAll: () => Promise<void>;
138
+ readonly setCursor: (rowIndex: number, columnIndex: number) => Promise<void>;
139
+ readonly setDeltaY: (deltaY: number) => Promise<void>;
140
+ readonly setSelections: (selections: any) => Promise<void>;
141
+ readonly shouldHaveSelections: (expectedSelections: Uint32Array) => Promise<void>;
142
+ readonly shouldHaveText: (expectedText: string) => Promise<void>;
143
+ readonly showHover: () => Promise<void>;
144
+ readonly sortImports: () => Promise<void>;
145
+ readonly sourceActionsSelectCurrent: () => Promise<void>;
146
+ readonly toggleBlockComment: () => Promise<void>;
147
+ readonly toggleCompletionDetails: () => Promise<void>;
148
+ readonly toggleLineComment: () => Promise<void>;
149
+ readonly type: (text: string) => Promise<void>;
150
+ readonly undo: () => Promise<void>;
424
151
  }
425
- declare namespace References {
426
- export { clear$1 as clear, collapseAll$1 as collapseAll, refresh$1 as refresh };
152
+
153
+ interface EditorCompletion {
154
+ readonly close: () => Promise<void>;
155
+ readonly handleWheel: (deltaMode: number, deltaY: number) => Promise<void>;
156
+ readonly selectCurrentIndex: () => Promise<void>;
157
+ readonly selectIndex: (index: number) => Promise<void>;
158
+ }
159
+
160
+ interface EditorHover {
161
+ readonly close: () => Promise<void>;
162
+ readonly show: () => Promise<void>;
163
+ }
164
+
165
+ interface EditorSourceAction {
166
+ readonly selectCurrentIndex: () => Promise<void>;
167
+ readonly selectIndex: (index: number) => Promise<void>;
427
168
  }
428
- declare namespace RunAndDebug {
429
- export { acceptWatchExpressionEdit, addWatchExpression, handleClickSectionWatch, handleRename, handleSpace, handleWatchValueChange, selectIndex$4 as selectIndex, setPauseOnExceptions };
169
+
170
+ interface Explorer {
171
+ readonly acceptEdit: () => Promise<void>;
172
+ readonly cancelEdit: () => Promise<void>;
173
+ readonly clickCurrent: () => Promise<void>;
174
+ readonly collapseAll: () => Promise<void>;
175
+ readonly expandAll: () => Promise<void>;
176
+ readonly expandRecursively: () => Promise<void>;
177
+ readonly focus: () => Promise<void>;
178
+ readonly focusFirst: () => Promise<void>;
179
+ readonly focusIndex: (index: number) => Promise<void>;
180
+ readonly focusLast: () => Promise<void>;
181
+ readonly focusNext: () => Promise<void>;
182
+ readonly handleArrowLeft: () => Promise<void>;
183
+ readonly handleBlur: () => Promise<void>;
184
+ readonly handleClick: (index: number) => Promise<void>;
185
+ readonly handleClickAt: (preventDefault: boolean, button: number, ctrlKey: boolean, shiftKey: boolean, x: number, y: number) => Promise<void>;
186
+ readonly handleCopy: () => Promise<void>;
187
+ readonly handleCut: () => Promise<void>;
188
+ readonly handleDragLeave: () => Promise<void>;
189
+ readonly handleDragOver: (x: number, y: number) => Promise<void>;
190
+ readonly handleDragOverIndex: (index: number) => Promise<void>;
191
+ readonly handleDrop: (x: number, y: number, fileIds: readonly number[], fileList: FileList | readonly File[]) => Promise<void>;
192
+ readonly handleInputBlur: () => Promise<void>;
193
+ readonly handlePaste: () => Promise<void>;
194
+ readonly newFile: () => Promise<void>;
195
+ readonly newFolder: () => Promise<void>;
196
+ readonly openContextMenu: (index: number) => Promise<void>;
197
+ readonly refresh: () => Promise<void>;
198
+ readonly removeDirent: () => Promise<void>;
199
+ readonly rename: () => Promise<void>;
200
+ readonly renameDirent: () => Promise<void>;
201
+ readonly selectAll: () => Promise<void>;
202
+ readonly selectDown: () => Promise<void>;
203
+ readonly selectIndices: (indices: readonly number[]) => Promise<void>;
204
+ readonly selectUp: () => Promise<void>;
205
+ readonly toggleIndividualSelection: (index: number) => Promise<void>;
206
+ readonly updateEditingValue: (value: string) => Promise<void>;
430
207
  }
431
- declare namespace Search {
432
- export { clearSearchResults, collapseDetails, dismissItem, focusFirst$6 as focusFirst, focusIndex$4 as focusIndex, focusNext$8 as focusNext, focusNextPage, focusPrevious$7 as focusPrevious, focusPreviousPage, handleWheel$2 as handleWheel, open$4 as open, openDetails, replaceAll$1 as replaceAll, selectIndex$5 as selectIndex, setExcludeValue, setIncludeValue, setLimit, setReplaceValue$1 as setReplaceValue, setValue$2 as setValue, toggleMatchCase$1 as toggleMatchCase, toggleMatchWholeWord$1 as toggleMatchWholeWord, togglePreserveCase$1 as togglePreserveCase, toggleReplace$1 as toggleReplace, toggleSearchDetails, toggleUseRegularExpression$1 as toggleUseRegularExpression };
208
+
209
+ interface Extension {
210
+ readonly addNodeExtension: (relativePath: string) => Promise<void>;
211
+ readonly addWebExtension: (relativePath: string) => Promise<void>;
433
212
  }
434
- declare namespace Settings {
435
- export { update };
213
+
214
+ interface ExtensionDetail {
215
+ readonly handleClickCategory: (categoryId: string) => Promise<void>;
216
+ readonly handleClickDisable: () => Promise<void>;
217
+ readonly handleClickEnable: () => Promise<void>;
218
+ readonly handleClickSetColorTheme: () => Promise<void>;
219
+ readonly handleScroll: (scrollTop: number) => Promise<void>;
220
+ readonly open: (extensionId: string) => Promise<void>;
221
+ readonly openCommands: () => Promise<void>;
222
+ readonly openFeature: (featureName: string) => Promise<void>;
223
+ readonly openJsonValidation: () => Promise<void>;
224
+ readonly openRuntimeStatus: () => Promise<void>;
225
+ readonly openSettings: () => Promise<void>;
226
+ readonly openThemes: () => Promise<void>;
227
+ readonly openWebViews: () => Promise<void>;
228
+ readonly selectChangelog: () => Promise<void>;
229
+ readonly selectDetails: () => Promise<void>;
230
+ readonly selectFeature: (name: string) => Promise<void>;
231
+ readonly selectFeatures: () => Promise<void>;
232
+ readonly selectTab: (name: string) => Promise<void>;
436
233
  }
437
- declare namespace SettingsView {
438
- export { clear$2 as clear, handleInput$2 as handleInput, handleScroll$1 as handleScroll, selectExtensions, selectTab$1 as selectTab, selectTextEditor, selectWorkspace, show$4 as show, useNextSearchValue, usePreviousSearchValue };
234
+
235
+ interface FileSystem {
236
+ readonly chmod: (uri: string, permissions: any) => Promise<void>;
237
+ readonly createDroppedFileHandle: () => Promise<DroppedFileHandle>;
238
+ readonly createExecutable: (content: string) => Promise<string>;
239
+ readonly createExecutableFrom: (uri: string) => Promise<string>;
240
+ readonly getTmpDir: ({ scheme }?: FileSystemTmpDirOptions) => Promise<string>;
241
+ readonly mkdir: (uri: string) => Promise<void>;
242
+ readonly readFile: (uri: string) => Promise<string>;
243
+ readonly remove: (uri: string) => Promise<void>;
244
+ readonly writeFile: (uri: string, content: string) => Promise<void>;
245
+ readonly writeJson: (uri: string, data: any) => Promise<void>;
439
246
  }
440
- declare namespace SideBar {
441
- export { hide, open$5 as open };
247
+
248
+ interface FindWidget {
249
+ readonly close: () => Promise<void>;
250
+ readonly focusElement: (whenExpression: number) => Promise<void>;
251
+ readonly focusNext: () => Promise<void>;
252
+ readonly focusNextElement: () => Promise<void>;
253
+ readonly focusPrevious: () => Promise<void>;
254
+ readonly focusPreviousElement: () => Promise<void>;
255
+ readonly replace: () => Promise<void>;
256
+ readonly replaceAll: () => Promise<void>;
257
+ readonly setReplaceValue: (value: string) => Promise<void>;
258
+ readonly setValue: (value: string) => Promise<void>;
259
+ readonly toggleMatchCase: () => Promise<void>;
260
+ readonly toggleMatchWholeWord: () => Promise<void>;
261
+ readonly togglePreserveCase: () => Promise<void>;
262
+ readonly toggleReplace: () => Promise<void>;
263
+ readonly toggleUseRegularExpression: () => Promise<void>;
442
264
  }
443
- declare namespace SourceControl {
444
- export { acceptInput, handleClickSourceControlButtons, handleInput$3 as handleInput, selectIndex$6 as selectIndex };
265
+
266
+ interface IconTheme {
267
+ readonly setIconTheme: (id: string) => Promise<void>;
445
268
  }
446
- declare namespace StatusBar {
447
- export { update$1 as update };
269
+
270
+ interface IframeInspector {
271
+ readonly focusFirst: () => Promise<void>;
272
+ readonly focusLast: () => Promise<void>;
273
+ readonly focusNext: () => Promise<void>;
274
+ readonly focusPrevious: () => Promise<void>;
275
+ readonly selectIndex: (index: number) => Promise<void>;
448
276
  }
449
- declare namespace TitleBarMenuBar {
450
- export { closeMenu, focus$2 as focus, focusFirst$7 as focusFirst, focusIndex$5 as focusIndex, focusLast$6 as focusLast, focusNext$9 as focusNext, focusPrevious$8 as focusPrevious, handleKeyArrowDown, handleKeyArrowLeft, handleKeyArrowRight, handleKeyArrowUp, handleKeyEnd, handleKeyEscape, handleKeyHome, handleKeySpace, toggleIndex, toggleMenu };
277
+
278
+ interface KeyBindingsEditor {
279
+ readonly addKeyBinding: () => Promise<void>;
280
+ readonly changeWhenExpression: () => Promise<void>;
281
+ readonly clearInput: () => Promise<void>;
282
+ readonly copyCommandId: () => Promise<void>;
283
+ readonly copyCommandTitle: () => Promise<void>;
284
+ readonly focusFirst: () => Promise<void>;
285
+ readonly focusIndex: (index: number) => Promise<void>;
286
+ readonly focusLast: () => Promise<void>;
287
+ readonly focusNext: () => Promise<void>;
288
+ readonly focusPrevious: () => Promise<void>;
289
+ readonly handleClick: (x: number, y: number) => Promise<void>;
290
+ readonly handleContextMenu: (button: number, x: number, y: number) => Promise<void>;
291
+ readonly handleDoubleClick: (x: number, y: number) => Promise<void>;
292
+ readonly handleInput: (value: string) => Promise<void>;
293
+ readonly handleWheel: (deltaMode: number, deltaY: number) => Promise<void>;
294
+ readonly open: () => Promise<void>;
295
+ readonly removeKeyBinding: () => Promise<void>;
296
+ readonly resetKeyBinding: () => Promise<void>;
297
+ readonly showSameKeyBindings: () => Promise<void>;
298
+ readonly sortByPrecedence: () => Promise<void>;
299
+ readonly startRecordingKeys: () => Promise<void>;
300
+ readonly stopRecordingKeys: () => Promise<void>;
301
+ readonly toggleRecordingKeys: () => Promise<void>;
451
302
  }
452
- declare namespace Url {
453
- export { resolve, setUrl };
303
+
304
+ interface KeyBoard {
305
+ readonly press: (key: string) => Promise<void>;
454
306
  }
455
- declare namespace WebView {
456
- export { fromId };
307
+
308
+ interface Main {
309
+ readonly closeActiveEditor: () => Promise<void>;
310
+ readonly closeAllEditors: () => Promise<void>;
311
+ readonly closeOthers: () => Promise<void>;
312
+ readonly closeTabsLeft: () => Promise<void>;
313
+ readonly closeTabsRight: () => Promise<void>;
314
+ readonly focusFirst: () => Promise<void>;
315
+ readonly focusLast: () => Promise<void>;
316
+ readonly focusNext: () => Promise<void>;
317
+ readonly focusPrevious: () => Promise<void>;
318
+ readonly openKeyBindings: () => Promise<void>;
319
+ readonly openUri: (uri: string) => Promise<void>;
320
+ readonly splitRight: () => Promise<void>;
321
+ }
322
+
323
+ interface Output {
324
+ readonly clear: () => Promise<void>;
325
+ readonly handleFilterInput: (text: string) => Promise<void>;
326
+ readonly selectChannel: (channelId: string) => Promise<void>;
327
+ readonly show: () => Promise<void>;
328
+ }
329
+
330
+ interface Panel {
331
+ readonly open: (id: string) => Promise<void>;
332
+ readonly openProblems: () => Promise<void>;
333
+ }
334
+
335
+ interface Platform {
336
+ readonly getNodePath: () => Promise<string>;
337
+ readonly isFirefox: () => boolean;
338
+ }
339
+
340
+ interface Problems {
341
+ readonly copyMessage: () => Promise<void>;
342
+ readonly focusIndex: (index: number) => Promise<void>;
343
+ readonly handleArrowLeft: () => Promise<void>;
344
+ readonly handleArrowRight: () => Promise<void>;
345
+ readonly handleClickAt: (x: number, y: number) => Promise<void>;
346
+ readonly handleFilterInput: (text: string) => Promise<void>;
347
+ readonly handleIconThemeChange: () => Promise<void>;
348
+ readonly show: () => Promise<void>;
349
+ readonly viewAsList: () => Promise<void>;
350
+ readonly viewAsTable: () => Promise<void>;
351
+ }
352
+
353
+ interface QuickPick {
354
+ readonly executeCommand: (label: string) => Promise<void>;
355
+ readonly focusFirst: () => Promise<void>;
356
+ readonly focusIndex: (index: number) => Promise<void>;
357
+ readonly focusLast: () => Promise<void>;
358
+ readonly focusNext: () => Promise<void>;
359
+ readonly focusPrevious: () => Promise<void>;
360
+ readonly handleClickAt: (x: number, y: number) => Promise<void>;
361
+ readonly handleInput: (value: string) => Promise<void>;
362
+ readonly open: () => Promise<void>;
363
+ readonly selectCurrentIndex: () => Promise<void>;
364
+ readonly selectIndex: (index: number) => Promise<void>;
365
+ readonly selectItem: (label: string) => Promise<void>;
366
+ readonly setValue: (value: string) => Promise<void>;
367
+ }
368
+
369
+ interface References {
370
+ readonly clear: () => Promise<void>;
371
+ readonly collapseAll: () => Promise<void>;
372
+ readonly refresh: () => Promise<void>;
373
+ }
374
+
375
+ interface RunAndDebug {
376
+ readonly acceptWatchExpressionEdit: () => Promise<void>;
377
+ readonly addWatchExpression: (expression: string) => Promise<void>;
378
+ readonly handleClickSectionWatch: () => Promise<void>;
379
+ readonly handleRename: () => Promise<void>;
380
+ readonly handleSpace: () => Promise<void>;
381
+ readonly handleWatchValueChange: () => Promise<void>;
382
+ readonly selectIndex: (index: number) => Promise<void>;
383
+ readonly setPauseOnExceptions: (value: number) => Promise<void>;
384
+ }
385
+
386
+ interface Search {
387
+ readonly clearSearchResults: () => Promise<void>;
388
+ readonly collapseDetails: () => Promise<void>;
389
+ readonly dismissItem: () => Promise<void>;
390
+ readonly focusFirst: () => Promise<void>;
391
+ readonly focusIndex: (index: number) => Promise<void>;
392
+ readonly focusNext: () => Promise<void>;
393
+ readonly focusNextPage: () => Promise<void>;
394
+ readonly focusPrevious: () => Promise<void>;
395
+ readonly focusPreviousPage: () => Promise<void>;
396
+ readonly handleWheel: (deltaMode: number, deltaY: number) => Promise<void>;
397
+ readonly open: () => Promise<void>;
398
+ readonly openDetails: () => Promise<void>;
399
+ readonly replaceAll: () => Promise<void>;
400
+ readonly selectIndex: (index: number) => Promise<void>;
401
+ readonly setExcludeValue: (value: string) => Promise<void>;
402
+ readonly setIncludeValue: (value: string) => Promise<void>;
403
+ readonly setLimit: (limit: number) => Promise<void>;
404
+ readonly setReplaceValue: (value: string) => Promise<void>;
405
+ readonly setValue: (value: string) => Promise<void>;
406
+ readonly toggleMatchCase: () => Promise<void>;
407
+ readonly toggleMatchWholeWord: () => Promise<void>;
408
+ readonly togglePreserveCase: () => Promise<void>;
409
+ readonly toggleReplace: () => Promise<void>;
410
+ readonly toggleSearchDetails: () => Promise<void>;
411
+ readonly toggleUseRegularExpression: () => Promise<void>;
412
+ }
413
+
414
+ interface Settings {
415
+ readonly update: (settings: any) => Promise<void>;
416
+ }
417
+
418
+ interface SettingsView {
419
+ readonly clear: (searchValue: string) => Promise<void>;
420
+ readonly handleInput: (searchValue: string) => Promise<void>;
421
+ readonly handleScroll: (scrollTop: number) => Promise<void>;
422
+ readonly selectExtensions: () => Promise<void>;
423
+ readonly selectTab: (tabId: string) => Promise<void>;
424
+ readonly selectTextEditor: () => Promise<void>;
425
+ readonly selectWorkspace: () => Promise<void>;
426
+ readonly show: () => Promise<void>;
427
+ readonly useNextSearchValue: () => Promise<void>;
428
+ readonly usePreviousSearchValue: () => Promise<void>;
429
+ }
430
+
431
+ interface SideBar {
432
+ readonly hide: () => Promise<void>;
433
+ readonly open: (id: string) => Promise<void>;
434
+ }
435
+
436
+ interface SourceControl {
437
+ readonly acceptInput: () => Promise<void>;
438
+ readonly handleClickSourceControlButtons: (index: number, name: string) => Promise<void>;
439
+ readonly handleInput: (text: string) => Promise<void>;
440
+ readonly selectIndex: (index: number) => Promise<void>;
441
+ }
442
+
443
+ interface StatusBar {
444
+ readonly update: () => Promise<void>;
445
+ }
446
+
447
+ interface TitleBarMenuBar {
448
+ readonly closeMenu: () => Promise<void>;
449
+ readonly focus: () => Promise<void>;
450
+ readonly focusFirst: () => Promise<void>;
451
+ readonly focusIndex: (index: number) => Promise<void>;
452
+ readonly focusLast: () => Promise<void>;
453
+ readonly focusNext: () => Promise<void>;
454
+ readonly focusPrevious: () => Promise<void>;
455
+ readonly handleKeyArrowDown: () => Promise<void>;
456
+ readonly handleKeyArrowLeft: () => Promise<void>;
457
+ readonly handleKeyArrowRight: () => Promise<void>;
458
+ readonly handleKeyArrowUp: () => Promise<void>;
459
+ readonly handleKeyEnd: () => Promise<void>;
460
+ readonly handleKeyEscape: () => Promise<void>;
461
+ readonly handleKeyHome: () => Promise<void>;
462
+ readonly handleKeySpace: () => Promise<void>;
463
+ readonly toggleIndex: (index: number) => Promise<void>;
464
+ readonly toggleMenu: () => Promise<void>;
465
+ }
466
+
467
+ interface Url {
468
+ readonly resolve: (relativePath: string) => string;
469
+ readonly setUrl: (newUrl: string) => void;
470
+ }
471
+
472
+ interface WebView {
473
+ readonly fromId: (webViewId: string) => Promise<any>;
457
474
  }
458
475
 
459
476
  export interface TestApi {
460
- readonly About: typeof About,
461
- readonly ActivityBar: typeof ActivityBar,
462
- readonly BaseUrl: typeof BaseUrl,
463
- readonly ClipBoard: typeof ClipBoard,
464
- readonly Command: typeof Command,
465
- readonly ContextMenu: typeof ContextMenu,
466
- readonly Developer: typeof Developer,
467
- readonly Dialog: typeof Dialog,
468
- readonly Editor: typeof Editor,
469
- readonly EditorCompletion: typeof EditorCompletion,
470
- readonly EditorHover: typeof EditorHover,
471
- readonly EditorSourceAction: typeof EditorSourceAction,
472
- readonly Explorer: typeof Explorer,
473
- readonly Extension: typeof Extension,
474
- readonly ExtensionDetail: typeof ExtensionDetail,
475
- readonly FileSystem: typeof FileSystem,
476
- readonly FindWidget: typeof FindWidget,
477
- readonly IconTheme: typeof IconTheme,
478
- readonly IframeInspector: typeof IframeInspector,
479
- readonly KeyBindingsEditor: typeof KeyBindingsEditor,
480
- readonly KeyBoard: typeof KeyBoard,
481
- readonly Main: typeof Main,
482
- readonly Output: typeof Output,
483
- readonly Panel: typeof Panel,
484
- readonly Platform: typeof Platform,
485
- readonly Problems: typeof Problems,
486
- readonly QuickPick: typeof QuickPick,
487
- readonly References: typeof References,
488
- readonly RunAndDebug: typeof RunAndDebug,
489
- readonly Search: typeof Search,
490
- readonly Settings: typeof Settings,
491
- readonly SettingsView: typeof SettingsView,
492
- readonly SideBar: typeof SideBar,
493
- readonly SourceControl: typeof SourceControl,
494
- readonly StatusBar: typeof StatusBar,
495
- readonly TitleBarMenuBar: typeof TitleBarMenuBar,
496
- readonly Url: typeof Url,
497
- readonly WebView: typeof WebView,
498
- readonly Workspace: typeof Workspace,
477
+ readonly Workspace: Workspace
478
+ readonly About: About
479
+ readonly ActivityBar: ActivityBar
480
+ readonly BaseUrl: BaseUrl
481
+ readonly ClipBoard: ClipBoard
482
+ readonly Command: Command
483
+ readonly ContextMenu: ContextMenu
484
+ readonly Developer: Developer
485
+ readonly Dialog: Dialog
486
+ readonly Editor: Editor
487
+ readonly EditorCompletion: EditorCompletion
488
+ readonly EditorHover: EditorHover
489
+ readonly EditorSourceAction: EditorSourceAction
490
+ readonly Explorer: Explorer
491
+ readonly Extension: Extension
492
+ readonly ExtensionDetail: ExtensionDetail
493
+ readonly FileSystem: FileSystem
494
+ readonly FindWidget: FindWidget
495
+ readonly IconTheme: IconTheme
496
+ readonly IframeInspector: IframeInspector
497
+ readonly KeyBindingsEditor: KeyBindingsEditor
498
+ readonly KeyBoard: KeyBoard
499
+ readonly Main: Main
500
+ readonly Output: Output
501
+ readonly Panel: Panel
502
+ readonly Platform: Platform
503
+ readonly Problems: Problems
504
+ readonly QuickPick: QuickPick
505
+ readonly References: References
506
+ readonly RunAndDebug: RunAndDebug
507
+ readonly Search: Search
508
+ readonly Settings: Settings
509
+ readonly SettingsView: SettingsView
510
+ readonly SideBar: SideBar
511
+ readonly SourceControl: SourceControl
512
+ readonly StatusBar: StatusBar
513
+ readonly TitleBarMenuBar: TitleBarMenuBar
514
+ readonly Url: Url
515
+ readonly WebView: WebView
499
516
  readonly expect: any
500
- readonly Locator: (selector: string, options?: any) => any
517
+ readonly Locator: (selector: string, option?: any) => ILocatorExternal
501
518
  }
502
519
 
503
520
  export interface Test {
504
521
  (api: TestApi): Promise<void>
505
522
  }
506
-
@@ -2571,7 +2571,7 @@ const createDroppedFileHandle = async () => {
2571
2571
  });
2572
2572
  const file = await fileHandle.getFile();
2573
2573
  // @ts-ignore
2574
- const id = await ParentRpc.invoke('FileSystemHandle.addFileHandle', fileHandle);
2574
+ const id = await invoke$1('FileSystemHandle.addFileHandle', fileHandle);
2575
2575
  return {
2576
2576
  file,
2577
2577
  id
@@ -2964,11 +2964,6 @@ const getIsFirefox = () => {
2964
2964
  return navigator.userAgent.toLowerCase().includes('firefox');
2965
2965
  };
2966
2966
 
2967
- /**
2968
- * @type {boolean}
2969
- */
2970
- const isFirefox$1 = getIsFirefox();
2971
-
2972
2967
  const getNodePath$1 = () => {
2973
2968
  // @ts-ignore
2974
2969
  return invoke$1(/* Platform.getNodePath */'Platform.getNodePath');
@@ -2978,7 +2973,7 @@ const getNodePath = () => {
2978
2973
  return getNodePath$1();
2979
2974
  };
2980
2975
  const isFirefox = () => {
2981
- return isFirefox$1;
2976
+ return getIsFirefox();
2982
2977
  };
2983
2978
 
2984
2979
  const TestFrameWorkComponentPlatform = {
@@ -3498,6 +3493,7 @@ const getPortTuple = () => {
3498
3493
  };
3499
3494
  };
3500
3495
 
3496
+ // TODO ask webview worker directly
3501
3497
  const getWebViewInfo = async webViewId => {
3502
3498
  const info = await invoke$1('WebView.getWebViewInfo2', webViewId);
3503
3499
  return info;
@@ -3517,7 +3513,7 @@ const waitForFirstEventEvent = async port => {
3517
3513
  return firstEvent;
3518
3514
  };
3519
3515
 
3520
- const createPortIpc = async webViewId => {
3516
+ const createPortRpc = async webViewId => {
3521
3517
  // TODO use transforpemssageportrpc
3522
3518
  const {
3523
3519
  port1,
@@ -3528,8 +3524,6 @@ const createPortIpc = async webViewId => {
3528
3524
  const info = await getWebViewInfo(webViewId);
3529
3525
  const portType = 'test';
3530
3526
  await setWebViewPort(info.uid, port2, info.origin, portType);
3531
-
3532
- // await SendPortToWebView.sendPortToWebView(webViewId, port2)
3533
3527
  const firstEvent = await firstEventPromise;
3534
3528
  if (firstEvent.data !== 'ready') {
3535
3529
  throw new Error('unexpected first message');
@@ -3543,7 +3537,7 @@ const createPortIpc = async webViewId => {
3543
3537
  };
3544
3538
 
3545
3539
  const fromId = async webViewId => {
3546
- const rpc = await createPortIpc(webViewId);
3540
+ const rpc = await createPortRpc(webViewId);
3547
3541
  set(webViewId, rpc);
3548
3542
  return {
3549
3543
  locator(selector, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "5.20.0",
3
+ "version": "6.1.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",