Skip to content

commentThreadIdsInSelection

function commentThreadIdsInSelection(doc, selection): string[];

Defined in: comments/doc.ts:94

Thread ids whose highlighted range intersects the current selection. For a collapsed caret this is “the thread(s) under the cursor”; for a range it is every thread the range overlaps. Order follows document order.

ParameterType
docDocumentNode
selectionSelection

string[]