Adding better debugging for testing themes missing tags and which scopes didn't map.

Since this file is no longer being pushed upstream, double down on monads.
This commit is contained in:
Seivan Heidari 2019-10-31 10:36:54 +01:00
parent 8edda0e7b1
commit 1f822c8e51
3 changed files with 58 additions and 45 deletions

View file

@ -73,7 +73,10 @@ export class Highlighter {
return [tag, decor];
}
else {
console.log('Missing theme for: ' + tag);
console.log(' ');
console.log('Missing theme for: <"' + tag + '"> for following mapped scopes:')
console.log(scopesMapper.find(tag))
console.log(' ');
const color = new vscode.ThemeColor('ralsp.' + tag);
const decor = vscode.window.createTextEditorDecorationType({
color,