-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
"Schema editing" and "add/remove items" disabled by default. #36
Comments
This may be something we could add into the high level config in the .vscode folder, but I'm wary of making it the default because it may make Depot feel "broken" if you have to manually select the ability to edit it when you first open it. Are you thinking it would be a global setting or something per sheet? |
IMO, it would be a global setting. And, at least, making "Allow Schema Editing" be "off" by default makes more sense.
I agree that having "Add/Remove Items" "off" might make depot seem broken. |
I'm worried that either of them off by default would make Depot feel broken. For example right now if you had schema editing off, you would be unable to add any new fields to a created sheet. I think making this global could be the right move in the settings.json folder. Where default behavior is as it is now, but you can override the individual settings in the settings.json file. Would that make sense? |
Well, in my mind, I see that adding, removing and editing rows happens many more times than editing the schema. But I see what you mean. Changing the default in settings.json would be good solution for me. :) |
To prevent some user errors, it is desireable to have the "Allow Schema Editing" set to "off". After some discussion with @kkushtel, it was decided that this could be a setting of the extension. This development implements that. Issue afterschoolstudio#36
Created a PR addressing this issue. Was this what you had in mind when we previously discussed this? |
This looks exactly right! I'm in the process of adding in some new fixes and changes on https://github.com/afterschoolstudio/Depot/tree/july21-update so I'll merge your PR into master once those changes are in. I had to make a few tweaks just to get everything compiling again so looking at your PR now there may need to be a few things moved around but otherwise it looks good to go. |
If you need any help, let me know. |
Feel free to tackle any of the other requested features here 😄 |
In an effort to prevent user mistakes, I think the "Allow Schema Editing" and "Add/Remove Items" toggles should be "off" by default.
At the moment, both are "on" by default.
The text was updated successfully, but these errors were encountered: