Fix completion crash on binding entries from different context

This commit is contained in:
Jonatan Kłosko 2021-07-22 10:48:58 +02:00
parent 9bbbd4568f
commit d7ba8af975

View file

@ -174,6 +174,7 @@ defmodule Livebook.Intellisense.Completion do
defp complete_variable(hint, ctx) do
for {key, value} <- ctx.binding,
is_atom(key),
name = Atom.to_string(key),
ctx.matcher.(name, hint),
do: {:variable, name, value}