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.

Automatically add .dart_tool to the watch exclusion list

See original GitHub issue

Does 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:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
DanTupcommented, Mar 29, 2018

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.

0reactions
DanTupcommented, Dec 9, 2021

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 to files.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).

Read more comments on GitHub >

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

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