()
| 131 | } |
| 132 | |
| 133 | function getInstalledVersionPaths(): Set<string> | null { |
| 134 | try { |
| 135 | const paths = new Set<string>() |
| 136 | const diskData = loadInstalledPluginsFromDisk() |
| 137 | for (const installations of Object.values(diskData.plugins)) { |
| 138 | for (const entry of installations) { |
| 139 | paths.add(entry.installPath) |
| 140 | } |
| 141 | } |
| 142 | return paths |
| 143 | } catch (error) { |
| 144 | logForDebugging(`Failed to load installed plugins: ${error}`) |
| 145 | return null |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | async function processOrphanedPluginVersion( |
| 150 | versionPath: string, |
no test coverage detected