(settings: ReadonlySettings)
| 36 | type BuiltInStatusLinePathDisplay = 'full' | 'short' | 'hidden'; |
| 37 | |
| 38 | function getBuiltInStatusLinePathDisplay(settings: ReadonlySettings): BuiltInStatusLinePathDisplay { |
| 39 | if (settings?.statusLine?.type === 'builtin') { |
| 40 | return settings.statusLine.pathDisplay ?? 'full'; |
| 41 | } |
| 42 | return 'full'; |
| 43 | } |
| 44 | |
| 45 | function formatBuiltInStatusLinePath(path: string, pathDisplay: BuiltInStatusLinePathDisplay): string | null { |
| 46 | if (pathDisplay === 'hidden') { |
no outgoing calls
no test coverage detected