highlightSelectionMatches
highlightSelectionMatches(
caseSensitive?,minLength?,maxLength?):SelectionMatchHighlighter
Defined in: extensions/search/selection.ts:28
Extension that highlights selection matches in an editor.
Parameters
Section titled “Parameters”caseSensitive?
Section titled “caseSensitive?”boolean
Whether or not matches must have the same case. Defaults to false.
minLength?
Section titled “minLength?”number = 1
Minimum length needed to perform a search. Defaults to 1.
maxLength?
Section titled “maxLength?”number = 200
Maximum length at which to perform a search. Defaults to 200.
Lower values of minLength and higher values of maxLength can impact performance.
The CSS-selector .selection-matches span can be used to style the matches.