Skip to content

Commit

Permalink
Merge pull request #563 from yuk1ty/fix-rename
Browse files Browse the repository at this point in the history
Change getting file name to URI
  • Loading branch information
fwcd committed Mar 8, 2024
2 parents 2b678f1 + 23e655e commit b08f223
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/main/kotlin/org/javacs/kt/CompiledFile.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import org.javacs.kt.position.changedRegion
import org.javacs.kt.position.location
import org.javacs.kt.position.position
import org.javacs.kt.position.range
import org.javacs.kt.position.toURIString
import org.javacs.kt.util.findParent
import org.javacs.kt.util.nullResult
import org.javacs.kt.util.toPath
Expand Down Expand Up @@ -214,7 +215,7 @@ class CompiledFile(

return declaration?.let {
Pair(it,
Location(it.containingFile.name,
Location(it.containingFile.toURIString(),
range(content, it.nameIdentifier?.textRange ?: return null)))
}
}
Expand Down

0 comments on commit b08f223

Please sign in to comment.