Fragments with more than one "updates" profile may fail to load with a duplicate GUID warning #11597
Labels
Area-Settings
Issues related to settings and customizability, for console or terminal
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Priority-1
A description (P1)
Product-Terminal
The new Windows Terminal.
Resolution-Fix-Committed
Fix is checked in, but it might be 3-4 weeks until a release.
Windows Terminal version (or Windows build number)
1.12.2931.0
Steps to reproduce
As reported at #11325 (comment)
%LOCALAPPDATA%\Microsoft\Windows Terminal\Fragments\jan-config\wsl.json
:Expected Behavior
Settings load successfully.
Actual Behavior
Cause & Solution
The "updates" key is an alternative "guid" key for fragment profiles.
But
SettingsLoader::_appendProfile
stores and deduplicates profiles according to their "guid" only. We need to modify the function to optionally store profiles by their "updates" key instead, otherwise multiple fragment profile without "guid" might collide as they produce the same default GUID.The text was updated successfully, but these errors were encountered: