mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[jdk] IDEA-380369 Use suggestHomePaths(Project) in ExistingJdkConfigurationActivity
The regular suggestHomePaths() does not take into account the location of the project. GitOrigin-RevId: 41aed028590cdae81091110732105582edb6866e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1969099a85
commit
a270f2b778
+2
-2
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.openapi.projectRoots.impl
|
||||
|
||||
import com.intellij.openapi.application.edtWriteAction
|
||||
@@ -31,7 +31,7 @@ private class ExistingJdkConfigurationActivity : ProjectActivity {
|
||||
val jdkPathsToAdd = ArrayList<String>()
|
||||
|
||||
// Collect JDKs to register
|
||||
serviceAsync<JdkFinder>().suggestHomePaths().forEach { homePath: String ->
|
||||
serviceAsync<JdkFinder>().suggestHomePaths(project).forEach { homePath: String ->
|
||||
if (javaSdk.isValidSdkHome(homePath) && registeredJdks.none {
|
||||
FileUtil.toCanonicalPath(it.homePath) == FileUtil.toCanonicalPath(homePath)
|
||||
}) {
|
||||
|
||||
Reference in New Issue
Block a user