Index: pkg/analysis_server/lib/src/services/completion/local_reference_contributor.dart |
diff --git a/pkg/analysis_server/lib/src/services/completion/local_reference_contributor.dart b/pkg/analysis_server/lib/src/services/completion/local_reference_contributor.dart |
index e65fbc8ccce784d34d8c23638e2018e966165bad..6753a400f85c1ec0fec3f1daa767a0ed1483d165 100644 |
--- a/pkg/analysis_server/lib/src/services/completion/local_reference_contributor.dart |
+++ b/pkg/analysis_server/lib/src/services/completion/local_reference_contributor.dart |
@@ -24,6 +24,11 @@ import 'package:analyzer/src/generated/utilities_dart.dart'; |
class LocalReferenceContributor extends DartCompletionContributor { |
@override |
bool computeFast(DartCompletionRequest request) { |
+ // Don't suggest in comments. |
+ if (request.target.isCommentText) { |
+ return true; |
+ } |
+ |
OpType optype = request.optype; |
// Collect suggestions from the specific child [AstNode] that contains |