(provider: string, connection?: string)
| 88 | } |
| 89 | |
| 90 | export function formatDisplayName(provider: string, connection?: string): string { |
| 91 | if (!connection) return provider |
| 92 | return `${provider} (${connection})` |
| 93 | } |
| 94 | |
| 95 | export function parseDisplayName(displayName: string): { provider: string; connection?: string } { |
| 96 | const match = displayName.match(/^(.+?)\s*\((.+)\)$/) |
nothing calls this directly
no outgoing calls
no test coverage detected