pub fn attachments(
text: &str,
base: &Path,
workspace: &dyn Workspace,
) -> AttachedExpand description
The files text names with @path, each once, resolved from base in
workspace and read from it. Every @ token that names a file there is
attached, whatever its shape (@notes.md, @src/lib.rs, @Makefile,
@.env); one with no file there is missing when it
looks like a path, and otherwise stays text, such
as @alice or @alice.smith. A token’s trailing punctuation is not
part of its path. A leading ~/ is the user’s home on this machine; in
another workspace it is not attached, with a note.
Reads workspace: on a thread that must not wait, call it only for a
local one (Workspace::host is None).