Skip to content

Commit

Permalink
Update plugin/core/types.py
Browse files Browse the repository at this point in the history
Co-authored-by: Rafał Chłodnicki <rchl2k@gmail.com>
  • Loading branch information
rwols and rchl authored Jun 5, 2021
1 parent f2f1320 commit 12de1da
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions plugin/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,8 @@ 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) and not s.has("show_diagnostics_highlights"):
if diagnostics_highlight_style:
self.show_diagnostics_highlights = True
else:
if isinstance(diagnostics_highlight_style, str):
if not diagnostics_highlight_style:
self.show_diagnostics_highlights = False

set_debug_logging(self.log_debug)
Expand Down

0 comments on commit 12de1da

Please sign in to comment.