Skip to content

Commit c25fc61

Browse files
committed
need to confirm before remove src folder
1 parent 062f1fc commit c25fc61

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/EIDEProjectExplorer.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4716,9 +4716,14 @@ export class ProjectExplorer implements CustomConfigurationProvider {
47164716
}
47174717

47184718
async Virtual_removeFolder(item: ProjTreeItem) {
4719+
47194720
const project = this.dataProvider.GetProjectByIndex(item.val.projectIndex);
47204721
const curFolder = <VirtualFolderInfo>item.val.obj;
4721-
project.getVirtualSourceManager().removeFolder(curFolder.path);
4722+
4723+
const answer = await vscode.window.showInformationMessage(view_str$prompt$removeSrcDir.replace('{}', curFolder.path), txt_yes, txt_no);
4724+
if (answer == txt_yes) {
4725+
project.getVirtualSourceManager().removeFolder(curFolder.path);
4726+
}
47224727
}
47234728

47244729
async Virtual_renameFolder(item: ProjTreeItem) {

0 commit comments

Comments
 (0)