Skip to content

Commit

Permalink
Remove Rfc3986UriEncoder.kt and use FileSystems api instead
Browse files Browse the repository at this point in the history
  • Loading branch information
mkondratek committed May 14, 2024
1 parent 26e3dbe commit 71362f0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.sourcegraph.cody.agent.protocol
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.fileEditor.FileDocumentManager
import com.intellij.openapi.vfs.VirtualFile
import com.sourcegraph.cody.agent.protocol.util.Rfc3986UriEncoder
import java.nio.file.FileSystems

class ProtocolTextDocument
Expand Down Expand Up @@ -49,8 +48,7 @@ private constructor(
}

private fun uriFor(file: VirtualFile): String {
val uriString = FileSystems.getDefault().getPath(file.path).toUri().toString()
return Rfc3986UriEncoder.encode(uriString)
return FileSystems.getDefault().getPath(file.path).toUri().toString()
}
}
}

This file was deleted.

This file was deleted.

0 comments on commit 71362f0

Please sign in to comment.