Skip to content

Commit

Permalink
Prefer new setting over old setting
Browse files Browse the repository at this point in the history
  • Loading branch information
rwols committed Jun 5, 2021
1 parent 2a17cc1 commit f2f1320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def r(name: str, default: Union[bool, int, str, list, dict]) -> None:

# Backwards-compatible with "diagnostics_highlight_style"
diagnostics_highlight_style = s.get("diagnostics_highlight_style")
if isinstance(diagnostics_highlight_style, str):
if isinstance(diagnostics_highlight_style, str) and not s.has("show_diagnostics_highlights"):
if diagnostics_highlight_style:
self.show_diagnostics_highlights = True
else:
Expand Down

0 comments on commit f2f1320

Please sign in to comment.