[ijent] Instantiate IjentPath a bit later

GitOrigin-RevId: c10b097e2f84af034e24ddc8509a049b5ea9d07a
This commit is contained in:
Konstantin.Nisht
2024-12-06 14:53:59 +00:00
committed by intellij-monorepo-bot
parent 47561c37a8
commit 02f5dabc31
@@ -186,9 +186,8 @@ private suspend fun tryInitializeEelOnWsl(project: Project) = coroutineScope {
val projectFile = project.projectFilePath
check(projectFile != null) { "Impossible: project is not default, but it does not have project file" }
val path = Path.of(projectFile)
if (!WslPath.isWslUncPath(path.toString())) {
if (!WslPath.isWslUncPath(projectFile)) {
return@coroutineScope
}
@@ -200,6 +199,7 @@ private suspend fun tryInitializeEelOnWsl(project: Project) = coroutineScope {
serviceAsync<WslDistributionManager>().installedDistributions
}
val path = Path.of(projectFile)
for (distro in allWslDistributions.await()) {
val matches =
try {