Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fine-Tuned Control for "Reset all Settings" #1236

Open
JoelProminic opened this issue Jan 16, 2024 · 0 comments
Open

Fine-Tuned Control for "Reset all Settings" #1236

JoelProminic opened this issue Jan 16, 2024 · 0 comments

Comments

@JoelProminic
Copy link
Contributor

I discussed some improvements to the "Reset to Default" button in #1232, but they were beyond the scope of the original issue. This is not a critical change, but we should revisit it if it starts causing problems.

I agree that I would prefer to not see workspaces reset here, since it would be a pain to recreate them. We do have other options to remove workspaces if needed, and it is pretty efficient at deleting multiple workspaces.

That said, I'm thinking about what a user would expect from the current text. We may want to add some text clarifying what is and is not included:
image

I'm also thinking about the practical cases where we would want to use this feature:

  • Reset to default options - perhaps after more defaults are added/changed after a Moonshine update
  • Clear the settings if they end up in a bad state because of a bug
  • Clear the workspaces if they get corrupted because of a bug. In this case, we might not be able to clean them up with the Workspace management interface

We could consider giving checkbox options for what to delete, with explanations for each entry. This would give more control, but it would be more complicated to implement and test. If we are interested in this, I'd need a summary of the different files we could clear separately.

Another use case would be to clear other stored data, though this might be beyond the scope of the current issue. For example, here are the different files that I see in thee Application Support directory:

   ~ % cd /Users/-user-/Library/Application\ Support/com.moonshine-ide.development
   com.moonshine-ide.development % du -h -d 2 .
     0B	./#airversion
    48K	./Local Store/settings
   392K	./Local Store/#SharedObjects
   4.0K	./Local Store/rgloader
   4.0K	./Local Store/vagrant
    16K	./Local Store/projects
    10G	./Local Store/java
   164K	./Local Store/elements
   8.0K	./Local Store/templates
    12K	./Local Store/data
     0B	./Local Store/tmp
   348K	./Local Store/gems
   4.0K	./Local Store/spawn
   784K	./Local Store/dominoUpdateSiteGeneration
   456M	./Local Store/boxes
    11G	./Local Store
    11G	.

After a reset, the only changes are in settings, #SharedObjects, and elements

   com.moonshine-ide.development % du -h -d 2 .
     0B	./#airversion
    24K	./Local Store/settings
   224K	./Local Store/#SharedObjects
   4.0K	./Local Store/rgloader
   4.0K	./Local Store/vagrant
    16K	./Local Store/projects
    10G	./Local Store/java
     0B	./Local Store/elements
   8.0K	./Local Store/templates
    12K	./Local Store/data
     0B	./Local Store/tmp
   348K	./Local Store/gems
   4.0K	./Local Store/spawn
   784K	./Local Store/dominoUpdateSiteGeneration
   456M	./Local Store/boxes
    11G	./Local Store
    11G	.

One case where this might be useful is for clearing old language server or other temporary files. I see I have 11 GB of files in the java folder at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Moonshine-IDE - Features
  
Awaiting triage
Development

No branches or pull requests

1 participant