()
| 70 | * Clear all recent projects |
| 71 | */ |
| 72 | export const clearRecentProjects = (): void => { |
| 73 | const recentProjectsPath = getRecentProjectsPath() |
| 74 | |
| 75 | try { |
| 76 | if (fs.existsSync(recentProjectsPath)) { |
| 77 | fs.writeFileSync(recentProjectsPath, JSON.stringify([], null, 2)) |
| 78 | } |
| 79 | } catch (error) { |
| 80 | logger.debug( |
| 81 | { error: error instanceof Error ? error.message : String(error) }, |
| 82 | 'Error clearing recent projects', |
| 83 | ) |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * Remove a specific project from the recent projects list |
nothing calls this directly
no test coverage detected