We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3432f0e commit 1e87e11Copy full SHA for 1e87e11
workspace-import/src/com/jetbrains/ls/imports/json/conversion.kt
@@ -200,11 +200,13 @@ private val userHome = Path.of(System.getProperty("user.home"))
200
201
private fun toPath(url: VirtualFileUrl, workspacePath: Path): String {
202
val path = url.toPath()
203
- return when {
+ var pathString = when {
204
path.startsWith(workspacePath) -> WORKSPACE_PREFIX + workspacePath.relativize(path)
205
path.startsWith(userHome) -> USER_HOME_PREFIX + userHome.relativize(path)
206
else -> path.absolutePathString()
207
}
208
+ pathString = FileUtilRt.toSystemIndependentName(pathString)
209
+ return pathString
210
211
212
0 commit comments