Always send an initial smart cell definitions report

This commit is contained in:
Jonatan Kłosko 2024-06-12 18:23:13 +07:00
parent 80e30ea3c6
commit 615adf6e4f

View file

@ -366,7 +366,9 @@ defmodule Livebook.Runtime.ErlDist.RuntimeServer do
smart_cell_supervisor: nil, smart_cell_supervisor: nil,
smart_cell_gl: nil, smart_cell_gl: nil,
smart_cells: %{}, smart_cells: %{},
smart_cell_definitions: [], # Always send the first smart cell definitions report, in case
# there are extra definitions
smart_cell_definitions: nil,
smart_cell_definitions_module: smart_cell_definitions_module:
Keyword.get(opts, :smart_cell_definitions_module, Kino.SmartCell), Keyword.get(opts, :smart_cell_definitions_module, Kino.SmartCell),
extra_smart_cell_definitions: Keyword.get(opts, :extra_smart_cell_definitions, []), extra_smart_cell_definitions: Keyword.get(opts, :extra_smart_cell_definitions, []),