| Index: pkg/analysis_server/lib/src/services/completion/completion_core.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/completion/completion_core.dart b/pkg/analysis_server/lib/src/services/completion/completion_core.dart
|
| index c43a144d0763dcf0e9c723b755ea96d8aa9ec86b..0a8b431e290e251d1ea9385f1b084efda267e844 100644
|
| --- a/pkg/analysis_server/lib/src/services/completion/completion_core.dart
|
| +++ b/pkg/analysis_server/lib/src/services/completion/completion_core.dart
|
| @@ -87,12 +87,12 @@ class CompletionRequestImpl implements CompletionRequest {
|
| * that can be used to filter the suggestions on the server side.
|
| */
|
| String get filterText {
|
| - return context
|
| - .getContents(source)
|
| - .data
|
| - .substring(replacementOffset, offset);
|
| + return sourceContents.substring(replacementOffset, offset);
|
| }
|
|
|
| + @override
|
| + String get sourceContents => context.getContents(source)?.data;
|
| +
|
| /**
|
| * Abort the current completion request.
|
| */
|
|
|