Skip to content

Commit

Permalink
fix(definition): variables inside broken code (#496)
Browse files Browse the repository at this point in the history
Closes #477
  • Loading branch information
mhanberg committed May 22, 2024
1 parent 28d29f6 commit 7f134ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/next_ls/helpers/ast_helpers/variables.ex
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ defmodule NextLS.ASTHelpers.Variables do
end

defp decrease_scope_nesting(acc) do
Map.update!(acc, :scope, &tl(&1))
Map.update!(acc, :scope, &List.delete_at(&1, 0))
end

# add new symbol with scope
Expand Down

0 comments on commit 7f134ea

Please sign in to comment.