mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-20 21:04:17 +08:00
Fix completion crash on binding entries from different context
This commit is contained in:
parent
9bbbd4568f
commit
d7ba8af975
1 changed files with 1 additions and 0 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue