-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[megathread] Deleting profiles is often confusing #9997
Labels
Area-Settings UI
Anything specific to the SUI
Area-Settings
Issues related to settings and customizability, for console or terminal
Issue-Scenario
Product-Terminal
The new Windows Terminal.
Milestone
Comments
zadjii-msft
changed the title
<reserved>
[megathread] Deleting profiles is often confusing
Aug 16, 2021
zadjii-msft
added
Area-Settings
Issues related to settings and customizability, for console or terminal
Area-Settings UI
Anything specific to the SUI
Issue-Scenario
Product-Terminal
The new Windows Terminal.
and removed
⛺ Reserved
For future use
labels
Aug 16, 2021
zadjii-msft
added a commit
that referenced
this issue
Aug 17, 2021
fixes #6160 [3:12 PM] Dustin Howett > we're gonna have to reason about what happens when we start keeping disconnected leaves (for user settings purposes) > > like, they will exist and they can be the default profile but we need a sane fallback > > and that will help us detect that there was a source but no generata So I'm stashing this until later after the elements of #9997 merge
3 tasks
ghost
pushed a commit
that referenced
this issue
Aug 23, 2021
Re-enables the delete button for generated profiles in the settings UI. Additionally fixes "Startup Profiles" to only list active profiles. Profiles are considered deleted if they're absent from settings.json, but their GUID has been encountered before. Or in other words, from a user's perspective: Generated profiles are added to the settings.json automatically only once. Thus if the user chooses to delete the profile (e.g. using the delete button) they aren't re-added automatically and thus appear to have been deleted. Meanwhile those generated profiles are actually only marked as "hidden" as well as "deleted", but still exist in internal profile lists. The "hidden" attribute hides them from all existing menus. The "deleted" one hides them from the settings UI and prevents them from being written to disk. It would've been preferrable of course to just not generate and add deleted profile to internal profile lists in the first place. But this would've required far more wide-reaching changes. The settings UI for instance requires a list of _all_ profiles in order to allow a user to re-create previously deleted profiles. Such an approach was attempted but discarded because of it's current complexity overhead. ## References * Part of #9997 * A sequel to 5d36e5d ## PR Checklist * [x] Closes #10960 * [x] I work here * [x] Tests added/passed ## Validation Steps Performed * "Startup Profiles" doesn't list deleted profiles ✔️ * Manually removing an item from settings.json removes the profile ✔️ * Removing cmd.exe and saving doesn't create empty objects (#10960) ✔️ * "Add a new profile" lists deleted profiles ✔️ * "Duplicate" recreates previously deleted profiles ✔️ * Profiles are always created with GUIDs ✔️
DHowett
pushed a commit
that referenced
this issue
Aug 25, 2021
Re-enables the delete button for generated profiles in the settings UI. Additionally fixes "Startup Profiles" to only list active profiles. Profiles are considered deleted if they're absent from settings.json, but their GUID has been encountered before. Or in other words, from a user's perspective: Generated profiles are added to the settings.json automatically only once. Thus if the user chooses to delete the profile (e.g. using the delete button) they aren't re-added automatically and thus appear to have been deleted. Meanwhile those generated profiles are actually only marked as "hidden" as well as "deleted", but still exist in internal profile lists. The "hidden" attribute hides them from all existing menus. The "deleted" one hides them from the settings UI and prevents them from being written to disk. It would've been preferrable of course to just not generate and add deleted profile to internal profile lists in the first place. But this would've required far more wide-reaching changes. The settings UI for instance requires a list of _all_ profiles in order to allow a user to re-create previously deleted profiles. Such an approach was attempted but discarded because of it's current complexity overhead. * Part of #9997 * A sequel to 5d36e5d * [x] Closes #10960 * [x] I work here * [x] Tests added/passed * "Startup Profiles" doesn't list deleted profiles ✔️ * Manually removing an item from settings.json removes the profile ✔️ * Removing cmd.exe and saving doesn't create empty objects (#10960) ✔️ * "Add a new profile" lists deleted profiles ✔️ * "Duplicate" recreates previously deleted profiles ✔️ * Profiles are always created with GUIDs ✔️
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area-Settings UI
Anything specific to the SUI
Area-Settings
Issues related to settings and customizability, for console or terminal
Issue-Scenario
Product-Terminal
The new Windows Terminal.
Deleting profiles is often confusing. There are builtin, dynamic, and user profiles. Profiles can be hidden or deleted (as of #10910)
state.json
will let us know "the user does not want to see this".settings.json
. the Debian profile doesn't show up in the SUI. However, on the extensions page, where it lists WSL generator, there's a little↩
button to recreate the profile in the settingsrelevant discussions:
Relevant discussions on "WSL slow to start":
The text was updated successfully, but these errors were encountered: