Skip to content

Commit b120cce

Browse files
authored
fix(document-symbols): ensure its spec compliant (#489)
1 parent 8162d88 commit b120cce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/next_ls/document_symbol.ex

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ defmodule NextLS.DocumentSymbol do
3333
ast
3434
end
3535

36-
List.wrap(walker(ast, nil))
36+
for %DocumentSymbol{} = ds <- List.wrap(walker(ast, nil)) do
37+
ds
38+
end
3739
end
3840

3941
defp walker([{{:__literal__, _, [:do]}, {_, _, _exprs} = ast}], mod) do

0 commit comments

Comments
 (0)