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

Function selectionFromRange

src/util/selectionUtils.ts:5–10  ·  view source on GitHub ↗
(
  selection: Selection,
  range: Range
)

Source from the content-addressed store, hash-verified

3import { TypedSelection, SelectionWithEditor } from "../typings/Types";
4
5export function selectionFromRange(
6 selection: Selection,
7 range: Range
8): Selection {
9 return selectionFromPositions(selection, range.start, range.end);
10}
11
12export function selectionFromPositions(
13 selection: Selection,

Callers 1

Calls 1

selectionFromPositionsFunction · 0.85

Tested by

no test coverage detected