Saving in the Settings UI breaks "iterateOn" #14161

Open
opened 2026-01-31 04:02:40 +00:00 by claunia · 0 comments
Owner

Originally created by @ffes on GitHub (Jun 8, 2021).

Originally assigned to: @carlos-zamora on GitHub.

Windows Terminal version (or Windows build number)

1.9.1523.0

Other Software

No response

Steps to reproduce

I have written a blogpost on how to add the profiles to the command palette.

When I copy-paste the code mentioned on that page directly in settings.json everything works as expected.

When I open the Settings UI and press save the key iterateOn is deleted, even without changing anything.

For reference, this is a snippet:

{
	"iterateOn": "profiles",
	"icon": "${profile.icon}",
	"name": "${profile.name}: New tab",
	"command": {
		"action": "newTab",
		"profile": "${profile.name}"
	}
}

Expected Behavior

Saving from the Settings UI doesn't remove anything.

Actual Behavior

Saving from the UI removes the iterateOn key-values pair from settings.json.

Originally created by @ffes on GitHub (Jun 8, 2021). Originally assigned to: @carlos-zamora on GitHub. ### Windows Terminal version (or Windows build number) 1.9.1523.0 ### Other Software _No response_ ### Steps to reproduce I have [written a blogpost](https://www.fesevur.com/2021/02/17/windows-terminal-command-palette/) on how to add the profiles to the command palette. When I copy-paste the code mentioned on that page directly in `settings.json` everything works as expected. When I open the Settings UI and press save the key `iterateOn` is deleted, even without changing anything. For reference, this is a snippet: ```json { "iterateOn": "profiles", "icon": "${profile.icon}", "name": "${profile.name}: New tab", "command": { "action": "newTab", "profile": "${profile.name}" } } ``` ### Expected Behavior Saving from the Settings UI doesn't remove anything. ### Actual Behavior Saving from the UI removes the `iterateOn` key-values pair from `settings.json`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14161