mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
#57186 - add API comments
This commit is contained in:
Vendored
+24
-1
@@ -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;
|
||||
}
|
||||
|
||||
@@ -92,6 +106,9 @@ declare module 'vscode' {
|
||||
*/
|
||||
maxResults: number;
|
||||
|
||||
/**
|
||||
* Options to specify the size of the result text preview.
|
||||
*/
|
||||
previewOptions?: TextSearchPreviewOptions;
|
||||
|
||||
/**
|
||||
@@ -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.
|
||||
@@ -159,7 +179,7 @@ declare module 'vscode' {
|
||||
range: Range;
|
||||
|
||||
/**
|
||||
* A preview of the matching line
|
||||
* A preview of the text result.
|
||||
*/
|
||||
preview: TextSearchResultPreview;
|
||||
}
|
||||
@@ -261,6 +281,9 @@ declare module 'vscode' {
|
||||
*/
|
||||
encoding?: string;
|
||||
|
||||
/**
|
||||
* Options to specify the size of the result text preview.
|
||||
*/
|
||||
previewOptions?: TextSearchPreviewOptions;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user