@@ -77,9 +77,23 @@ declare module 'vscode' {
77
77
followSymlinks : boolean ;
78
78
}
79
79
80
+ /**
81
+ * Options to specify the size of the result text preview.
82
+ */
80
83
export interface TextSearchPreviewOptions {
84
+ /**
85
+ * The maximum number of lines in the preview.
86
+ */
81
87
maxLines : number ;
88
+
89
+ /**
90
+ * The maximum number of characters included before the start of the match.
91
+ */
82
92
leadingChars : number ;
93
+
94
+ /**
95
+ * The maximum number of characters included per line.
96
+ */
83
97
totalChars : number ;
84
98
}
85
99
@@ -92,6 +106,9 @@ declare module 'vscode' {
92
106
*/
93
107
maxResults : number ;
94
108
109
+ /**
110
+ * Options to specify the size of the result text preview.
111
+ */
95
112
previewOptions ?: TextSearchPreviewOptions ;
96
113
97
114
/**
@@ -131,6 +148,9 @@ declare module 'vscode' {
131
148
*/
132
149
export interface FileIndexOptions extends SearchOptions { }
133
150
151
+ /**
152
+ * A preview of the text result.
153
+ */
134
154
export interface TextSearchResultPreview {
135
155
/**
136
156
* The matching line of text, or a portion of the matching line that contains the match.
@@ -159,7 +179,7 @@ declare module 'vscode' {
159
179
range : Range ;
160
180
161
181
/**
162
- * A preview of the matching line
182
+ * A preview of the text result.
163
183
*/
164
184
preview : TextSearchResultPreview ;
165
185
}
@@ -261,6 +281,9 @@ declare module 'vscode' {
261
281
*/
262
282
encoding ?: string ;
263
283
284
+ /**
285
+ * Options to specify the size of the result text preview.
286
+ */
264
287
previewOptions ?: TextSearchPreviewOptions ;
265
288
}
266
289
0 commit comments