Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search: Exclude setting is not being respected in my workspace. #194534

Closed
futuremotiondev opened this issue Sep 30, 2023 · 1 comment
Closed
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@futuremotiondev
Copy link

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

  • VS Code Version:
    Version: 1.82.2 (user setup)
    Commit: abd2f3d
    Date: 2023-09-14T05:55:25.390Z
    Electron: 25.8.1
    ElectronBuildId: 23779380
    Chromium: 114.0.5735.289
    Node.js: 18.15.0
    V8: 11.4.183.29-electron.0
    OS: Windows_NT x64 10.0.19045

  • OS Version:
    Windows 10 Pro x64 Version 22H2 (Build 19045.3448)

Steps to Reproduce:

  1. Add workspace folders to the Search: Exclude setting:

Code_jwUfH9QIIh

  1. Perform a search and notice that search results are still returning results from the excluded folders:

bikC9x1ug3

  1. Just to add some additional information, this is my workspace settings file:

Code_qXfovJYeWY

Am I doing something wrong? Why isn't this working?

@andreamah
Copy link
Contributor

There currently isn't any way of excluding a whole workspace root in a multi-root workspace from those settings. You'd need to use the files to exclude field in the search widget and exclude it like ./00 External/*. Adding the ability to exclude in search.exclude is tracked here #50638

/duplicate #50638

@vscodenpa vscodenpa added the *duplicate Issue identified as a duplicate of another issue(s) label Nov 1, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants