From ecea34ff76116659f3d0c8e70d3f90fdd3898d0a Mon Sep 17 00:00:00 2001 From: Mitchell Hanberg Date: Wed, 3 Jul 2024 15:09:39 -0400 Subject: [PATCH] fix(definition): more robust cross ws folder definitions (#526) --- lib/next_ls.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/next_ls.ex b/lib/next_ls.ex index 6cf06945..a733b92c 100644 --- a/lib/next_ls.ex +++ b/lib/next_ls.ex @@ -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