lib/gen_lsp/protocol/notifications/notebook_document_did_open.ex

# codegen: do not edit
defmodule GenLSP.Notifications.NotebookDocumentDidOpen do
  @moduledoc """
  A notification sent when a notebook opens.

  @since 3.17.0
  """

  import Schematic, warn: false

  use TypedStruct

  @derive Jason.Encoder
  typedstruct do
    field :method, String.t(), default: "notebookDocument/didOpen"
    field :jsonrpc, String.t(), default: "2.0"
    field :params, GenLSP.Structures.DidOpenNotebookDocumentParams.t()
  end

  @doc false
  @spec schematic() :: Schematic.t()
  def schematic() do
    schema(__MODULE__, %{
      method: str("notebookDocument/didOpen"),
      jsonrpc: str("2.0"),
      params: GenLSP.Structures.DidOpenNotebookDocumentParams.schematic()
    })
  end
end