Expand description
Workspace disk policy: discover, load, and watch .lemma files.
Discovery respects project .gitignore via the ignore crate, and always
includes <workdir>/lemma_deps/**/*.lemma even when that directory is gitignored.
Structs§
- CliWorkspace
Files - CLI implementation of
lemma_lsp::workspace_files::WorkspaceFiles. - Discovered
Paths - Paths discovered under a workspace root, partitioned by provenance.
- Watch
Guard - Keeps the filesystem watcher alive until dropped.
Enums§
- Workspace
Disk Error - Failure discovering or reading workspace sources from disk.
Functions§
- discover_
lemma_ paths - Discover
.lemmapaths underworkdir(or a single.lemmafile). - load_
workspace - Load discovered sources into
engine(same provenance rules as the CLI always used). - load_
workspace_ excluding - Like
load_workspace, but skips paths inexclude(compared asPath). - read_
disk_ lemma_ files - Read all discovered
.lemmafiles for LSP / tooling injection. - refresh_
workspace_ via_ update - Refresh an existing engine from disk.
- watch_
lemma_ workspace - Watch discovered
.lemmapaths underworkdir(not the whole tree recursively). - workspace_
path_ label - Engine [
SourceType::Path] label for a discovered workspace file.