Skip to content

Type Editor


Type Editor / @type-editor/search / get-match-highlights / getMatchHighlights

Function: getMatchHighlights()

ts
function getMatchHighlights(state): DecorationSet;

Defined in: get-match-highlights.ts:15

Access the decoration set holding the currently highlighted search matches in the document.

Parameters

ParameterTypeDescription
statePmEditorStateThe editor state to retrieve decorations from

Returns

DecorationSet

A decoration set containing all highlighted search matches