mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-26 21:28:04 +00:00
Fix fuzzy searching for findFiles2 (#204768)
* progress on making fuzzy option * finish connection to findfiles API
This commit is contained in:
@@ -598,9 +598,8 @@ suite('vscode API - workspace', () => {
|
||||
});
|
||||
|
||||
test('`findFiles2`', () => {
|
||||
return vscode.workspace.findFiles2('*image.png').then((res) => {
|
||||
assert.strictEqual(res.length, 4);
|
||||
// TODO: see why this is fuzzy matching
|
||||
return vscode.workspace.findFiles2('**/image.png').then((res) => {
|
||||
assert.strictEqual(res.length, 2);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -619,9 +618,8 @@ suite('vscode API - workspace', () => {
|
||||
});
|
||||
|
||||
test('findFiles2, exclude', () => {
|
||||
return vscode.workspace.findFiles2('*image.png', { exclude: '**/sub/**' }).then((res) => {
|
||||
assert.strictEqual(res.length, 3);
|
||||
// TODO: see why this is fuzzy matching
|
||||
return vscode.workspace.findFiles2('**/image.png', { exclude: '**/sub/**' }).then((res) => {
|
||||
assert.strictEqual(res.length, 1);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user