setcolorscheme command producing an error #10338

Closed
opened 2026-01-31 02:18:47 +00:00 by claunia · 8 comments
Owner

Originally created by @cis-admin on GitHub (Aug 27, 2020).

Running the latest Windows Terminal Preview, Version: 1.3.2382.0, and I'm seeing the following error when trying to invoke the setcolorscheme command:

Warnings were found while parsing your keybindings:
• Found a keybinding that was missing a required parameter value. This keybinding will be ignored.

Here is the command I am using in my settings.json:

{ "command": { "action": "setColorScheme", "name": "One Half Dark" }, "keys": "ctrl+shift+i" },

The color scheme, One Half Dark, is present in my schemes. Any idea why I may be seeing that error?

Originally created by @cis-admin on GitHub (Aug 27, 2020). Running the latest Windows Terminal Preview, Version: 1.3.2382.0, and I'm seeing the following error when trying to invoke the setcolorscheme command: > Warnings were found while parsing your keybindings: > • Found a keybinding that was missing a required parameter value. This keybinding will be ignored. Here is the command I am using in my settings.json: > { "command": { "action": "setColorScheme", "name": "One Half Dark" }, "keys": "ctrl+shift+i" }, The color scheme, One Half Dark, is present in my schemes. Any idea why I may be seeing that error?
claunia added the Issue-QuestionNeeds-Tag-FixResolution-Answered labels 2026-01-31 02:18:47 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Aug 27, 2020):

The parameter is "scheme", not "name" ☺️

https://docs.microsoft.com/en-us/windows/terminal/customize-settings/key-bindings#set-the-color-scheme-preview

EDIT: The parameter is "colorScheme"

@zadjii-msft commented on GitHub (Aug 27, 2020): The parameter is ~~"scheme"~~, not "name" ☺️ https://docs.microsoft.com/en-us/windows/terminal/customize-settings/key-bindings#set-the-color-scheme-preview EDIT: The parameter is "colorScheme"
Author
Owner

@DHowett commented on GitHub (Aug 27, 2020):

Closing answered. Thanks!

@DHowett commented on GitHub (Aug 27, 2020): Closing answered. Thanks!
Author
Owner

@cis-admin commented on GitHub (Aug 27, 2020):

Thanks for letting me know! It looks like the release notes need to be updated since it says "name" and not "scheme":

https://devblogs.microsoft.com/commandline/windows-terminal-preview-1-3-release/

@cis-admin commented on GitHub (Aug 27, 2020): Thanks for letting me know! It looks like the release notes need to be updated since it says "name" and not "scheme": https://devblogs.microsoft.com/commandline/windows-terminal-preview-1-3-release/
Author
Owner

@zadjii-msft commented on GitHub (Aug 27, 2020):

@cinnamon-msft Hey could you go fix the blog post?

@zadjii-msft commented on GitHub (Aug 27, 2020): @cinnamon-msft Hey could you go fix the blog post?
Author
Owner

@cis-admin commented on GitHub (Aug 27, 2020):

So it looks like I still get the same error when inputting:

{ "command": { "action": "setColorScheme", "scheme": "One Half Dark" }, "keys": "ctrl+shift+i" }

@cis-admin commented on GitHub (Aug 27, 2020): So it looks like I still get the same error when inputting: > { "command": { "action": "setColorScheme", "scheme": "One Half Dark" }, "keys": "ctrl+shift+i" }
Author
Owner

@cinnamon-msft commented on GitHub (Aug 27, 2020):

https://github.com/microsoft/terminal/pull/6993

Should the schema require "colorScheme" rather than "name"?

@cinnamon-msft commented on GitHub (Aug 27, 2020): https://github.com/microsoft/terminal/pull/6993 Should the schema require "colorScheme" rather than "name"?
Author
Owner

@cis-admin commented on GitHub (Aug 27, 2020):

#6993

Should the schema require "colorScheme" rather than "name"?

That worked!

@cis-admin commented on GitHub (Aug 27, 2020): > > > #6993 > > Should the schema require "colorScheme" rather than "name"? That worked!
Author
Owner

@zadjii-msft commented on GitHub (Aug 27, 2020):

Yea, I derped and posted the wrong thing after literally opening the docs to the right page 😅 my bad!

@zadjii-msft commented on GitHub (Aug 27, 2020): Yea, I derped and posted the wrong thing _after literally opening the docs to the right page_ 😅 my bad!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10338