Skip to content

Conversation

@osiewicz
Copy link
Contributor

Co-authored-by: dino dinojoaocosta@gmail.com

Related-to: #38799

Release Notes:

  • Improved project search performance with "Also search files ignored by configuration" combined with file inclusion/exclusion queries.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Nov 18, 2025
@osiewicz osiewicz requested a review from smitbarmase November 18, 2025 12:17
will never match an inclusion/exclusion query.

Co-authored-by: dino <dinojoaocosta@gmail.com>
@osiewicz osiewicz force-pushed the project-search-bail-on-gitignored-directories-earlier branch from e271410 to 6915601 Compare November 18, 2025 12:21
@osiewicz osiewicz changed the title project search: Skip loading of gitignored paths when their descendants will never match an inclusion/exclusion query. project search: Skip loading of gitignored paths when their descendants will never match an inclusion/exclusion query Nov 18, 2025
@osiewicz
Copy link
Contributor Author

Our tests found an issue with a scenario where we have:

  • Enabled ignored dir scans
  • Exclusion pattern is **/*.ts
  • Inclusion pattern is node_modules/prettier/**

Exclusion pattern will prune files before we even get to loading the node_modules.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO these tests could reside in project_search.rs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants