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

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

Issue 880313006: Disable analysis in hidden directories (fix for issue 22170) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 5 years, 10 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
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 e9d4573cd8161e2e262cc654cbdde553c0b8bd81..fc42e65f557783e88d1d5fa879729d2f1784f004 100644
--- a/pkg/analysis_server/lib/src/context_manager.dart
+++ b/pkg/analysis_server/lib/src/context_manager.dart
@@ -283,7 +283,7 @@ abstract class ContextManager {
* Resursively adds all Dart and HTML files to the [changeSet].
*/
void _addSourceFiles(ChangeSet changeSet, Folder folder, _ContextInfo info) {
- if (info.excludesResource(folder)) {
+ if (info.excludesResource(folder) || folder.shortName.startsWith('.')) {
return;
}
List<Resource> children = folder.getChildren();
@@ -662,7 +662,7 @@ class _ContextInfo {
}
/**
- * Returns `true` if [resource] is excldued, as it is in one of the children.
+ * Returns `true` if [resource] is excluded, as it is in one of the children.
*/
bool excludesResource(Resource resource) {
return excludes(resource.path);

Powered by Google App Engine
This is Rietveld 408576698