( targets: TypedSelection[], func: (editor: TextEditor, selections: TypedSelection[]) => Promise<T> )
| 37 | } |
| 38 | |
| 39 | export async function runOnTargetsForEachEditor<T>( |
| 40 | targets: TypedSelection[], |
| 41 | func: (editor: TextEditor, selections: TypedSelection[]) => Promise<T> |
| 42 | ): Promise<T[]> { |
| 43 | return runForEachEditor(targets, (target) => target.selection.editor, func); |
| 44 | } |
| 45 | |
| 46 | /** Get the possible leading and trailing overflow ranges of the outside target compared to the inside target */ |
| 47 | export function getOutsideOverflow( |
no test coverage detected