We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c04fc5b commit a821af3Copy full SHA for a821af3
src/theme/index.ts
@@ -43,10 +43,9 @@ function updateThemes () {
43
}
44
updateThemes()
45
46
-function defineVSCodeTheme (id: string, load: () => Promise<string>): Disposable {
+function defineVSCodeTheme (idOrTheme: string | Pick<IThemeExtensionPoint, 'id' | 'label' | 'description' | 'uiTheme' | 'path'>, load: () => Promise<string>): Disposable {
47
const theme: VSCodeTheme = {
48
- id,
49
- path: `/${id}.json`,
+ ...(typeof idOrTheme === 'string' ? { id: idOrTheme, path: `/${idOrTheme}.json` } : idOrTheme),
50
load,
51
_watch: false
52
0 commit comments