Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions apps/language_server/lib/language_server/markdown_utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ defmodule ElixirLS.LanguageServer.MarkdownUtils do
{module, type, arity} ->
if match?(":" <> _, rest) do
if @erlang_ex_doc? do
# TODO not sure hos the docs will handle versions app/vsn does not work as of June 2024
# TODO not sure how the docs will handle versions app/vsn does not work as of June 2024
{app, _vsn} = DocLinks.get_app(module)
"https://www.erlang.org/doc/apps/#{app}/#{module}.html#t:#{type}/#{arity}"
else
Expand All @@ -286,7 +286,7 @@ defmodule ElixirLS.LanguageServer.MarkdownUtils do
{module, callback, arity} ->
if match?(":" <> _, rest) do
if @erlang_ex_doc? do
# TODO not sure hos the docs will handle versions app/vsn does not work as of June 2024
# TODO not sure how the docs will handle versions app/vsn does not work as of June 2024
{app, _vsn} = DocLinks.get_app(module)
"https://www.erlang.org/doc/apps/#{app}/#{module}.html#c:#{callback}/#{arity}"
else
Expand Down Expand Up @@ -371,7 +371,7 @@ defmodule ElixirLS.LanguageServer.MarkdownUtils do
{app, _vsn} = app_vsn

if app in @all_otp_apps and @erlang_ex_doc? do
# TODO not sure hos the docs will handle versions app/vsn does not work as of June 2024
# TODO not sure how the docs will handle versions app/vsn does not work as of June 2024
"https://www.erlang.org/doc/apps/#{app}/#{page}"
else
DocLinks.hex_docs_extra_link(app_vsn, page)
Expand Down Expand Up @@ -399,7 +399,7 @@ defmodule ElixirLS.LanguageServer.MarkdownUtils do
{module, function, arity} ->
if match?(":" <> _, prefix) and module != Kernel.SpecialForms do
if @erlang_ex_doc? do
# TODO not sure hos the docs will handle versions app/vsn does not work as of June 2024
# TODO not sure how the docs will handle versions app/vsn does not work as of June 2024
{app, _vsn} = DocLinks.get_app(module)
"https://www.erlang.org/doc/apps/#{app}/#{module}.html##{function}/#{arity}"
else
Expand Down
Loading