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

  @since 3.17.0

  Message Direction: clientToServer
  """

  import SchematicV, warn: false

  use TypedStruct

  typedstruct do
    field(:method, String.t(), default: "notebookDocument/didClose")
    field(:jsonrpc, String.t(), default: "2.0")
    field(:params, GenLSP.Structures.DidCloseNotebookDocumentParams.t())
  end

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