mirror of
				https://github.com/livebook-dev/livebook.git
				synced 2025-11-04 10:26:08 +08:00 
			
		
		
		
	* Show full documentation when hovering over an identifier * Remove leftover function * Improve determining subject boundaries
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			563 B
		
	
	
	
		
			Elixir
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			563 B
		
	
	
	
		
			Elixir
		
	
	
	
	
	
defmodule Livebook.Runtime.NoopRuntime do
 | 
						|
  @moduledoc false
 | 
						|
 | 
						|
  # A runtime that doesn't do any actual evaluation,
 | 
						|
  # thus not requiring any underlying resources.
 | 
						|
 | 
						|
  defstruct []
 | 
						|
 | 
						|
  def new(), do: %__MODULE__{}
 | 
						|
 | 
						|
  defimpl Livebook.Runtime do
 | 
						|
    def connect(_), do: :ok
 | 
						|
    def disconnect(_), do: :ok
 | 
						|
    def evaluate_code(_, _, _, _, _ \\ []), do: :ok
 | 
						|
    def forget_evaluation(_, _), do: :ok
 | 
						|
    def drop_container(_, _), do: :ok
 | 
						|
    def handle_intellisense(_, _, _, _, _), do: :ok
 | 
						|
    def duplicate(_), do: {:ok, Livebook.Runtime.NoopRuntime.new()}
 | 
						|
  end
 | 
						|
end
 |