scope inspector: semantic color rules from settings not correctly shown

This commit is contained in:
Martin Aeschlimann 2020-07-09 10:43:50 +02:00
parent 7d8d31a348
commit 33b51eb210

View file

@ -162,7 +162,7 @@ export namespace SemanticTokenRule {
&& TokenStyle.equals(r1.style, r2.style);
}
export function is(r: any): r is SemanticTokenRule {
return r && r.selector && typeof r.selector.selectorString === 'string' && TokenStyle.is(r.style);
return r && r.selector && typeof r.selector.id === 'string' && TokenStyle.is(r.style);
}
}