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.

Cannot exclude root folders while searching

See original GitHub issue

Testing #50498

  • In a MR workspace, try to exclude root folder using /folder1/ and search. Results are still shown in folder1.

This happens irrespective of setting search.enableSearchProviders"

image

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
thomaslauriecommented, Jun 24, 2021

This was an annoying issue to track down, I thought search was bugged for the longest time.

Its an issue for me in large projects because I like to have folders like node_modules and dist added as root folders for easier access. However this prevents them from being excluded in search results, which is obviously undesirable.

1reaction
roblourenscommented, May 30, 2018

I would support ./name in ‘exclude’ too. It works in ‘include’

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I exclude a directory when using `find`? - Stack Overflow
It excludes ANY file or folder which merely begins with the text dir_to_exclude and is in the root directory of where you're searching....
Read more >
How do I make "find" exclude the folder it searches in?
The easiest way would be to just add -mindepth 1 , which will skip the first depth hierarchy and thus leave out your...
Read more >
Multi-root Workspaces in Visual Studio Code
When you have a multi-root workspace open, you can choose to search in a single root folder by using the ./ syntax in...
Read more >
Content root | PyCharm Documentation - JetBrains
These roots contain files and folders ignored by PyCharm when indexing, searching, parsing, watching and so on. Excluded roots are not visible ...
Read more >
When a File is Created, Create a Folder - Trigger
When a File is Created, Create a Folder - Trigger Condition for Root Folder (Exclude Subfolders) · @endsWith(triggerOutputs()?['body/{Path}'],' ...
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