Skip to content

Commit

Permalink
fix(definition): more robust cross ws folder definitions (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg authored Jul 3, 2024
1 parent 7086c78 commit ecea34f
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 @@ -241,7 +241,7 @@ defmodule NextLS do
end
end)

{:reply, List.first(result), lsp}
{:reply, List.first(Enum.reject(result, &is_nil/1)), lsp}
end

def handle_request(%TextDocumentDocumentSymbol{params: %{text_document: %{uri: uri}}}, lsp) do
Expand Down

0 comments on commit ecea34f

Please sign in to comment.