Skip to content

Commit 3d28155

Browse files
committed
#57186 - add API comments
1 parent 8f130e0 commit 3d28155

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

src/vs/vscode.proposed.d.ts

+24-1
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,23 @@ declare module 'vscode' {
7777
followSymlinks: boolean;
7878
}
7979

80+
/**
81+
* Options to specify the size of the result text preview.
82+
*/
8083
export interface TextSearchPreviewOptions {
84+
/**
85+
* The maximum number of lines in the preview.
86+
*/
8187
maxLines: number;
88+
89+
/**
90+
* The maximum number of characters included before the start of the match.
91+
*/
8292
leadingChars: number;
93+
94+
/**
95+
* The maximum number of characters included per line.
96+
*/
8397
totalChars: number;
8498
}
8599

@@ -92,6 +106,9 @@ declare module 'vscode' {
92106
*/
93107
maxResults: number;
94108

109+
/**
110+
* Options to specify the size of the result text preview.
111+
*/
95112
previewOptions?: TextSearchPreviewOptions;
96113

97114
/**
@@ -131,6 +148,9 @@ declare module 'vscode' {
131148
*/
132149
export interface FileIndexOptions extends SearchOptions { }
133150

151+
/**
152+
* A preview of the text result.
153+
*/
134154
export interface TextSearchResultPreview {
135155
/**
136156
* The matching line of text, or a portion of the matching line that contains the match.
@@ -159,7 +179,7 @@ declare module 'vscode' {
159179
range: Range;
160180

161181
/**
162-
* A preview of the matching line
182+
* A preview of the text result.
163183
*/
164184
preview: TextSearchResultPreview;
165185
}
@@ -261,6 +281,9 @@ declare module 'vscode' {
261281
*/
262282
encoding?: string;
263283

284+
/**
285+
* Options to specify the size of the result text preview.
286+
*/
264287
previewOptions?: TextSearchPreviewOptions;
265288
}
266289

0 commit comments

Comments
 (0)