Skip to content

What is the difference between matchLines in previewOptions and surroundingContext? #223324

@alexr00

Description

@alexr00

Testing #223154

export interface FindTextInFilesOptionsNew {
		...
		/**
		 * Options to specify the size of the result text preview.
		 */
		previewOptions?: {
			/**
			 * The maximum number of lines in the preview.
			 * Only search providers that support multiline search will ever return more than one line in the match.
			 */
			matchLines?: number;
...
		};

		/**
		 * Number of lines of context to include before and after each match.
		 */
		surroundingContext?: number;
	}

I don't understand the difference by reading the API doc. previewOptions sounds like it should be about the preview, not the match, but then it has a property called matchLines.

Metadata

Metadata

Assignees

Labels

insiders-releasedPatch has been released in VS Code InsiderspolishCleanup and polish issuesearchSearch widget and operation issuessearch-api

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions