Skip to content

Commit

Permalink
fix(document-symbols): ensure its spec compliant (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg authored May 18, 2024
1 parent 8162d88 commit b120cce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/next_ls/document_symbol.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b120cce

Please sign in to comment.