Type Editor / @type-editor/search / SearchState / SearchState
Class: SearchState
Defined in: SearchState.ts:11
Internal state for the search plugin, maintaining the current search query, optional search range, and decoration set for highlighting matches.
Constructors
Constructor
ts
new SearchState(
query,
range,
deco): SearchState;Defined in: SearchState.ts:23
Creates a new SearchState instance.
Parameters
| Parameter | Type | Description |
|---|---|---|
query | SearchQuery | The search query to use |
range | DocumentRange | Optional range to limit search scope |
deco | DecorationSet | Decoration set for highlighting matches |
Returns
SearchState
Accessors
deco
Get Signature
ts
get deco(): DecorationSet;Defined in: SearchState.ts:46
Gets the decoration set for highlighting matches.
Returns
DecorationSet
query
Get Signature
ts
get query(): SearchQuery;Defined in: SearchState.ts:32
Gets the current search query.
Returns
range
Get Signature
ts
get range(): DocumentRange;Defined in: SearchState.ts:39
Gets the current search range, if any.