Add project closing action menu

This commit is contained in:
Federico Jaramillo Martinez
2026-05-08 15:03:38 +02:00
parent 1bbad2e89f
commit 99f434a259
11 changed files with 126 additions and 22 deletions
+4
View File
@@ -19,6 +19,10 @@ export class ProjectService {
return this.store.add(input.name === undefined ? { path: resolved } : { name: input.name, path: resolved });
}
async close(id: string): Promise<void> {
if (!(await this.store.remove(id))) throw new Error("Project not found");
}
async requireProject(id: string): Promise<Project> {
const project = await this.store.get(id);
if (!project) throw new Error("Project not found");