| Index: pkg/analysis_server/lib/src/services/completion/keyword_contributor.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/completion/keyword_contributor.dart b/pkg/analysis_server/lib/src/services/completion/keyword_contributor.dart
|
| index 6cbfb014ee2f966fffed9d4c5bc626ccc2bb925a..55e9c0d11fc295565164fdb8c97c6b34a3fead49 100644
|
| --- a/pkg/analysis_server/lib/src/services/completion/keyword_contributor.dart
|
| +++ b/pkg/analysis_server/lib/src/services/completion/keyword_contributor.dart
|
| @@ -203,7 +203,12 @@ class _KeywordVisitor extends GeneralizingAstVisitor {
|
| _addSuggestion(Keyword.DEFERRED, DART_RELEVANCE_HIGH);
|
| }
|
| }
|
| - if (entity == node.semicolon || node.combinators.contains(entity)) {
|
| + // Handle degenerate case where import statement does not have a semicolon
|
| + // and the cursor is in the uri string
|
| + if ((entity == node.semicolon &&
|
| + node.uri != null &&
|
| + node.uri.offset + 1 != request.offset) ||
|
| + node.combinators.contains(entity)) {
|
| _addImportDirectiveKeywords(node);
|
| }
|
| }
|
|
|