diff --git a/lib/next_ls/document_symbol.ex b/lib/next_ls/document_symbol.ex index 7a283f69..40e0f097 100644 --- a/lib/next_ls/document_symbol.ex +++ b/lib/next_ls/document_symbol.ex @@ -33,7 +33,9 @@ defmodule NextLS.DocumentSymbol do ast end - List.wrap(walker(ast, nil)) + for %DocumentSymbol{} = ds <- List.wrap(walker(ast, nil)) do + ds + end end defp walker([{{:__literal__, _, [:do]}, {_, _, _exprs} = ast}], mod) do