Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

findFiles API should not get default excludes #33528

Closed
jrieken opened this issue Aug 30, 2017 · 7 comments
Closed

findFiles API should not get default excludes #33528

jrieken opened this issue Aug 30, 2017 · 7 comments
Assignees
Labels
api bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@jrieken
Copy link
Member

jrieken commented Aug 30, 2017

It seems that all API calls inhert the configured exclude settings which isn't what all extensions want.
Start reading here: #31882 (comment)

@vscodebot vscodebot bot added the api label Aug 30, 2017
@jrieken jrieken changed the title findFiles API should get default excludes findFiles API should not get default excludes Aug 30, 2017
@jrieken jrieken added this to the August 2017 milestone Aug 30, 2017
@jrieken jrieken added the bug Issue identified by VS Code Team member as probable bug label Aug 30, 2017
@jrieken
Copy link
Member Author

jrieken commented Aug 30, 2017

fyi @joaomoreno

@bpasero
Copy link
Member

bpasero commented Aug 31, 2017

I also think we should be careful about changing the defaults for performance reasons. @roblourens are we using ripgrep for the findFiles call or our old slow find mechanism?

@roblourens
Copy link
Member

The old one, it takes the same path as quickopen.

@eamodio
Copy link
Contributor

eamodio commented Nov 1, 2017

I just hit this case where findFiles is getting the default excludes (blocking me for searching for a file in the .git folder). I honestly don't mind that the default changed, but the fact that you can't override the default excludes by passing null or '' or something feels like a much bigger issue, imo.

@jrieken
Copy link
Member Author

jrieken commented Dec 4, 2017

but the fact that you can't override the default excludes by passing null or '' or something feels like a much bigger issue, imo.

That.

@jrieken
Copy link
Member Author

jrieken commented Dec 4, 2017

Moving this to December so that we can try this a little but my plan is to not-inherit default excludes when they are set to null via the API

@jrieken jrieken modified the milestones: November 2017, December 2017 Dec 4, 2017
@jrieken
Copy link
Member Author

jrieken commented Jan 29, 2018

Refined API is allowing null for the exclude pattern exclude?: GlobPattern | null.

export function findFiles(include: GlobPattern, exclude?: GlobPattern | null, maxResults?: number, token?: CancellationToken): Thenable<Uri[]>;

@joaomoreno joaomoreno added the verified Verification succeeded label Feb 2, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

5 participants