| Index: pkg/analysis_server/lib/src/services/completion/dart/local_library_contributor.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/completion/dart/local_library_contributor.dart b/pkg/analysis_server/lib/src/services/completion/dart/local_library_contributor.dart
|
| index 7f04c6b306d923dc10bfea4d65010eea39c47eb0..68beb6a0a4e51fc26f4b8cee0cd4dcbdc8be9545 100644
|
| --- a/pkg/analysis_server/lib/src/services/completion/dart/local_library_contributor.dart
|
| +++ b/pkg/analysis_server/lib/src/services/completion/dart/local_library_contributor.dart
|
| @@ -44,7 +44,11 @@ class LibraryElementSuggestionBuilder extends GeneralizingElementVisitor
|
| @override
|
| void visitClassElement(ClassElement element) {
|
| if (optype.includeTypeNameSuggestions) {
|
| - addSuggestion(element, prefix: prefix, relevance: DART_RELEVANCE_DEFAULT);
|
| + // if includeTypeNameSuggestions, then use the filter
|
| + if (optype.typeNameSuggestionsFilter(element.type)) {
|
| + addSuggestion(element,
|
| + prefix: prefix, relevance: DART_RELEVANCE_DEFAULT);
|
| + }
|
| }
|
| if (optype.includeConstructorSuggestions) {
|
| _addConstructorSuggestions(element, DART_RELEVANCE_DEFAULT);
|
|
|