IDEA-235710 Incorrect run configuration share location being shown in the run configuration editor

GitOrigin-RevId: 90524c9ab530d5f78e44e68f744693e431bdbc0c
This commit is contained in:
Alexander Doroshko
2020-03-22 22:03:45 +00:00
committed by intellij-monorepo-bot
parent 91aa330fa2
commit d2edc0a0e8
2 changed files with 4 additions and 1 deletions
@@ -30,6 +30,7 @@ import com.intellij.openapi.updateSettings.impl.pluginsAdvertisement.UnknownFeat
import com.intellij.openapi.util.ClearableLazyValue
import com.intellij.openapi.util.Condition
import com.intellij.openapi.util.Key
import com.intellij.openapi.util.io.FileUtil
import com.intellij.openapi.util.registry.Registry
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.project.isDirectoryBased
@@ -180,6 +181,8 @@ open class RunManagerImpl @JvmOverloads constructor(val project: Project, shared
schemeNameToFileName = OLD_NAME_CONVERTER,
streamProvider = sharedStreamProvider ?: schemeManagerIprProvider)
internal val dotIdeaRunConfigurationsPath get() = FileUtil.toSystemIndependentName(projectSchemeManager.rootDirectory.path)
private val rcInArbitraryFileManager = RCInArbitraryFileManager(project)
private val isFirstLoadState = AtomicBoolean(true)
@@ -456,7 +456,7 @@ public final class SingleConfigurationConfigurable<Config extends RunConfigurati
private static String getDotIdeaStoragePath(@NotNull Project project) {
// notNullize is to make inspections happy. Paths can't be null for non-default project
return ProjectKt.isDirectoryBased(project)
? StringUtil.notNullize(project.getBasePath()) + "/.idea/runConfigurations"
? RunManagerImpl.getInstanceImpl(project).getDotIdeaRunConfigurationsPath$intellij_platform_execution_impl()
: StringUtil.notNullize(project.getProjectFilePath());
}