Skip to content

Commit

Permalink
fix(hover): use String.to_atom/1
Browse files Browse the repository at this point in the history
Erlang modules from dependencies will not have been loaded on the LSP node, so the atoms
of their module names will not have been created yet
  • Loading branch information
mhanberg committed Oct 19, 2023
1 parent 0205bbf commit dace852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/next_ls.ex
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ defmodule NextLS do
[reference] ->
mod =
if reference.module == String.downcase(reference.module) do
String.to_existing_atom(reference.module)
String.to_atom(reference.module)
else
Module.concat([reference.module])
end
Expand Down

0 comments on commit dace852

Please sign in to comment.