Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(986)

Unified Diff: pkg/analysis_server/lib/src/context_manager.dart

Issue 1411393003: Issue 24612. Skip excluded folder during contexts creation. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analysis_server/test/context_manager_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | pkg/analysis_server/test/context_manager_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698