| Index: pkg/analysis_server/lib/plugin/completion.dart
|
| diff --git a/pkg/analysis_server/lib/plugin/completion.dart b/pkg/analysis_server/lib/plugin/completion.dart
|
| index 8fd6159b783a5672789c4521456e242423ad3556..9b1c4b5970054dbb085084816c9c18b43f117079 100644
|
| --- a/pkg/analysis_server/lib/plugin/completion.dart
|
| +++ b/pkg/analysis_server/lib/plugin/completion.dart
|
| @@ -5,6 +5,23 @@
|
| /**
|
| * Support for client code that extends the analysis server by adding new code
|
| * completion contributors.
|
| + *
|
| + * Plugins can register completion contributors. The registered contributors
|
| + * will be used to get completions any time a client issues a
|
| + * 'completion.getSuggestions' request.
|
| + *
|
| + * If a plugin wants to add completions, it should implement the class
|
| + * [CompletionContributor] and then register the contributor by including code
|
| + * like the following in the plugin's registerExtensions method:
|
| + *
|
| + * @override
|
| + * void registerExtensions(RegisterExtension registerExtension) {
|
| + * ...
|
| + * registerExtension(
|
| + * COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID,
|
| + * new MyCompletionContributor());
|
| + * ...
|
| + * }
|
| */
|
| library analysis_server.plugin.completion;
|
|
|
|
|