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

Function removeRecentProject

cli/src/utils/recent-projects.ts:90–109  ·  view source on GitHub ↗
(projectPath: string)

Source from the content-addressed store, hash-verified

88 * Remove a specific project from the recent projects list
89 */
90export const removeRecentProject = (projectPath: string): void => {
91 const recentProjectsPath = getRecentProjectsPath()
92
93 try {
94 const existingProjects = loadRecentProjects()
95 const filteredProjects = existingProjects.filter(
96 (p) => p.path !== projectPath,
97 )
98
99 fs.writeFileSync(
100 recentProjectsPath,
101 JSON.stringify(filteredProjects, null, 2),
102 )
103 } catch (error) {
104 logger.debug(
105 { error: error instanceof Error ? error.message : String(error) },
106 'Error removing recent project',
107 )
108 }
109}
110
111/**
112 * Save a project to the recent projects list.

Callers

nothing calls this directly

Calls 2

getRecentProjectsPathFunction · 0.85
loadRecentProjectsFunction · 0.85

Tested by

no test coverage detected