From f49781c32d82489374d0924b70b31fa7a225464b Mon Sep 17 00:00:00 2001 From: Seivan Heidari Date: Tue, 5 Nov 2019 00:11:43 +0100 Subject: Logging fallback tag in case scopes are missing. --- editors/code/src/highlighting.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'editors/code/src') diff --git a/editors/code/src/highlighting.ts b/editors/code/src/highlighting.ts index 1c67e5dc3..b184437fc 100644 --- a/editors/code/src/highlighting.ts +++ b/editors/code/src/highlighting.ts @@ -73,11 +73,13 @@ export class Highlighter { return [tag, decor]; } else { + const fallBackTag = 'ralsp.' + tag; console.log(' '); - console.log('Missing theme for: <"' + tag + '"> for following mapped scopes:') - console.log(scopesMapper.find(tag)) + console.log('Missing theme for: <"' + tag + '"> for following mapped scopes:'); + console.log(scopesMapper.find(tag)); + console.log('Falling back to values defiend in: ' + fallBackTag); console.log(' '); - const color = new vscode.ThemeColor('ralsp.' + tag); + const color = new vscode.ThemeColor(fallBackTag); const decor = vscode.window.createTextEditorDecorationType({ color, textDecoration -- cgit v1.2.3