handleEditGetAssists method

  1. @override
Future<EditGetAssistsResult> handleEditGetAssists(
  1. EditGetAssistsParams parameters
)
override

Handle an 'edit.getAssists' request.

Throw a RequestFailure if the request could not be handled.

Implementation

@override
Future<EditGetAssistsResult> handleEditGetAssists(
    EditGetAssistsParams parameters) async {
  var path = parameters.file;
  var request = await getAssistRequest(parameters);
  var generator = AssistGenerator(getAssistContributors(path));
  var result = await generator.generateAssistsResponse(request);
  result.sendNotifications(channel);
  return result.result;
}