@lvce-editor/test-worker 4.37.0 → 4.39.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
@@ -84,7 +84,10 @@ declare const getText: () => Promise<string>;
84
84
  declare const rename: () => Promise<void>;
85
85
  declare const showHover: () => Promise<void>;
86
86
  declare const openRename: () => Promise<void>;
87
+ declare const growSelection: () => Promise<void>;
88
+ declare const getSelections: () => Promise<Uint32Array>;
87
89
  declare const shouldHaveText: (expectedText: string) => Promise<void>;
90
+ declare const shouldHaveSelections: (expectedSelections: Uint32Array) => Promise<void>;
88
91
  declare const selectIndex: (index: number) => Promise<void>;
89
92
  declare const selectCurrentIndex: () => Promise<void>;
90
93
  declare const openContextMenu$1: (index: number) => Promise<void>;
@@ -139,7 +142,7 @@ declare const openJsonValidation: () => Promise<void>;
139
142
  declare const openSettings: () => Promise<void>;
140
143
  declare const handleScroll: (scrollTop: number) => Promise<void>;
141
144
  declare const writeFile: (uri: string, content: string) => Promise<void>;
142
- declare const readFile: (uri: string) => Promise<void>;
145
+ declare const readFile: (uri: string) => Promise<string>;
143
146
  declare const mkdir: (uri: string) => Promise<void>;
144
147
  declare const remove: (uri: string) => Promise<void>;
145
148
  declare const getTmpDir: ({ scheme }?: {
@@ -321,7 +324,7 @@ declare namespace Dialog {
321
324
  export { executeMock, mockSaveFilePicker, showSaveFilePicker };
322
325
  }
323
326
  declare namespace Editor {
324
- export { addAllMissingImports, closeColorPicker, closeCompletion, closeCompletionDetails, copy, copyLineDown, copyLineUp, cursorCharacterLeft, cursorCharacterRight, cursorDown, cursorEnd, cursorHome, cursorUp, cursorWordLeft, cursorWordPartLeft, cursorWordPartRight, cursorWordRight, deleteAllLeft, deleteAllRight, executeTabCompletion, findAllImplementations, findAllReferences, format, getText, goToDefinition, goToTypeDefinition, insertLineBreak, invokeBraceCompletion, invokeTabCompletion, openColorPicker, openCompletion, openCompletionDetails, openContextMenu, openEditorContextMenu, openFind, openFindWidget, openHover, openRename, openSourceActions, organizeImports, rename, selectAll, setCursor, setDeltaY, setSelections, shouldHaveText, showHover, sortImports, sourceActionsSelectCurrent, toggleBlockComment, toggleCompletionDetails, toggleLineComment, type };
327
+ 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, rename, selectAll, setCursor, setDeltaY, setSelections, shouldHaveSelections, shouldHaveText, showHover, sortImports, sourceActionsSelectCurrent, toggleBlockComment, toggleCompletionDetails, toggleLineComment, type };
325
328
  }
326
329
  declare namespace EditorCompletion {
327
330
  export { selectCurrentIndex, selectIndex };