diff options
Diffstat (limited to 'editors/code/src/highlighting.ts')
-rw-r--r-- | editors/code/src/highlighting.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/editors/code/src/highlighting.ts b/editors/code/src/highlighting.ts index bc19fae2f..b7dffaff5 100644 --- a/editors/code/src/highlighting.ts +++ b/editors/code/src/highlighting.ts | |||
@@ -66,15 +66,14 @@ export class Highlighter { | |||
66 | textDecoration?: string | 66 | textDecoration?: string |
67 | ): [string, vscode.TextEditorDecorationType] => { | 67 | ): [string, vscode.TextEditorDecorationType] => { |
68 | 68 | ||
69 | const foundRule = scopesMapper.toRule(tag, scopes.find) || scopes.find(tag) | 69 | const rule = scopesMapper.toRule(tag, scopes.find) |
70 | 70 | ||
71 | 71 | if (rule) { | |
72 | 72 | const decor = createDecorationFromTextmate(rule); | |
73 | if (foundRule) { | ||
74 | const decor = createDecorationFromTextmate(foundRule); | ||
75 | return [tag, decor]; | 73 | return [tag, decor]; |
76 | } | 74 | } |
77 | else { | 75 | else { |
76 | console.log('Missing theme for: ' + tag); | ||
78 | const color = new vscode.ThemeColor('ralsp.' + tag); | 77 | const color = new vscode.ThemeColor('ralsp.' + tag); |
79 | const decor = vscode.window.createTextEditorDecorationType({ | 78 | const decor = vscode.window.createTextEditorDecorationType({ |
80 | color, | 79 | color, |