Display additional command content in suggestion list

This commit is contained in:
aringenbach
2023-04-19 15:32:30 +02:00
parent 0e7d802920
commit 4d7a502903
7 changed files with 70 additions and 24 deletions
@@ -25,12 +25,12 @@ enum CompletionSuggestionViewModelResult {
}
enum CompletionSuggestionViewStateItem: Identifiable {
case command(name: String)
case command(name: String, parametersFormat: String, description: String)
case user(id: String, avatar: AvatarInputProtocol?, displayName: String?)
var id: String {
switch self {
case .command(let name):
case .command(let name, _, _):
return name
case .user(let id, _, _):
return id