Skip to content

Commit dace852

Browse files
committed
fix(hover): use String.to_atom/1
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
1 parent 0205bbf commit dace852

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/next_ls.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ defmodule NextLS do
317317
[reference] ->
318318
mod =
319319
if reference.module == String.downcase(reference.module) do
320-
String.to_existing_atom(reference.module)
320+
String.to_atom(reference.module)
321321
else
322322
Module.concat([reference.module])
323323
end

0 commit comments

Comments
 (0)