mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-03-03 18:35:41 +08:00
Show an informative message on completion when there is no runtime (#316)
This commit is contained in:
parent
f613b2f21e
commit
da64f51589
1 changed files with 6 additions and 1 deletions
|
@ -514,7 +514,12 @@ defmodule LivebookWeb.SessionLive do
|
|||
|
||||
{:reply, %{"completion_ref" => inspect(ref)}, socket}
|
||||
else
|
||||
{:reply, %{"completion_ref" => nil}, socket}
|
||||
{:reply, %{"completion_ref" => nil},
|
||||
put_flash(
|
||||
socket,
|
||||
:info,
|
||||
"You need to start a runtime (or evaluate a cell) for accurate completion"
|
||||
)}
|
||||
end
|
||||
else
|
||||
_ -> {:noreply, socket}
|
||||
|
|
Loading…
Reference in a new issue