We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c028cd3 commit 19f75f6Copy full SHA for 19f75f6
packages/monaco/src/index.ts
@@ -31,7 +31,7 @@ export function textmateThemeToMonacoTheme(theme: ThemeRegistrationResolved): Mo
31
rules = []
32
const themeSettings = theme.settings || theme.tokenColors
33
34
- for (const { scope, settings: { foreground, background, fontStyle } } of themeSettings) {
+ for (const { scope, settings: { foreground, background, fontStyle } = {} } of themeSettings) {
35
const scopes = Array.isArray(scope) ? scope : [scope]
36
37
for (const s of scopes) {
0 commit comments