flutter-intellij
flutter-intellij copied to clipboard
"File > Invalidate Caches" should delete Dart analyzer cache
I don't know if there is a hook available, but if there is we should make File > Invalidate Caches delete the Dart analyzer cache as well as the IntelliJ caches.
On Mac and Linux it is:
~/.dartServer
On Windows:
C:\Users\<user_name>\AppData\Local\.dartServer
This should be easy to implement.
- Define a subclass of
CachesInvalidatorthat would delete the analyzer's cache. - Add a "<cachesInvalidator implementation=... >" extension to the
plugin.xml.
See RootCachesInvalidator and IdeaSyncCachesInvalidator in the intellij-community project for examples. It should probably check that there is an open Flutter project, too.
@jwren