Skip to content

setcolorscheme command producing an error #7432

Closed

Description

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?

Activity

  1. ghost added
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Aug 27, 2020
  2. ghost added
    Needs-Tag-FixDoesn't match tag requirements
    on Aug 27, 2020
  3. zadjii-msft commented on Aug 27, 2020

    @zadjii-msft
    Member

    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"

  4. DHowett commented on Aug 27, 2020

    @DHowett
    Member

    Closing answered. Thanks!

  5. removed
    Needs-Tag-FixDoesn't match tag requirements
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Aug 27, 2020
  6. ghost added
    Needs-Tag-FixDoesn't match tag requirements
    on Aug 27, 2020
  7. cis-admin commented on Aug 27, 2020

    @cis-admin
    Author

    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/

  8. zadjii-msft commented on Aug 27, 2020

    @zadjii-msft
    Member

    Kayla Cinnamon (@cinnamon-msft) Hey could you go fix the blog post?

  9. cis-admin commented on Aug 27, 2020

    @cis-admin
    Author

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

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

  10. cinnamon-msft commented on Aug 27, 2020

    @cinnamon-msft
    Contributor

    #6993

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

  11. cis-admin commented on Aug 27, 2020

    @cis-admin
    Author

    #6993

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

    That worked!

  12. zadjii-msft commented on Aug 27, 2020

    @zadjii-msft
    Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-QuestionFor questions or discussionNeeds-Tag-FixDoesn't match tag requirementsResolution-AnsweredRelated to questions that have been answered

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions