Skip to content

Commit

Permalink
Use .documentationPopups as the sole determiner for LSP hover
Browse files Browse the repository at this point in the history
  • Loading branch information
InSyncWithFoo committed Oct 8, 2024
1 parent 5fbf06c commit c4f385c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal class RuffServerDescriptor(project: Project, private val executable: Pa
override val lspCompletionSupport = null
override val lspCommandsSupport = null

override val lspHoverSupport = configurations.run { documentationPopups && documentationPopupsForNoqaComments }
override val lspHoverSupport = configurations.documentationPopups
override val lspDiagnosticsSupport = DiagnosticsSupport(project).takeIf { configurations.linting }
override val lspCodeActionsSupport = CodeActionsSupport(project).takeIf { configurations.quickFixes }
override val lspFormattingSupport = FormattingSupport(project).takeIf { configurations.formatting }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ internal class HoverFeature : LSPHoverFeature() {
private val configurations = project.ruffConfigurations

override fun isEnabled(file: PsiFile) =
configurations.run { documentationPopups && documentationPopupsForNoqaComments }
configurations.documentationPopups

}

0 comments on commit c4f385c

Please sign in to comment.