question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Find in Folder not working if the folder is excluded in setting

See original GitHub issue
  • VSCode Version: 1.31.1
  • OS Version: mac

Steps to Reproduce:

  1. Right click the node_modules folder in left sider bar and selct Find in Folder
  2. Search some text that existed in node_modules folders
  3. Be sure in settings.json, the node_modules need to be excluded
  4. can not search any result.

The version before 1.31.1, also exclude node_modules, but If use Find in Folder and select node_modules, It can search the correct result.

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

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
soulcmcommented, Feb 19, 2019

image Sorry, it is the button of ‘Use Exclude Setting’ selected, unselected it and the search works fine.

I close this issue by myself.

7reactions
CommerceOwlcommented, Feb 23, 2019

I’d like to reopen this as the behaviour is not obvious at all. I had to dig around GH to figure this out and almost logged the same bug you just had.

If I go to 'Find in Folder…" specifically, it should definitely find in that folder no matter what the settings say. It’s an explicit action.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Searching Windows - Find my Files - Excluded Folders
Earlier today for some reason I open settings and found myself on the Search - Searching Windows. Then I saw the Classic button...
Read more >
How to Exclude Folders From Windows Search
Select the Searching Windows option on the right side of the window. Navigate to the Exclude folders from the enhanced search section and...
Read more >
Folders are not excluded from vs code search
The toggle determines whether to exclude files that are ignored by your .gitignore files and/or matched by your files.exclude and search.exclude ...
Read more >
Add Directories to Exclude Folders of Windows Search
Go to Searching Windows, scroll down find the section named “Excluded Folders”. You will probably already see quite a few locations listed ...
Read more >
Content roots | IntelliJ IDEA Documentation
Files in excluded folders are ignored by code completion, navigation and inspection. That is why, when you exclude a folder that you don't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found