Index: pkg/analysis_server/lib/src/context_manager.dart |
diff --git a/pkg/analysis_server/lib/src/context_manager.dart b/pkg/analysis_server/lib/src/context_manager.dart |
index 805a7757530ed30b6f841e7e883e02efb2a28973..b3dbca7bbf210ee758e27abfceead5b652cc1e8b 100644 |
--- a/pkg/analysis_server/lib/src/context_manager.dart |
+++ b/pkg/analysis_server/lib/src/context_manager.dart |
@@ -895,7 +895,9 @@ class ContextManagerImpl implements ContextManager { |
*/ |
void _createContexts( |
ContextInfo parent, Folder folder, bool withPackageSpecOnly) { |
- if (folder.shortName.startsWith('.') || folder.shortName == 'packages') { |
+ if (_isExcluded(folder.path) || |
+ folder.shortName.startsWith('.') || |
+ folder.shortName == 'packages') { |
return; |
} |
// Decide whether a context needs to be created for [folder] here, and if |