[PR #11519] [MERGED] Linked missing action command objects in schema #28625

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/11519
Author: @SnirBroshi
Created: 10/16/2021
Status: Merged
Merged: 10/18/2021
Merged by: @DHowett

Base: mainHead: patch-6


📝 Commits (1)

  • 8a8d6a3 Linked missing action command objects in schema

📊 Changes

1 file changed (+6 additions, -0 deletions)

View changed files

📝 doc/cascadia/profiles.schema.json (+6 -0)

📄 Description

Summary of the Pull Request

Currently when configuring the action

{ "command": { "action": "commandPalette", "launchMode": "commandLine" }, "key": "ctrl+shift+p" }

or

{ "command": { "action": "multipleActions", "actions": [{ "action": "paste" }] }, "key": "ctrl+shift+v" }

we get a schema error in VSCode. These object variants of the actions were not configured properly in the schema, so I fixed it.

PR Checklist

  • Closes #xxx
  • CLA signed
  • Tests added/passed
  • Documentation updated
  • 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

In the schema there is a big oneOf for the command of an action under actions.
Commands that also accept extra arguments have an object type defined for it.
The commandPalette and multipleActions commands accept extra arguments, and also have matching CommandPaletteAction and MultipleActionsAction object types defined, but they are unused.
So I added them to the oneOf array in the correct placement.

Validation Steps Performed


🔄 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/11519 **Author:** [@SnirBroshi](https://github.com/SnirBroshi) **Created:** 10/16/2021 **Status:** ✅ Merged **Merged:** 10/18/2021 **Merged by:** [@DHowett](https://github.com/DHowett) **Base:** `main` ← **Head:** `patch-6` --- ### 📝 Commits (1) - [`8a8d6a3`](https://github.com/microsoft/terminal/commit/8a8d6a3530aea11d7bc40b273b2d5374d234b89d) Linked missing action command objects in schema ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `doc/cascadia/profiles.schema.json` (+6 -0) </details> ### 📄 Description ## Summary of the Pull Request Currently when configuring the action ```json { "command": { "action": "commandPalette", "launchMode": "commandLine" }, "key": "ctrl+shift+p" } ``` or ```json { "command": { "action": "multipleActions", "actions": [{ "action": "paste" }] }, "key": "ctrl+shift+v" } ``` we get a schema error in VSCode. These object variants of the actions were not configured properly in the schema, so I fixed it. ## PR Checklist * [ ] Closes #xxx * [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 In the schema there is a big `oneOf` for the `command` of an action under `actions`. Commands that also accept extra arguments have an object type defined for it. The `commandPalette` and `multipleActions` commands accept extra arguments, and also have matching `CommandPaletteAction` and `MultipleActionsAction` object types defined, but they are unused. So I added them to the `oneOf` array in the correct placement. ## Validation Steps Performed --- <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:43 +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#28625