Skip to content

Deleting the reference to a profile from a JSON fragment file prevents the profile from showing back up again even when the profile still exists in the fragment file. #13916

Open
@danmock

Description

Windows Terminal version

1.14.2282.0

Windows build number

10.0.22000.0

Other Software

No response

Steps to reproduce

  1. Create a fragment file with a profile in it.
    • Absolute path: $Env:LocalAppData\Microsoft\Windows Terminal\Fragments\TestFragmentDir\testFragment.json
  2. Launch Windows Terminal.
  3. The profile from the fragment file appears in the profile drop down.
  4. Close Windows Terminal.
  5. Remove the reference to the testFragment.json profile from the settings.json file.
  6. Launch Windows Terminal.
  7. The profile from the fragment file does not appear in the profile drop down.
  8. The fragment file with the profile in it still exists, along with the profile.

Expected Behavior

Either:

  • Remove the profile from the fragment file testFragment.json in addition to the reference to said profile from the settings.json file.

or

  • Upon reopening Windows Terminal after removing the reference to the testFragment.json profile from the settings.json file, the reference should reappear (as the fragment file containing the profile still exists).

Actual Behavior

As listed in Steps to reproduce.


Scenario where this is an issue:

  • My team provides users a set of fragment files containing profiles (with very specific GUIDs).
    • The fragment files are automatically generated as part of a script which users execute.
    • These profiles define the CLIs which users must interact with for interfacing with a set of repositories.
  • User U tinkers with their settings.json file, removing several profiles, including references to the profiles from the fragment files that we provided them.
  • U no longer sees the profiles associated with the fragment files we gave them, even though the fragment files still exist and have not been modified.
  • U alerts our team that they see the profiles in the fragment files, yet Windows Terminal won't show them.
  • U informs that they are unable to access the CLIs associated with their work (as defined by the profiles in the fragment files).
  • U deletes their repository, re-clones it, then generates the fragment files again, in an attempt to get Windows Terminal to show the CLIs for the repository.
  • U smashes their keyboard into their monitor when nothing is working, and promptly leans back in their chair and contemplates their life choices.

Metadata

Assignees

No one assigned

    Labels

    Area-SettingsIssues related to settings and customizability, for console or terminalIssue-BugIt either shouldn't be doing this or needs an investigation.Product-TerminalThe new Windows Terminal.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions