[PR #11395] [MERGED] Fix type of id in focusPane action in setttings schema #28545

Open
opened 2026-01-31 09:29:13 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/11395
Author: @SnirBroshi
Created: 10/1/2021
Status: Merged
Merged: 10/4/2021
Merged by: @zadjii-msft

Base: mainHead: patch-2


📝 Commits (2)

  • d2c0502 Fix type of id in focusPane action in setttings schema
  • 915a581 Specified focusPane.id and globalSummon.dropdownDuration as integers in settings schema

📊 Changes

1 file changed (+4 additions, -3 deletions)

View changed files

📝 doc/cascadia/profiles.schema.json (+4 -3)

📄 Description

Summary of the Pull Request

The type of the "id" argument of the focusPane action under "actions" in the settings.json schema was incorrectly set to a string.
It's actually expecting a non-negative number, and defaults to 0.
So I fixed the schema.

PR Checklist

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

I've validated that a string makes Windows Terminal complain it's a string and not a number, and that a number works as expected, and that the default is indeed zero.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/11395 **Author:** [@SnirBroshi](https://github.com/SnirBroshi) **Created:** 10/1/2021 **Status:** ✅ Merged **Merged:** 10/4/2021 **Merged by:** [@zadjii-msft](https://github.com/zadjii-msft) **Base:** `main` ← **Head:** `patch-2` --- ### 📝 Commits (2) - [`d2c0502`](https://github.com/microsoft/terminal/commit/d2c05028593e78981298cf9921f7ddfa80d951b0) Fix type of id in focusPane action in setttings schema - [`915a581`](https://github.com/microsoft/terminal/commit/915a5812d9e84128ec3161382d059d425d258a79) Specified focusPane.id and globalSummon.dropdownDuration as integers in settings schema ### 📊 Changes **1 file changed** (+4 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `doc/cascadia/profiles.schema.json` (+4 -3) </details> ### 📄 Description ## Summary of the Pull Request The type of the `"id"` argument of the `focusPane` action under `"actions"` in the `settings.json` schema was incorrectly set to a string. It's actually expecting a non-negative number, and defaults to 0. So I fixed the schema. ## PR Checklist * [x] Closes #11393 * [x] CLA signed * [ ] Tests added/passed * [ ] Documentation updated * [x] Schema updated. * [ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. ## Detailed Description of the Pull Request / Additional comments ## Validation Steps Performed I've validated that a string makes Windows Terminal complain it's a string and not a number, and that a number works as expected, and that the default is indeed zero. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:29:13 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#28545