Skip to content

Conversation

@bryanchen-d
Copy link
Contributor

@bryanchen-d bryanchen-d commented Nov 8, 2025

Fixes microsoft/vscode#270857

Introduce a new option to include files that are normally ignored according to .gitignore and other exclusion settings in search results.

@bryanchen-d bryanchen-d self-assigned this Nov 8, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for including ignored files in the findTextInFiles tool by introducing a new optional includeIgnoredFiles parameter.

  • Adds includeIgnoredFiles boolean parameter to control whether files that are normally ignored (by .gitignore, ignore files, and VS Code exclude settings) should be included in search results
  • Updates the search implementation to properly configure useExcludeSettings and useIgnoreFiles options based on this parameter
  • Exposes the parameter through the tool's JSON schema for AI model consumption

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/extension/tools/node/findTextInFilesTool.tsx Adds includeIgnoredFiles parameter to the tool interface and implements logic to disable exclusion settings and ignore files when the parameter is true
package.json Updates the tool schema to expose the new includeIgnoredFiles parameter with appropriate description

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make textSearch search files even in .gitignore

2 participants