Skip to content

Commit

Permalink
Update plugin/hover.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl authored Jun 3, 2024
1 parent c37b8c5 commit 130e406
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugin/hover.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,7 @@ def show_hover(self, listener: AbstractViewListener, point: int, only_diagnostic
def _show_hover(self, listener: AbstractViewListener, point: int, only_diagnostics: bool) -> None:
hover_content = self.hover_content()
prefs = userprefs()
diagnostics_content = ""
if only_diagnostics or prefs.show_diagnostics_in_hover:
diagnostics_content = self.diagnostics_content()
diagnostics_content = self.diagnostics_content() if only_diagnostics or prefs.show_diagnostics_in_hover else ""
contents = diagnostics_content + hover_content + code_actions_content(self._actions_by_config)
link_content, link_range = self.link_content_and_range()
only_link_content = not bool(contents) and link_range is not None
Expand Down

0 comments on commit 130e406

Please sign in to comment.