Exclude gitignored files from file watcher
See original GitHub issueI would like an option to disable watching of gitgnored files (i.e. add them to the files.watcherExclude
option automatically).
I think this makes sense, at least I couldn’t think of a use case for watching gitignored files. It might also help with autorefresh related issues and could make the files.watcherExclude
option thinner.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:62
- Comments:20 (1 by maintainers)
Top Results From Across the Web
VS Code Tip of the Week: Exclude Git Ignore - YouTube
Nick Taylor demonstrates a feature of VS Code where you can hide gitignored files from the tree file explorer in VS Code.
Read more >Less File Watcher - Ignore certain files - Stack Overflow
I'm using the Less.css File Watcher with WebStorms and I would like to exclude specific files for compilation. I have one style.less file ......
Read more >gitignore Documentation - Git
DESCRIPTION. A gitignore file specifies intentionally untracked files that Git should ignore. Files already tracked by Git are not affected; see the NOTES ......
Read more >Automatic exclusion of files listed in .gitignore only ... - YouTrack
unzip the attached zip file · Use intellij -> open project and select the TestProject folder. · Open any of the 2 contained...
Read more >Exclude files from pull request diffs | Bitbucket Cloud
Any line beginning with # is ignored. Filename. A file or files can be excluded by filename. If a filename contains special characters,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1 for this feature. I’ve had to add many lines to
files.watcherExclude
to get rid of the “unable to watch for file changes in this large workspace” warning. It is a large workspace (around 20 separate Git repos), but 90% of the things I specify infiles.watcherExclude
could be automatically read in from the various.gitignore
files. Maybe I’ll make a fork tonight and try to figure out what it would take to implement this.This repeatedly hurts me. I tend to have a small number of source files, but quite large folders in my .gitignore. Those can have tens of thousands of files. Please, please, please add a default or toggle to black-list everything in the gitignore globs from the watcher process.