mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-31 07:37:30 +00:00
Making it clear we're using default settings.
This commit is contained in:
parent
e6df4c424a
commit
b59ffb7d41
1 changed files with 7 additions and 11 deletions
|
@ -85,17 +85,13 @@ function loadThemeFile(themePath: string) {
|
|||
}
|
||||
}
|
||||
}
|
||||
function mergeRuleSettings(defaultRule: TextMateRuleSettings, override: TextMateRuleSettings): TextMateRuleSettings {
|
||||
const mergedRule = defaultRule;
|
||||
if (override.background) {
|
||||
mergedRule.background = override.background
|
||||
}
|
||||
if (override.foreground) {
|
||||
mergedRule.foreground = override.foreground
|
||||
}
|
||||
if (override.background) {
|
||||
mergedRule.fontStyle = override.fontStyle
|
||||
}
|
||||
function mergeRuleSettings(defaultSetting: TextMateRuleSettings, override: TextMateRuleSettings): TextMateRuleSettings {
|
||||
const mergedRule = defaultSetting;
|
||||
|
||||
mergedRule.background = override.background || defaultSetting.background
|
||||
mergedRule.foreground = override.foreground || defaultSetting.foreground
|
||||
mergedRule.fontStyle = override.fontStyle || defaultSetting.foreground;
|
||||
|
||||
return mergedRule;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue