Skip to content

Commit

Permalink
Fix Erlang documentation links (#2653)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko authored Jun 14, 2024
1 parent 356bd4b commit a6bbed2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/livebook/intellisense.ex
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ defmodule Livebook.Intellisense do
end

is_otp? =
case :code.which(app || module) do
case :code.which(module) do
:preloaded -> true
[_ | _] = path -> List.starts_with?(path, :code.lib_dir())
_ -> false
Expand Down
5 changes: 5 additions & 0 deletions test/livebook/intellisense_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -1574,6 +1574,11 @@ defmodule Livebook.IntellisenseTest do
Intellisense.get_details(":atomics.new", 11, context, node())

assert content =~ ~r"https://www.erlang.org/doc/man/atomics.html#new-2"

assert %{contents: [content]} =
Intellisense.get_details(":string.uppercase", 11, context, node())

assert content =~ ~r"https://www.erlang.org/doc/man/string.html#uppercase-1"
end
end

Expand Down

0 comments on commit a6bbed2

Please sign in to comment.