Adding debugging to figure out missing scopes from theme.

This commit is contained in:
Seivan Heidari
2019-10-27 23:49:41 +01:00
parent 89993517e9
commit 8c2cd28c48
2 changed files with 10 additions and 11 deletions

View File

@@ -66,15 +66,14 @@ export class Highlighter {
textDecoration?: string
): [string, vscode.TextEditorDecorationType] => {
const foundRule = scopesMapper.toRule(tag, scopes.find) || scopes.find(tag)
const rule = scopesMapper.toRule(tag, scopes.find)
if (foundRule) {
const decor = createDecorationFromTextmate(foundRule);
if (rule) {
const decor = createDecorationFromTextmate(rule);
return [tag, decor];
}
else {
console.log('Missing theme for: ' + tag);
const color = new vscode.ThemeColor('ralsp.' + tag);
const decor = vscode.window.createTextEditorDecorationType({
color,