MCPcopy Create free account
hub / github.com/cursorless-dev/cursorless / selectionWithEditorFromRange

Function selectionWithEditorFromRange

src/util/selectionUtils.ts:27–32  ·  view source on GitHub ↗
(
  selection: SelectionWithEditor,
  range: Range
)

Source from the content-addressed store, hash-verified

25}
26
27export function selectionWithEditorFromRange(
28 selection: SelectionWithEditor,
29 range: Range
30): SelectionWithEditor {
31 return selectionWithEditorFromPositions(selection, range.start, range.end);
32}
33
34export function selectionWithEditorFromPositions(
35 selection: SelectionWithEditor,

Callers 3

matcherIncludeSiblingsFunction · 0.90
processDocumentFunction · 0.90

Calls 1

Tested by

no test coverage detected