format method
Formats the response in the wire format, see completeRequestCommand.
Implementation
String format() {
final buffer = StringBuffer();
for (final candidate in candidates) {
buffer.write(_sanitizeValue(candidate.value));
final description = candidate.description;
if (description != null && description.isNotEmpty) {
buffer.write('\t');
buffer.write(_sanitizeDescription(description));
}
buffer.writeln();
}
buffer.writeln(':$directive');
return buffer.toString();
}