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-02-19 10:56:12 +04:00
committed by Nikita Iarychenko
parent dfcaf8b503
commit 78e0d6ad29

View File

@@ -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
@@ -307,7 +310,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) {
@@ -371,7 +375,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
}