From ece3bc4c188b42b28231e347dd20a10de2a4b6c8 Mon Sep 17 00:00:00 2001 From: Mitchell Hanberg Date: Wed, 3 Jul 2024 13:23:42 -0400 Subject: [PATCH] fix(definition): more robust cross ws folder definitions --- 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