Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ecea34f

Browse files
authoredJul 3, 2024··
fix(definition): more robust cross ws folder definitions (#526)
1 parent 7086c78 commit ecea34f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/next_ls.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ defmodule NextLS do
241241
end
242242
end)
243243

244-
{:reply, List.first(result), lsp}
244+
{:reply, List.first(Enum.reject(result, &is_nil/1)), lsp}
245245
end
246246

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

0 commit comments

Comments
 (0)
Please sign in to comment.