-
Notifications
You must be signed in to change notification settings - Fork 2
New project command deletes any existing contents #75
Comments
Something is going wrong here evidence-vscode/src/commands/project.ts Lines 49 to 70 in 0c46be6
|
After a bit of debugging, I think what's happening is the check of |
@hughess both guesses are incorrect. The scenario @archiewood described requires a check when the default built-in See #72 for more info and just add a check if the root open workspace folder has any files using the code snippets you have above before we copy all the files and subfolders from the built-in This was a last minute feature we flipped before releasing your You should be able to easily patch it and release We hope the notes shared in this comment will help your resolve this quickly as we move on to our next. 🤗 |
Gif showing test protocol - notice @hughess notice that console doesn't print the lines about "not empty" in this case |
@RandomFractals closed this for now - the changes fix the specific situation archie and i were running into. It seems like there might be another situation we need to cover as you've described - will open another issue for it |
Steps To Reproduce
Environment
node -v
): v18.12.1npm -v
): 9.6.4Expected Behavior
It fails and warns you that the file is not empty
Actual Behaviour
It deletes all the files in the directory
The text was updated successfully, but these errors were encountered: