MingaAgent.ProjectView.Source (Minga v0.1.0)

Copy Markdown View Source

A selected project-view source owner without materialized file content.

Summary

Functions

Selects the buffer that owns an unsaved source.

Selects the changeset that resolves an overlay edit or its disk source.

Selects a disk path while preserving the logical source identity.

Selects the fork that owns an isolated source.

Types

owner()

@type owner() ::
  {:disk, String.t()}
  | {:buffer, pid()}
  | {:fork, pid()}
  | {:changeset, pid(), String.t()}

t()

@type t() :: %MingaAgent.ProjectView.Source{owner: owner(), source_id: String.t()}

Functions

buffer(source_id, pid)

@spec buffer(String.t(), pid()) :: t()

Selects the buffer that owns an unsaved source.

changeset(source_id, pid, path)

@spec changeset(String.t(), pid(), String.t()) :: t()

Selects the changeset that resolves an overlay edit or its disk source.

disk(source_id, path)

@spec disk(String.t(), String.t()) :: t()

Selects a disk path while preserving the logical source identity.

fork(source_id, pid)

@spec fork(String.t(), pid()) :: t()

Selects the fork that owns an isolated source.