Chromium Code Reviews| 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..59a843ddc0ddb5580c7fdd99092734668e030a19 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('\.')) { |
|
Paul Berry
2015/02/04 18:39:52
Nit: remove the backslash, since it has no effect.
Brian Wilkerson
2015/02/04 21:26:19
Done
|
| 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); |