( selection: SelectionWithEditor, start: Position, end: Position )
| 32 | } |
| 33 | |
| 34 | export function selectionWithEditorFromPositions( |
| 35 | selection: SelectionWithEditor, |
| 36 | start: Position, |
| 37 | end: Position |
| 38 | ): SelectionWithEditor { |
| 39 | return { |
| 40 | editor: selection.editor, |
| 41 | selection: selectionFromPositions(selection.selection, start, end), |
| 42 | }; |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * Returns a copy of the given typed selection so that the new selection has the new given range |
no test coverage detected