Skip to content

Commit 9cbf703

Browse files
authored
Fix workspace symbols indexing error (#191)
No test because it would be difficult to re-write the test cases to handle/check this
1 parent f5a627c commit 9cbf703

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/language_server/lib/language_server/providers/workspace_symbols.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ defmodule ElixirLS.LanguageServer.Providers.WorkspaceSymbols do
378378
chunked_module_paths
379379
|> do_process_chunked(fn chunk ->
380380
for {module, path} <- chunk,
381+
Code.ensure_loaded?(module),
381382
{function, arity} <- module.module_info(:exports) do
382383
{function, arity} = SourceFile.strip_macro_prefix({function, arity})
383384
line = find_function_line(module, function, arity, path)

0 commit comments

Comments
 (0)