Fix #69840
This commit is contained in:
parent
f3b73b1abc
commit
10fdea204a
2 changed files with 9 additions and 1 deletions
|
@ -488,7 +488,14 @@ suite('workspace-namespace', () => {
|
|||
});
|
||||
|
||||
test('findFiles', () => {
|
||||
return vscode.workspace.findFiles('*.png').then((res) => {
|
||||
return vscode.workspace.findFiles('**/*.png').then((res) => {
|
||||
assert.equal(res.length, 2);
|
||||
assert.equal(basename(vscode.workspace.asRelativePath(res[0])), 'image.png');
|
||||
});
|
||||
});
|
||||
|
||||
test('findFiles, exclude', () => {
|
||||
return vscode.workspace.findFiles('**/*.png', '**/sub/**').then((res) => {
|
||||
assert.equal(res.length, 1);
|
||||
assert.equal(basename(vscode.workspace.asRelativePath(res[0])), 'image.png');
|
||||
});
|
||||
|
|
|
@ -134,6 +134,7 @@ export class MainThreadWorkspace implements MainThreadWorkspaceShape {
|
|||
disregardSearchExcludeSettings: true,
|
||||
disregardIgnoreFiles: true,
|
||||
includePattern,
|
||||
excludePattern: typeof excludePatternOrDisregardExcludes === 'string' ? excludePatternOrDisregardExcludes : undefined,
|
||||
_reason: 'startFileSearch'
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue