mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
Consider Trusted Hosts settings while configuring inner venv (PY-41524)
GitOrigin-RevId: 67a97e6312341241704f2d6d80b88900127ec200
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5798ffd476
commit
836d694ee9
@@ -2,7 +2,7 @@
|
||||
package com.jetbrains.python
|
||||
|
||||
import com.intellij.concurrency.SensitiveProgressWrapper
|
||||
import com.intellij.ide.impl.getTrustedState
|
||||
import com.intellij.ide.impl.getExplicitTrustedStateOrByHostAndLocation
|
||||
import com.intellij.openapi.application.ApplicationManager
|
||||
import com.intellij.openapi.application.runInEdt
|
||||
import com.intellij.openapi.diagnostic.Logger
|
||||
@@ -104,7 +104,7 @@ internal class PythonSdkConfigurator : DirectoryProjectConfigurator {
|
||||
LOGGER.debug("Looking for a virtual environment related to the project")
|
||||
guardIndicator(indicator) {
|
||||
val detectedAssociatedEnvironments = detectAssociatedEnvironments(module, existingSdks, context)
|
||||
chooseEnvironmentToSuggest(module, detectedAssociatedEnvironments, project.getTrustedState())
|
||||
chooseEnvironmentToSuggest(module, detectedAssociatedEnvironments, project.getExplicitTrustedStateOrByHostAndLocation())
|
||||
}?.let {
|
||||
val detectedAssociatedEnv = it.first
|
||||
|
||||
|
||||
Reference in New Issue
Block a user