Skip to content

Commit 20842e5

Browse files
committed
Fix crash in document symbols privider
1 parent 2fbb023 commit 20842e5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

apps/language_server/lib/language_server/providers/document_symbols.ex

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,7 @@ defmodule ElixirLS.LanguageServer.Providers.DocumentSymbols do
219219
end
220220

221221
# ExUnit describe
222-
defp extract_symbol(current_module, {:describe, location, [name | ast]}) do
223-
[[do: module_body]] = ast
224-
222+
defp extract_symbol(current_module, {:describe, location, [name | [[do: module_body]]]}) do
225223
mod_defns =
226224
case module_body do
227225
{:__block__, [], mod_defns} -> mod_defns

0 commit comments

Comments
 (0)