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
verhovsky opened this issue
Jan 10, 2024
· 3 comments
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugconfirmedIssue has been confirmed by VS Code Team membersearchSearch widget and operation issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)
verhovsky
changed the title
Bad regex parsing in .gitignore files causing files to no longer be found
Parsing of .gitignore files doesn't match git, causing cmd+p to not find any files
Jan 10, 2024
Interesting, it seems like matching / is actually matching a path separator, so anything under a folder is ignored, when it doesn't work that way in git.
@andreamah you could verify that I'm right and check that rg on its own does the same, and file an issue upstream.
Confirmed that it happens in my WSL on the newest rg version, filed BurntSushi/ripgrep#2745 with ripgrep
andreamah
added
bug
Issue identified by VS Code Team member as probable bug
confirmed
Issue has been confirmed by VS Code Team member
search
Search widget and operation issues
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
labels
Mar 1, 2024
bugIssue identified by VS Code Team member as probable bugconfirmedIssue has been confirmed by VS Code Team membersearchSearch widget and operation issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)
Does this issue occur when all extensions are disabled?: Yes
VS Code Version:
Steps to Reproduce:
Simple:
and then Press Cmd+p and type in any of the file names you see.
Manually:
git init
It will not find any files unless you have them open in the editor already.
Removing the line and saving causes files to be found again
I found this regex in a project I cloned and it seems that
git
must parse it differently because obviously git is not ignoring all the files.This issue is a follow up to #48771
The text was updated successfully, but these errors were encountered: