Open
Description
Windows Terminal version
1.14.2282.0
Windows build number
10.0.22000.0
Other Software
No response
Steps to reproduce
- Create a fragment file with a profile in it.
- Absolute path:
$Env:LocalAppData\Microsoft\Windows Terminal\Fragments\TestFragmentDir\testFragment.json
- Absolute path:
- Launch Windows Terminal.
- The profile from the fragment file appears in the profile drop down.
- Close Windows Terminal.
- Remove the reference to the
testFragment.json
profile from thesettings.json
file. - Launch Windows Terminal.
- The profile from the fragment file does not appear in the profile drop down.
- 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 thesettings.json
file.
or
- Upon reopening Windows Terminal after removing the reference to the
testFragment.json
profile from thesettings.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.