question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exclude gitignored files from file watcher

See original GitHub issue

I 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:open
  • Created 5 years ago
  • Reactions:62
  • Comments:20 (1 by maintainers)

github_iconTop GitHub Comments

14reactions
thelaurencecommented, Mar 20, 2019

+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 in files.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.

6reactions
drdozercommented, Apr 8, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found