Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Convert URI to OS specific file path #42

Merged
merged 1 commit into from
Apr 30, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import java.io.File
import java.io.InputStream
import java.io.OutputStream
import java.net.URI
import java.nio.file.Paths

import scala.concurrent.Await
import scala.concurrent.duration._
Expand Down Expand Up @@ -159,7 +160,7 @@ class EnsimeLanguageServer(in: InputStream, out: OutputStream) extends LanguageS

for {
doc <- documentManager.allOpenDocuments
path = new URI(doc.uri).getRawPath()
path = Paths.get(new URI(doc.uri)).toString
} connection.publishDiagnostics(doc.uri, byFile.get(path).toList.flatten.map(toDiagnostic))
}

Expand Down