| Index: pkg/analyzer/lib/src/context/context.dart
|
| diff --git a/pkg/analyzer/lib/src/context/context.dart b/pkg/analyzer/lib/src/context/context.dart
|
| index 1a8fdf8d61bf554dfd672a9e2ac919ca759cb20b..aa8aa0f1ae8ea28b6ac30685ac89fd56e68d10a1 100644
|
| --- a/pkg/analyzer/lib/src/context/context.dart
|
| +++ b/pkg/analyzer/lib/src/context/context.dart
|
| @@ -765,7 +765,8 @@ class AnalysisContextImpl implements InternalAnalysisContext {
|
| }
|
|
|
| @override
|
| - Object getConfigurationData(ResultDescriptor key) => _configurationData[key];
|
| + Object getConfigurationData(ResultDescriptor key) =>
|
| + _configurationData[key] ?? key?.defaultValue;
|
|
|
| @override
|
| TimestampedData<String> getContents(Source source) {
|
| @@ -1024,10 +1025,14 @@ class AnalysisContextImpl implements InternalAnalysisContext {
|
| }
|
|
|
| /**
|
| - * Invalidate analysis cache.
|
| + * Invalidate analysis cache and notify work managers that they have work
|
| + * to do.
|
| */
|
| void invalidateCachedResults() {
|
| _cache = createCacheFromSourceFactory(_sourceFactory);
|
| + for (WorkManager workManager in workManagers) {
|
| + workManager.onAnalysisOptionsChanged();
|
| + }
|
| }
|
|
|
| @override
|
|
|