Skip to content

Commit d8a8f95

Browse files
committed
Fix srcref_info() with Ark URIs
1 parent baff961 commit d8a8f95

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crates/ark/src/modules/positron/srcref.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,10 @@ srcref_info <- function(srcref) {
118118
lines <- srcfile$lines
119119

120120
if (!identical(file, "") && !identical(file, "<text>")) {
121-
# TODO: Handle absolute paths by using `wd`
122-
file <- normalizePath(file, mustWork = FALSE)
121+
if (!is_ark_uri(file)) {
122+
# TODO: Handle absolute paths by using `wd`
123+
file <- normalizePath(file, mustWork = FALSE)
124+
}
123125
content <- NULL
124126
} else if (!is.null(lines)) {
125127
file <- NULL

0 commit comments

Comments
 (0)