mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Logging fallback tag in case scopes are missing.
This commit is contained in:
parent
8eb5148af7
commit
f49781c32d
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue