Xcode has a nice completion for an exhaustive switch statement. I was wondering it this is implemented and available in sourcekit-lsp / sourcekit?
enum Message {
case a
case b
case c
}
func great(message: Message) {
// switch m -> Expandable to:
switch message {
case .a:
<#code#>
case .b:
<#code#>
case .c:
<#code#>
}
}