Add back "Remove Project" (#17178)

* remove project working with full paths

* use relative paths

* const

* addressing comments
This commit is contained in:
Kim Santiago
2021-09-28 17:09:21 -07:00
committed by GitHub
parent 1c112689b1
commit ee8285bf38
4 changed files with 59 additions and 4 deletions

View File

@@ -62,6 +62,10 @@ export async function activate(context: vscode.ExtensionContext): Promise<IExten
return vscode.commands.executeCommand('workbench.action.closeFolder');
}));
context.subscriptions.push(vscode.commands.registerCommand('projects.removeProject', async (treeItem: WorkspaceTreeItem) => {
await workspaceService.removeProject(vscode.Uri.file(treeItem.element.project.projectFilePath));
}));
context.subscriptions.push(vscode.commands.registerCommand('projects.manageProject', async (treeItem: WorkspaceTreeItem) => {
const dashboard = new ProjectDashboard(workspaceService, treeItem);
await dashboard.showDashboard();