-
Notifications
You must be signed in to change notification settings - Fork 644
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
Exclude directories from workspace for crawling performance reasons #130
Comments
@jevakallio Can i work on this issues I am a beginer to open source community can u guide can until be how to work with this |
@jivthesh I think @ingalless is already looking to make the code fixes in vscode markdown links, but another useful thing would be add Basically, that would involve submitting PRs to the projects, adding this setting:
To these settings.json files:
Here's an article that shows how to make a pull request: |
Just to add
|
@jevakallio I've fixed it for Gatsby template here. Can you please have a look at the PR? |
this is now fixed in foam core by #300 |
@jojanaho reported on Twitter:
In Foam we use workspace.findFiles, which has an exclude glob pattern option:
https://code.visualstudio.com/api/references/vscode-api#workspace (search for findFiles)
Markdown Notes uses the same:
https://github.com/kortina/vscode-markdown-notes/blob/c6d97c15c665a7f5f189b5a17d59ff808933c1f0/src/NoteWorkspace.ts#L291
Markdown links uses workspace.fs.readDirectory, which does not support an exclude glob:
https://github.com/tchayen/markdown-links/blob/78baab74c0d40a89eadcd3bfda8415ca2269ed6f/src/parsing.ts#L93
Foam and Markdown Notes already support files.exclude via
workspace.findFiles
, sowe can do this in .vscode/settings.json:Steps to fix this issue are:
We could also research:
**/*{all markdown extensions here}
in Foam -- this is a more of an advanced optimisation, as we already filter out all non-markdown files, so only work we save with this is iterating through a shorter array of pathsThe text was updated successfully, but these errors were encountered: