From 7f134ea980ca5c716843f5d752f30e6c19f27bf4 Mon Sep 17 00:00:00 2001 From: Mitchell Hanberg Date: Tue, 21 May 2024 20:25:38 -0400 Subject: [PATCH] fix(definition): variables inside broken code (#496) Closes #477 --- lib/next_ls/helpers/ast_helpers/variables.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/next_ls/helpers/ast_helpers/variables.ex b/lib/next_ls/helpers/ast_helpers/variables.ex index 9e2b8b43..6fff47cd 100644 --- a/lib/next_ls/helpers/ast_helpers/variables.ex +++ b/lib/next_ls/helpers/ast_helpers/variables.ex @@ -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