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 fc0a8c1 commit f4431d2Copy full SHA for f4431d2
editors/code/src/color_theme.ts
@@ -28,7 +28,9 @@ export class ColorTheme {
28
static fromRules(rules: TextMateRule[]): ColorTheme {
29
const res = new ColorTheme();
30
for (const rule of rules) {
31
- const scopes = typeof rule.scope === 'string'
+ const scopes = typeof rule.scope === 'undefined'
32
+ ? []
33
+ : typeof rule.scope === 'string'
34
? [rule.scope]
35
: rule.scope;
36
for (const scope of scopes) {
0 commit comments