Skip to content

workspaceContains starts a search over full workspace, including .git/, node_modules/ #34487

Closed

Description

@roblourens

Since 10c0610

This could be very expensive. We should include the exclude settings, or hardcode an exclusion to a few folders.

Activity

  1. added
    extension-host
    on Sep 15, 2017
  2. roblourens commented on Sep 15, 2017

    @roblourens
    MemberAuthor

    Also, we could batch workspaceContains searches into a single search. For example the C# extension will spawn 6 ripgrep processes.

  3. jrieken commented on Sep 18, 2017

    @jrieken
    Contributor

    We should include the exclude settings, or hardcode an exclusion to a few folders.

    So, how do you then active on .git/HEAD?

  4. roblourens commented on Sep 18, 2017

    @roblourens
    MemberAuthor

    Maybe add some smartness to search .git/ or node_modules/ if it's explicitly mentioned in the workspaceContains: search glob?

  5. alexdima commented on Sep 20, 2017

    @alexdima
    Member

    I will not push any change that changes the semantics. But I agree, if an extension has multiple glob patterns, we can invoke DiskSearch.search at most once per extension.

  6. roblourens commented on Sep 20, 2017

    @roblourens
    MemberAuthor

    Thanks, that should help. Opening #34711 to track other strategies

  7. roblourens commented on Sep 20, 2017

    @roblourens
    MemberAuthor

    Now I see it spawning some rg processes with no glob args at all. I think there might be a bug. Debugging...

  8. alexdima commented on Sep 21, 2017

    @alexdima
    Member

    roblourens Nice catch! Yes, it can happen if an extension uses strict file names and no glob patterns

  9. locked and limited conversation to collaborators on Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

extension-hostperf

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions