MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / clearRecentProjects

Function clearRecentProjects

cli/src/utils/recent-projects.ts:72–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70 * Clear all recent projects
71 */
72export 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

Callers

nothing calls this directly

Calls 1

getRecentProjectsPathFunction · 0.85

Tested by

no test coverage detected