You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use a .gitignore file in one of the root folders which also is a git project
In the search result, the ignored files are taken into account in the search
Does this issue occur when all extensions are disabled?: Yes
More details
If I open the project as one unique folder the .gitignore is taken into account. If I open in a multiroot mode, the folders are still grey, indicating they are ignored, but the search includes them anyway.
I include the following attribute to the user and project settings in order to use by default the .gitignore file to exclude the folder from the search. But it is not working either:
"search.useGlobalIgnoreFiles": true,
The expected result is this one (I have written the path to exclude manually):
Without the ./ of the beginning of the path I don't get the expected result either.
It is also possible that I am doing something wrong. I am not sure if I write a path to a folder, which is inside the project, in the "include" box it will include everything, folders in the .gitignore section as well. Because I have just found that if I write ./ocean-data-qc/**/*.js, it works as expected
The text was updated successfully, but these errors were encountered:
Yes, vscodebot is right, it is a duplicated of the issue #26574. I close this one. Actually I don't include the folder which is ignored, I include the parent, but I am afraid it will point to the same reason.
Steps to Reproduce:
.gitignore
file in one of the root folders which also is a git projectDoes this issue occur when all extensions are disabled?: Yes
More details
If I open the project as one unique folder the
.gitignore
is taken into account. If I open in a multiroot mode, the folders are still grey, indicating they are ignored, but the search includes them anyway.I include the following attribute to the user and project settings in order to use by default the
.gitignore
file to exclude the folder from the search. But it is not working either:The expected result is this one (I have written the path to exclude manually):
Without the
./
of the beginning of the path I don't get the expected result either.I have taken into account all the search options and the search in multiroot documentation
It is also possible that I am doing something wrong. I am not sure if I write a path to a folder, which is inside the project, in the "include" box it will include everything, folders in the
.gitignore
section as well. Because I have just found that if I write./ocean-data-qc/**/*.js
, it works as expectedThe text was updated successfully, but these errors were encountered: