Skip to content

findFiles API should not get default excludes #33528

Closed

Description

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

Activity

  1. changed the title [-]findFiles API should get default excludes[/-] [+]findFiles API should not get default excludes[/+] on Aug 30, 2017
  2. added
    bug
    on Aug 30, 2017
  3. jrieken commented on Aug 30, 2017

    @jrieken
    ContributorAuthor
  4. bpasero commented on Aug 31, 2017

    @bpasero
    Contributor

    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?

  5. roblourens commented on Aug 31, 2017

    @roblourens
    Member

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

  6. eamodio commented on Nov 1, 2017

    @eamodio
    Contributor

    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.

  7. jrieken commented on Dec 4, 2017

    @jrieken
    ContributorAuthor

    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.

  8. jrieken commented on Dec 4, 2017

    @jrieken
    ContributorAuthor

    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

  9. modified the milestones: November 2017, on Dec 4, 2017
  10. jrieken commented on Jan 29, 2018

    @jrieken
    ContributorAuthor

    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[]>;
  11. locked and limited conversation to collaborators on Mar 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

apibugverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions