Skip to content

Commit

Permalink
Change backslash to forward slash on PlainVirtualFile id
Browse files Browse the repository at this point in the history
  • Loading branch information
eed3si9n committed Apr 23, 2020
1 parent 02c7850 commit 532920d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ import java.io.InputStream
import java.nio.file.{ Files, Path, Paths }
import xsbti.{ BasicVirtualFileRef, FileConverter, PathBasedFile, VirtualFileRef, VirtualFile }

class PlainVirtualFile(path: Path) extends BasicVirtualFileRef(path.toString) with PathBasedFile {
class PlainVirtualFile(path: Path)
extends BasicVirtualFileRef(path.toString.replace('\\', '/'))
with PathBasedFile {
override def contentHash: Long = HashUtil.farmHash(path)
override def name(): String = path.getFileName.toString
override def input(): InputStream = Files.newInputStream(path)
Expand Down

0 comments on commit 532920d

Please sign in to comment.