Automatically add .dart_tool to the watch exclusion list
See original GitHub issueDoes a VS code plugin have the ability to update the workspace watch exclusion list? As more users migrate to build_runner
we’ll have more occurrences of this directory with lots of files and excluding it can prevent the editor from picking up too many file watchers which are a limited resource.
See https://gitter.im/dart-lang/angular?at=5aba15b9e4ff28713a7aeb6e
If we can’t do it automatically should we document it somewhere?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
What not to commit - Dart
Don't commit the API documentation directory created by dart doc : doc/api/ ... The .dart_tool/ directory contains files used by various Dart tools....
Read more >Section 301 Tariff Exclusions Extended - YouTube
The U.S. trade representative (USTR) recently announced an extension suspending the tariffs on certain Chinese imports.
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
The issue I opened with Code has been assigned to the April milestone, so hopefully we’ll get a clean way to handle this (but the April release doesn’t ship till early May).
We could edit the users settings for them in the meantime, but since we have to copy the whole list (they don’t get merged together) it feels a nit nasty.
The latest VS Code lets us contribute these exclusions without overwriting them all so I’ve added
.dart_tool
to the watcher exclusions (I didn’t add it tofiles.exclude
so it’ll still show in the explorer - I thought it may be odd to hide it by default without being obvious to users).If there are any other folders we should consider adding (I did wonder about
build
,ios
,android
etc. for Flutter, but I’m not certain that’s sound or the full implications of doing so).