MCPcopy Create free account
hub / github.com/sql-js/sql.js / extendSelection

Function extendSelection

GUI/codemirror/lib/codemirror.js:1082–1084  ·  view source on GitHub ↗
(doc, head, other, options)

Source from the content-addressed store, hash-verified

1080
1081 // Extend the primary selection range, discard the rest.
1082 function extendSelection(doc, head, other, options) {
1083 setSelection(doc, new Selection([extendRange(doc, doc.sel.primary(), head, other)], 0), options);
1084 }
1085
1086 // Extend all selections (pos is an array of selections with length
1087 // equal the number of selections)

Callers 4

registerEventHandlersFunction · 0.85
onMouseDownFunction · 0.85
leftButtonStartDragFunction · 0.85
codemirror.jsFile · 0.85

Calls 2

setSelectionFunction · 0.85
extendRangeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…