From dcd4dbc212b0c8c147ef719ba8d4019f2755661c Mon Sep 17 00:00:00 2001 From: Morgan Bartholomew Date: Mon, 9 Feb 2026 12:09:39 +1000 Subject: [PATCH] PY-86973 lsp tools: provide configuration option for documentation GitOrigin-RevId: 8a54d23fe33d8c806b2c3d95f30d453d83ff7cb7 --- python/pluginResources/messages/PyBundle.properties | 1 + .../externaltools/configuration/PyLspToolConfiguration.kt | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/python/pluginResources/messages/PyBundle.properties b/python/pluginResources/messages/PyBundle.properties index 2f8e873ce803..572225be1e72 100644 --- a/python/pluginResources/messages/PyBundle.properties +++ b/python/pluginResources/messages/PyBundle.properties @@ -1563,6 +1563,7 @@ label.features=Features: checkbox.inspections=Inspections checkbox.completions=Completions checkbox.inlay.hints=Inlay hints +checkbox.documentation=Documentation label.package.not.installed.in.current.interpreter={0} package is not installed in the current interpreter modal.progress.title.installing=Installing ''{0}''\u2026 diff --git a/python/src/com/jetbrains/python/externaltools/configuration/PyLspToolConfiguration.kt b/python/src/com/jetbrains/python/externaltools/configuration/PyLspToolConfiguration.kt index 699379f327cd..69f3ebca2795 100644 --- a/python/src/com/jetbrains/python/externaltools/configuration/PyLspToolConfiguration.kt +++ b/python/src/com/jetbrains/python/externaltools/configuration/PyLspToolConfiguration.kt @@ -15,6 +15,11 @@ abstract class PyLspToolConfiguration> : P * `null` means: not supported */ open var inlayHints: Boolean? = null + + /** + * `null` means: not supported + */ + open var documentation: Boolean? = null var executableDiscoveryMode: ExecutableDiscoveryMode = ExecutableDiscoveryMode.INTERPRETER var pathToExecutable: String = "" val executablePath: Path? get() = pathToExecutable.ifEmpty { null }?.let { Path(it) }