Skip to content

[Performance improvement] Add an option to use parent folder .gitignore during search #118229

@WildOgr

Description

@WildOgr

Currently VSCode uses ripgrep's --no-ignore-parent option. This is inconvenient and can significantly slow down search. E.g. if we consider following scenario:

Monorepo with following structure (various folders with same name excluded by parent .gitignore)

.gitignore
backend/
- project1
- project2
- etc.
frontend/
-project1
-etc.  

If user opens project1 folder in vscode, currently parent ignore settings will not be respected. It this can produce a lot of unexpected results and slows search performance.

Proposal is to add an option to use search without --no-ignore-parent.

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code InsiderssearchSearch widget and operation issuesverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions