mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
Fix #57459 - add default previewOptions for findTextInFiles
This commit is contained in:
@@ -514,7 +514,6 @@ suite('workspace-namespace', () => {
|
||||
const options: vscode.FindTextInFilesOptions = {
|
||||
include: '*.ts',
|
||||
previewOptions: {
|
||||
leadingChars: 2,
|
||||
maxLines: 1,
|
||||
totalChars: 100
|
||||
}
|
||||
@@ -526,7 +525,7 @@ suite('workspace-namespace', () => {
|
||||
});
|
||||
|
||||
assert.equal(results.length, 1);
|
||||
assert.equal(results[0].preview.text, 'n foo(): void {');
|
||||
assert(results[0].preview.text.indexOf('foo') >= 0);
|
||||
assert.equal(vscode.workspace.asRelativePath(results[0].uri), '10linefile.ts');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user