Handle delete folder for SDK style sql projects (#17961)

* handle delete folder for sdk style projects

* cleanup

* compare original sqlproj contents

* remove redundant checks
This commit is contained in:
Kim Santiago
2021-12-20 12:43:30 -08:00
committed by GitHub
parent 2bf3c28370
commit 443257e699
3 changed files with 94 additions and 4 deletions

View File

@@ -1052,9 +1052,8 @@ export class Project implements ISqlProject {
// again when they convert to an SDK-style project
if (this.isSdkStyleProject) {
// update sqlproj if a node was deleted and load files and folders again
if (deleted) {
await this.writeToSqlProjAndUpdateFilesFolders();
}
await this.writeToSqlProjAndUpdateFilesFolders();
// get latest folders to see if it still exists
const currentFolders = await this.readFolders();