Unexpected behavior when deleting profiles from profiles.json #5870

Open
opened 2026-01-31 00:23:55 +00:00 by claunia · 0 comments
Owner

Originally created by @MarkTiedemann on GitHub (Jan 12, 2020).

First, given the following settings, PowerShell is not hidden in the dropdown; it shows both cmd and PowerShell. This is not expected to me, as I have removed PowerShell from the profiles array.

{
    "$schema": "https://aka.ms/terminal-profiles-schema",
    "defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
    "profiles": [
        {
            "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
            "name": "cmd",
            "commandline": "cmd.exe",
            "hidden": false
        },
        {
            "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
            "hidden": true,
            "name": "Ubuntu",
            "source": "Windows.Terminal.Wsl"
        },
        {
            "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
            "hidden": true,
            "name": "Azure Cloud Shell",
            "source": "Windows.Terminal.Azure"
        }
    ],
    "schemes": [],
    "keybindings": []
}

Second, if I delete Ubuntu and Azure Cloud Shell...

{
    "$schema": "https://aka.ms/terminal-profiles-schema",
    "defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
    "profiles": [
        {
            "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
            "name": "cmd",
            "commandline": "cmd.exe",
            "hidden": false
        }
    ],
    "schemes": [],
    "keybindings": []
}

and hit save, Ubuntu and Azure Cloud Shell will be re-added automatically, but this time even with hidden: false. This is not expected to me since I have previously deleted Ubuntu and Azure Cloud Shell from the array.

Originally created by @MarkTiedemann on GitHub (Jan 12, 2020). First, given the following settings, PowerShell is not hidden in the dropdown; it shows both cmd and PowerShell. This is not expected to me, as I have removed PowerShell from the profiles array. ```json { "$schema": "https://aka.ms/terminal-profiles-schema", "defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "profiles": [ { "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "name": "cmd", "commandline": "cmd.exe", "hidden": false }, { "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}", "hidden": true, "name": "Ubuntu", "source": "Windows.Terminal.Wsl" }, { "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", "hidden": true, "name": "Azure Cloud Shell", "source": "Windows.Terminal.Azure" } ], "schemes": [], "keybindings": [] } ``` Second, if I delete Ubuntu and Azure Cloud Shell... ```json { "$schema": "https://aka.ms/terminal-profiles-schema", "defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "profiles": [ { "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "name": "cmd", "commandline": "cmd.exe", "hidden": false } ], "schemes": [], "keybindings": [] } ``` and hit save, Ubuntu and Azure Cloud Shell will be re-added automatically, but this time even with `hidden: false`. This is not expected to me since I have previously deleted Ubuntu and Azure Cloud Shell from the array.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5870