Skip to content

Commit 712f197

Browse files
committed
signatures_at support for methods defined at the REPL
1 parent 6d65809 commit 712f197

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/CodeTracking.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ function signatures_at(filename::AbstractString, line::Integer)
126126
id = PkgId(Base.project_deps_get(project, libname), libname)
127127
return signatures_at(id, joinpath(spath[2:end]...), line)
128128
end
129+
if startswith(filename, "REPL[")
130+
id = PkgId("@REPL")
131+
return signatures_at(id, filename, line)
132+
end
129133
for (id, pkgfls) in _pkgfiles
130134
if startswith(filename, basedir(pkgfls)) || id.name == "Main"
131135
bdir = basedir(pkgfls)

0 commit comments

Comments
 (0)