ASPR-3099 Add ability to import from IDEA in standard Jetbrains import wizard

(cherry picked from commit ee51b60eca)
(cherry picked from commit cf67093eac)
This commit is contained in:
Артём Орлов
2026-07-06 14:30:31 +04:00
committed by Nikita Iarychenko
parent de72e77be5
commit 27724668d2
@@ -1,4 +1,7 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
//
// Modified by Artyom Orlov at 2026 as part of the OpenIDE project(https://openide.ru).
// Any modifications are available on the same license terms as the original source code.
package com.intellij.ide.startup.importSettings.jb
import com.intellij.configurationStore.getPerOsSettingsStorageFolderName
@@ -306,7 +309,8 @@ class JbImportServiceImpl(private val coroutineScope: CoroutineScope) : JbServic
override suspend fun warmUp() {
val parentDirs = listOf(
PathManager.getConfigDir().parent,
PathManager.getConfigDir().fileSystem.getPath(PathManager.getDefaultConfigPathFor("X")).parent
PathManager.getConfigDir().fileSystem.getPath(PathManager.getDefaultConfigPathFor("X")).parent,
PathManager.getConfigDir().fileSystem.getPath(PathManager.getDefaultConfigPathFor("X").replace("OpenIDE", "JetBrains")).parent
)
val context = PluginDescriptorLoadingContext(getBuildNumberForDefaultDescriptorVersion = { PluginManagerCore.buildNumber })
for (parentDir in parentDirs) {
@@ -370,7 +374,7 @@ class JbImportServiceImpl(private val coroutineScope: CoroutineScope) : JbServic
return null
}
val fullNameWithVersion = "$fullName $ideVersion"
val pluginsDir = Path.of(PathManager.getDefaultPluginPathFor(confDir.name))
val pluginsDir = Path.of(PathManager.getDefaultPluginPathFor(confDir.name).replace("OpenIDE", "JetBrains"))
val jbProductInfo = JbProductInfo(ideVersion, lastModified, confDir.name, fullNameWithVersion, ideName, confDir, pluginsDir)
return jbProductInfo
}