mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[pycharm] PY-90965 Serialize selected file with its eel path
Merge-request: IJ-MR-214313 Merged-by: David Lysenko <david.lysenko@jetbrains.com> (cherry picked from commit 877350243e31e018c09c1f895786e4b61409c673) IJ-MR-214313 GitOrigin-RevId: ae8b801e65ef084c2377c6679d63d7c327112b74
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8c3d78652c
commit
02a7bd7607
@@ -5,6 +5,7 @@ import com.intellij.openapi.components.service
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.platform.eel.EelDescriptor
|
||||
import com.intellij.platform.eel.path.EelPath
|
||||
import com.intellij.platform.eel.provider.asEelPath
|
||||
import com.intellij.platform.eel.provider.asNioPath
|
||||
import com.intellij.platform.eel.provider.getEelDescriptor
|
||||
import com.intellij.platform.rpc.topics.ProjectRemoteTopic
|
||||
@@ -21,9 +22,8 @@ value class PathDto private constructor(private val pathString: String) {
|
||||
EelPath.parse(pathString, eelDescriptor).asNioPath()
|
||||
|
||||
companion object {
|
||||
fun create(path: Path): PathDto {
|
||||
return PathDto(path.pathString)
|
||||
}
|
||||
fun create(path: Path): PathDto =
|
||||
PathDto(path.asEelPath().toString())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user