VSCode included analysis folders setting
Is your feature request related to a problem? Please describe. My 2020 intel mac with 8GB RAM sometimes really struggles with dart vs code analyzer. Sometimes, it completely stops working and simply saving a file takes a long time, with high CPU usage on Activity Monitor. In these cases it can sometimes be hard to get it working performantly and I have to resort to developing without the analyzer
https://github.com/Dart-Code/Dart-Code/issues/2914
This could be linked to a large codebase, as mentioned in that thread.
Describe the solution you'd like
A new setting, like dart.analysisIncludedFolders (opposite of the current dart.analysisExcludedFolders) that only analyses specified folders.
Describe alternatives you've considered
dart.analysisExcludedFolders is fine but in any project there's usually more folders that are not dart projects than folders that a dart projects, so defining it as dart.analysisIncludedFolders makes more sense to me.