-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Suggestion Regarding matchFiles
#209
Comments
Spent quite a while banging my head against the wall trying to work out a relative glob pattern only to end up using an absolute path (which also required my drive letter to be lowercase and prefixed with a forward slash), only to come here once I'd got it working to post an issue and see your post. Wish I'd just come straight here first and saved myself some time! The current implementation of |
I have implemented fixes for the first two topics you mentioned and will be available in the next release. Unfortunately I do not have enough time or resources to update the parsing logic in regards to supporting multiple glob patterns (related #69), however I am more than willing to look at a PR updating this behavior. My Apologies for the long wait! |
The current default is
**/*
, which is likely a performance issue for projects that have yet to configure it. Additionally, I'm seeing that bothworkspace.findFiles()
in VS Code and alsominimatch()
are used against the glob patterns configured for Comment Anchors. This results in a few problems:Not possible to configure glob patterns that are relative to the project, because minimatch is used after finding the files with VS Code, and the globbing is then against the full document path. It would be nice if Comment Anchors could match against relative paths.
Your implementation of minimatch doesn’t set the
{ dot: true }
option, so it's not possible to create TODO items inside of.dotfiles
within a project, unless given explicitly. It would be nice if{ dot: true }
could be enabled when calling on minimatch in your extension.The use of
excludeFiles
is limiting as just a string. I see thatworkspace.findFiles
only accepts a string glob pattern, but it would be nice if the additional filtering that you are doing with minimatch could consider an array of secondary patterns to filter out more things at a more granular level, leaving the broad strokes as they are forworkspace.findFiles
.The text was updated successfully, but these errors were encountered: