Skip to content

Commit 332c422

Browse files
authored
Merge pull request #936 from julia-vscode/sp/hover-abspath-check
add isabspath check in hover
2 parents 52dd52a + 9204c6f commit 332c422

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/requests/hover.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function get_hover(f::SymbolServer.FunctionStore, documentation::String, server)
110110
link = text
111111

112112
if server.clientInfo !== missing
113-
if occursin("code", lowercase(server.clientInfo.name))
113+
if occursin("code", lowercase(server.clientInfo.name)) && isabspath(m.file)
114114
link = string(filepath2uri(m.file), "#", m.line)
115115
end
116116
end

0 commit comments

Comments
 (0)