# `Minga.Session.Snapshot`
[🔗](https://github.com/jsmestad/minga/blob/main/lib/minga/session/snapshot.ex#L1)

A session snapshot capturing the editor's restorable state.

Built from editor state when saving a session, and deserialized
when restoring. Contains the list of open buffers with cursor
positions and the active file path.

# `t`

```elixir
@type t() :: %Minga.Session.Snapshot{
  active_file: String.t() | nil,
  buffers: [Minga.Session.BufferEntry.t()],
  clean_shutdown: boolean(),
  version: pos_integer()
}
```

A session snapshot.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
