Skip to content

Commit ec83d66

Browse files
rvishnyakovintellij-monorepo-bot
authored andcommitted
IJPL-227209 [settings][eel] Quick Fix: Restore the old logic for WSL
IJ-MR-186832 GitOrigin-RevId: 45c13268926ea16f4e745a278d7df59b4225f0c3
1 parent 50082bc commit ec83d66

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

platform/configuration-store-impl/src/ProjectStoreImpl.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,10 @@ open class ProjectStoreImpl(final override val project: Project) : ComponentStor
293293
private fun getMachineWorkspacePath(storeDescriptor: ProjectStoreDescriptor): Path? {
294294
val projectPath = storeDescriptor.historicalProjectBasePath
295295
if (projectPath.fileSystem != FileSystems.getDefault()) return null
296-
val machine = projectPath.asEelPath().descriptor.machine
297-
if (machine is LocalEelMachine) return null
296+
val descriptor = projectPath.asEelPath().descriptor
297+
if (descriptor::class.simpleName != "DockerEelDescriptor") return null
298298
val pathHash = FileUtilRt.pathHashCode(projectBasePath.invariantSeparatorsPathString)
299-
return PathManager.getOriginalConfigDir().resolve("$CONFIG_WORKSPACE_DIR/${sanitizeFileName(machine.name)}.${pathHash.toHexString()}.xml")
299+
return PathManager.getOriginalConfigDir().resolve("$CONFIG_WORKSPACE_DIR/${sanitizeFileName(descriptor.machine.name)}.${pathHash.toHexString()}.xml")
300300
}
301301
}
302302

0 commit comments

Comments
 (0)