We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a78f3c5 commit 9bf6b2eCopy full SHA for 9bf6b2e
apps/language_server/lib/language_server/providers/document_symbols.ex
@@ -495,7 +495,7 @@ defmodule ElixirLS.LanguageServer.Providers.DocumentSymbols do
495
if parent_end_line > parent_do_line do
496
# take end location from parent and assume end_of_expression is last char in previous line
497
end_of_expression =
498
- Enum.at(lines, max(parent_end_line - 2, 0))
+ (Enum.at(lines, max(parent_end_line - 2, 0)) || "")
499
|> String.length()
500
501
SourceFile.elixir_position_to_lsp(
0 commit comments