Workspace search "files to include" always filters to "Only search in open editors" regardless of selection

Open
#319,364 5 comments 4 reactions 1 assignee View on GitHub

@osortega is already working on this.

Since Jun 1, 2026.

Assessment

This issue has not been assessed yet.

Description

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.122.1 (Universal)
  • OS Version: 1.122.1 (Universal)

Steps to Reproduce:

  1. Open a workspace with multiple folders
  2. Use Workspace Search to look for a term that is present in files in one subfolder
  3. Use the "files to include" to filter to the sub-folder using glob pattern "subfolder/**"
  4. Toggle between "Only search in open editors". Observe how the setting is active regardless of selection.

When using workspace search "files to include", it always filters to "Only search in open editors" regardless of if the setting is selected or not.

Image Image Image Image
Dominant language
TypeScript
Stars
193k
Forks
42.9k
PR merge metrics
PR metrics pending

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/vscode

All issues in microsoft/vscode

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.