You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.
I noticed that the ThemeRegistration type isn't compatible with the shape of the schema when one exports a current theme via VS Code.
$schema: 'vscode://schemas/color-theme',
ThemeRegistration seems to expect attributes name, bg, fg, and settings. All which don't appear in the vscode://schemas/color-theme schema. Wondering if there is a different type I should use that corresponds better with the vs code schema?
Everything works as expected when I pass in the theme JSON, but I would like to declare the correct type instead of just using any in typescript.
Thank you.
The text was updated successfully, but these errors were encountered:
Most of them are not required. TextMeta theme does not usually care about background and default foreground color; colors are for VS-Code-specific colors (the color of panels, borders etc); name and displayName are just metadata; When bg and fg are not provided, we will try to look from settings, otherwise will fallback to default value. The other types are there to be compatible with other integrations but are not used by Shikiji itself.
Hi there,
I noticed that the ThemeRegistration type isn't compatible with the shape of the schema when one exports a current theme via VS Code.
$schema: 'vscode://schemas/color-theme',
ThemeRegistration
seems to expect attributesname
,bg
,fg
, andsettings
. All which don't appear in thevscode://schemas/color-theme
schema. Wondering if there is a different type I should use that corresponds better with the vs code schema?Everything works as expected when I pass in the theme JSON, but I would like to declare the correct type instead of just using
any
in typescript.Thank you.
The text was updated successfully, but these errors were encountered: