[PR #11520] Change action names in schema to match without regex #28631

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

Original Pull Request: https://github.com/microsoft/terminal/pull/11520

State: closed
Merged: Yes


Summary of the Pull Request

Currently when configuring the action

{ "command": { "action": "closeTabsAfter" } }

we get a schema error in VSCode: Matches multiple schemas when only one must validate..

The problem is that it matches both closeTabsAfter and closeTab, since the schema uses regex patterns to match instead of plain strings. I swapped the usage of "pattern" with "const" for all actions.

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

Validation Steps Performed

I checked and this action configuration no longer errors.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/11520 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request Currently when configuring the action ```json { "command": { "action": "closeTabsAfter" } } ``` we get a schema error in VSCode: `Matches multiple schemas when only one must validate.`. The problem is that it matches both `closeTabsAfter` and `closeTab`, since the schema uses regex patterns to match instead of plain strings. I swapped the usage of `"pattern"` with `"const"` for all actions. ## 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 ## Validation Steps Performed I checked and this action configuration no longer errors.
claunia added the pull-request label 2026-01-31 09:29:45 +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#28631