unused terminals #12820

Closed
opened 2026-01-31 03:25:49 +00:00 by claunia · 7 comments
Owner

Originally created by @bckelley on GitHub (Mar 2, 2021).

Description of the new feature/enhancement

I find it annoying that I can't delete Azure Cloud or WSL terminal or cmd prompt from settings files. I don't even use these programs and I am tired of them clogging up the settings file. Is there some workaround I'm missing, or can there be an update to add this feature?

Proposed technical implementation details (optional)

Originally created by @bckelley on GitHub (Mar 2, 2021). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement I find it annoying that I can't delete Azure Cloud or WSL terminal or cmd prompt from settings files. I don't even use these programs and I am tired of them clogging up the settings file. Is there some workaround I'm missing, or can there be an update to add this feature? <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. -->
Author
Owner

@WSLUser commented on GitHub (Mar 2, 2021):

Use the disabledProfileSources option or hidden in settings.json. These are also in the Settings UI.

@WSLUser commented on GitHub (Mar 2, 2021): Use the `disabledProfileSources` option or `hidden` in settings.json. These are also in the Settings UI.
Author
Owner

@bckelley commented on GitHub (Mar 2, 2021):

I don't even use these programs and I am tired of them clogging up the settings file.

I'm not sure if you actually read this but I clearly state that I DON"T want it clogging up the settings json file

@bckelley commented on GitHub (Mar 2, 2021): > I don't even use these programs and I am tired of them clogging up the settings file. I'm not sure if you actually read this but I clearly state that I DON"T want it clogging up the settings json file
Author
Owner

@Johbii commented on GitHub (Mar 2, 2021):

I don't even use these programs and I am tired of them clogging up the settings file.

I'm not sure if you actually read this but I clearly state that I DON"T want it clogging up the settings json file

Isn't this a very niche point? What is the functional difference in changing this?

@Johbii commented on GitHub (Mar 2, 2021): > > > > I don't even use these programs and I am tired of them clogging up the settings file. > > I'm not sure if you actually read this but I clearly state that I DON"T want it clogging up the settings json file Isn't this a very niche point? What is the functional difference in changing this?
Author
Owner

@skyline75489 commented on GitHub (Mar 3, 2021):

Well for better or worse, we're moving to use the Settings UI as the default experience. You won't see any JSON if you only use Settings UI 😄

@skyline75489 commented on GitHub (Mar 3, 2021): Well for better or worse, we're moving to use the Settings UI as the default experience. You won't see any JSON if you only use Settings UI 😄
Author
Owner

@zadjii-msft commented on GitHub (Mar 3, 2021):

Alright so there are a variety of solutions here:

  • For the cloud shell and WSL, you can stop them from being autogenerated with "disabledProfileSources": ["Windows.Terminal.Wsl", "Windows.Terminal.Azure"]. Then you could go ahead and delete the stubs from your settings file.
  • "hidden": true will also work on these profiles, though you specifically don't want them in your json file. We unfortunately need to leave the stubs in there so that we know if a user has seen them or not. Without the stub in your settings file, the WSL auto-detector presumes that this is a distro that you've newly installed.
  • When App state (#8771 and follow-ups) land, it'll be easier to hide/disable these profiles from the settings UI, without cluttering your settings file.
  • For cmd.exe - that's a "built-in" profile, which is in the defaults.json file. If you want to hide that from the new tab dropdown, you'll need to rely on "hidden": true. Sorry about that. I don't think that
{
    "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
 	"hidden": true
}

is too much clutter.

@zadjii-msft commented on GitHub (Mar 3, 2021): Alright so there are a variety of solutions here: * For the cloud shell and WSL, you can stop them from being autogenerated with `"disabledProfileSources": ["Windows.Terminal.Wsl", "Windows.Terminal.Azure"]`. Then you could go ahead and delete the stubs from your settings file. * `"hidden": true` will also work on these profiles, though you specifically don't want them in your json file. We unfortunately need to leave the stubs in there so that we know if a user has seen them or not. Without the stub in your settings file, the WSL auto-detector presumes that this is a distro that you've newly installed. * When App state (#8771 and follow-ups) land, it'll be easier to hide/disable these profiles from the settings UI, without cluttering your settings file. * For cmd.exe - that's a "built-in" profile, which is in the `defaults.json` file. If you want to hide that from the new tab dropdown, you'll need to rely on `"hidden": true`. Sorry about that. I don't think that ```json { "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "hidden": true } ``` is too much clutter.
Author
Owner

@bckelley commented on GitHub (Mar 3, 2021):

thank you @zadjii-msft most helpful! I've looked at the default json file and have noticed powershell is a built-in profile as well, will App state fix it as well?

@bckelley commented on GitHub (Mar 3, 2021): thank you @zadjii-msft most helpful! I've looked at the default json file and have noticed powershell is a built-in profile as well, will App state fix it as well?
Author
Owner

@zadjii-msft commented on GitHub (Mar 3, 2021):

No, app state isn't planning on addressing the built-in profiles. If you want Command Prompt and Windows PowerShell hidden, then you'll have to live with the 8 lines in your json file 😄

@zadjii-msft commented on GitHub (Mar 3, 2021): No, app state isn't planning on addressing the built-in profiles. If you want Command Prompt **and** Windows PowerShell hidden, then you'll have to live with the 8 lines in your json file 😄
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12820