Logging fallback tag in case scopes are missing.

This commit is contained in:
Seivan Heidari 2019-11-05 00:11:43 +01:00
parent 8eb5148af7
commit f49781c32d

View file

@ -73,11 +73,13 @@ export class Highlighter {
return [tag, decor]; return [tag, decor];
} }
else { else {
const fallBackTag = 'ralsp.' + tag;
console.log(' '); console.log(' ');
console.log('Missing theme for: <"' + tag + '"> for following mapped scopes:') console.log('Missing theme for: <"' + tag + '"> for following mapped scopes:');
console.log(scopesMapper.find(tag)) console.log(scopesMapper.find(tag));
console.log('Falling back to values defiend in: ' + fallBackTag);
console.log(' '); console.log(' ');
const color = new vscode.ThemeColor('ralsp.' + tag); const color = new vscode.ThemeColor(fallBackTag);
const decor = vscode.window.createTextEditorDecorationType({ const decor = vscode.window.createTextEditorDecorationType({
color, color,
textDecoration textDecoration