Expand description
Path-completion source (CSM.7).
Fires when InsertContext::path_context is true – the host
sets the flag when the cursor sits inside a tree-sitter
string scope. The source walks the directory referenced by
the partial path the user typed, emits one candidate per
filesystem entry (capped, ignored-name set filtered).
No internal cache in v1 – the cache that lived host-side
(App.path_completion_cache) retired with this slice. Each
popup-open / refilter pays one read_dir + per-entry
file_type(); profile and reintroduce a source-internal
Mutex<Option<...>> if the keystroke budget regresses.
Mode adapter (PathCompletionMode) lives in
lattice-mode::modes::completion due to the
lattice-mode <- lattice-completion dep direction; the
adapter just wraps an Arc<PathCompletionSource>.
Structs§
- Path
Completion Source - The
SyncCompletionSourceimpl for path completion. Stateless beyond its newtype identity; the host threadspath_context+buffer_dirthroughInsertContext.