CodeEdit
CodeEdit copied to clipboard
✨ Handle Workspace Root Change
Description
Handling the event where the root of the project is moved or deleted should be handled gracefully. Right now we have a TODO comment in the directory events to handle this.
What should happen when the root is moved:
- Prompt the user with a panel that covers the workspace and offer two options
- Re-locate the workspace - user selects a directory and we re-identify the current workspace to the user-specified path.
- Close the workspace - close the workspace and remove it from recently opened, etc.
Currently this is what happens:
- Open folder
- Open file within workspace
- Modify file
- Move the folder represented by the open workspace in finder
- Modify the open file once more in CodeEdit
- The file is modified in the new location, I can confirm this by opening this file in another editor and seeing my modifications made after the folder was moved.
Is there anything else that doesn't work right after moving the folder that we need to address?