Skip to content

Allow users to define custom mapping when "(auto)" is specified for SAS.results.html.style #1566

@smorrisj

Description

@smorrisj

Is your feature request related to a problem? Please describe.

Currently, a user can specify "(auto)" value for SAS.results.html.style and the extension will attempt to map the existing vscode theme to an ODS style that resembles the VSCode theme for consistency. It would be a nice feature to also let users override this mapping and define their own custom mapping for when "(auto)" gets used. This would be useful in scenarios where users might want to extend existing ODS themes, for example overriding HtmlEncore to have larger font sizes for tables, where this extended theme could be matched with a given VSCode color theme to extend functionality of the feature.

Describe the solution you'd like

As a user, I'd like the ability to tailor how the "(auto)" feature maps a VSCode color theme over to a SAS ODS theme so that custom themes could be defined in the mapping scheme. I'd like to define this mapping as a JSON object in the user settings JSON file. If the object key is present, and "(auto)" is specified for SAS.results.html.style, then I would like for the specified mapping to be applied when generating the ODS output statement in the preamble. If the object key is NOT present and "(auto)" is specified for SAS.results.html.style, then I'd like for the extension to infer the mapping based on the currently defined mapping scheme in the extension code.

Describe alternatives you've considered

No response

Additional context

No response

SAS version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions