Skip to content

Commit 19f75f6

Browse files
authored
fix(monaco): handle missing settings in textmate theme func (#939)
1 parent c028cd3 commit 19f75f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/monaco/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function textmateThemeToMonacoTheme(theme: ThemeRegistrationResolved): Mo
3131
rules = []
3232
const themeSettings = theme.settings || theme.tokenColors
3333

34-
for (const { scope, settings: { foreground, background, fontStyle } } of themeSettings) {
34+
for (const { scope, settings: { foreground, background, fontStyle } = {} } of themeSettings) {
3535
const scopes = Array.isArray(scope) ? scope : [scope]
3636

3737
for (const s of scopes) {

0 commit comments

Comments
 (0)