mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-26492 Show the version of a Pipenv interpreter
This commit is contained in:
@@ -70,6 +70,11 @@ open class PySdkListCellRenderer(private val sdkModifiers: Map<Sdk, SdkModificat
|
||||
else ->
|
||||
append(name)
|
||||
}
|
||||
if (sdk.isPipEnv) {
|
||||
sdk.versionString?.let {
|
||||
append(" $it", SimpleTextAttributes.GRAYED_SMALL_ATTRIBUTES)
|
||||
}
|
||||
}
|
||||
val homePath = sdk.homePath
|
||||
val relHomePath = homePath?.let { FileUtil.getLocationRelativeToUserHome(it) }
|
||||
if (relHomePath != null && homePath !in name && relHomePath !in name) {
|
||||
|
||||
Reference in New Issue
Block a user