Skip to content

Commit

Permalink
#57186 - add API comments
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Aug 25, 2018
1 parent 8f130e0 commit 3d28155
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion src/vs/vscode.proposed.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,23 @@ declare module 'vscode' {
followSymlinks: boolean;
}

/**
* Options to specify the size of the result text preview.
*/
export interface TextSearchPreviewOptions {
/**
* The maximum number of lines in the preview.
*/
maxLines: number;

/**
* The maximum number of characters included before the start of the match.
*/
leadingChars: number;

/**
* The maximum number of characters included per line.
*/
totalChars: number;
}

Expand All @@ -92,6 +106,9 @@ declare module 'vscode' {
*/
maxResults: number;

/**
* Options to specify the size of the result text preview.
*/
previewOptions?: TextSearchPreviewOptions;

/**
Expand Down Expand Up @@ -131,6 +148,9 @@ declare module 'vscode' {
*/
export interface FileIndexOptions extends SearchOptions { }

/**
* A preview of the text result.
*/
export interface TextSearchResultPreview {
/**
* The matching line of text, or a portion of the matching line that contains the match.
Expand Down Expand Up @@ -159,7 +179,7 @@ declare module 'vscode' {
range: Range;

/**
* A preview of the matching line
* A preview of the text result.
*/
preview: TextSearchResultPreview;
}
Expand Down Expand Up @@ -261,6 +281,9 @@ declare module 'vscode' {
*/
encoding?: string;

/**
* Options to specify the size of the result text preview.
*/
previewOptions?: TextSearchPreviewOptions;
}

Expand Down

0 comments on commit 3d28155

Please sign in to comment.