Protected ReadonlycodeProtectedcurrentProtectedcurrentProtected ReadonlymatcherProtectedmatchesProtectedobserverProtectedregexpProtectedregistryProtectedrootProtectedscheduledProtected Static ReadonlyCODE_Protected Static ReadonlyCODE_Monaco's own find decorations, so code parts look the same as a match of the editor find widget.
Static ReadonlyCURRENT_Static ReadonlyMATCH_ProtectedapplyProtectedclearRemoves the decorations of editors that no longer show a match, e.g. because their row was unmounted.
ProtectedcollectOne Range per occurrence of regexp in the text of element, with its offsets in that text.
ProtectedcreateProtecteddecorateDecorates the matches of a code part in its editor; match offsets are offsets into the code the editor shows.
the current match's target when it is one of matches.
Dispose this object.
ProtectedfindThe editor of a code part, once it has been created.
ProtectedfindThe element rendering the text a match was found in, or undefined when its row is not mounted.
ProtectedfindThe mounted row rendering the tree node nodeId, if any.
ProtectedfindThe first scroll container between from and root, inclusive; never anything outside root.
ProtectedfindThe element holding exactly the text the matcher searched for a part: an error part searches only its message.
ProtectedgetThe element showing the current match and its vertical extent in viewport coordinates, if it is mounted.
ProtectedgroupMatches grouped by the element that renders them, so each element is scanned once.
ProtectedinitProtectedlocateMap an offset in the concatenated text to a text node and offset inside it (end offsets stay in the preceding node).
ProtectedobserveRe-applies the current highlights, e.g. after a scroll mounted new rows.
ProtectedscheduleScrolls the current match into view within the chat tree's own scroll container.
Deliberately does not use Element.scrollIntoView(): that scrolls every scrollable ancestor up to the
viewport, which shifts the whole application shell. Only the first scroll container between the match
and root is moved, and only when the match is not already visible.
Highlights the given matches under root and marks current; an undefined regexp clears.
Highlights find matches in the mounted rows of the chat tree: text with the CSS Custom Highlight API, code parts with decorations in their editor.
Only the content the matcher actually searched is highlighted: the elements to scan are derived from the match list, so content the matcher skips (tool calls, reasoning, delegated sub-chats) is never highlighted even though it renders inside the same row. While active, DOM mutations under the root (virtuoso mounting rows, streamed content) re-apply the highlights on the next animation frame.