Skip to content

Text search results in API should return all matches on one line in a single result object #59919

@roblourens

Description

@roblourens

We would change match to matches and range to ranges

/**
 * A preview of the text result.
 */
export interface TextSearchResultPreview {
	/**
	 * The Range within `text` corresponding to the text of the match.
	 */
	matches: Range[];
}

/**
 * A match from a text search
 */
export interface TextSearchLineMatch {
	/**
	 * The range of the match within the document.
	 */
	ranges: Range[];
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions