sendHighlightsNotification method
If the plugin provides highlighting information, send a highlights
notification for the file with the given path
to the server.
Implementation
@override
Future<void> sendHighlightsNotification(String path) async {
try {
var request = await getHighlightsRequest(path);
var generator = HighlightsGenerator(getHighlightsContributors(path));
var generatorResult = generator.generateHighlightsNotification(request);
generatorResult.sendNotifications(channel);
} on RequestFailure {
// If we couldn't analyze the file, then don't send a notification.
}
}