(item: Plugin)
| 103 | } |
| 104 | |
| 105 | function getPluginRepositoryUrl(item: Plugin): string { |
| 106 | if (item.external && item.repository) return item.repository; |
| 107 | if (item.homepage) return item.homepage; |
| 108 | if (item.repository) return item.repository; |
| 109 | return getGitHubUrl(item.path); |
| 110 | } |
| 111 | |
| 112 | function getPluginItemLabel(item: PluginItem): string { |
| 113 | const normalizedPath = item.path.replace(/^\.\//, ''); |
no test coverage detected