Skip to content

fs.complete

Child directories of a path on the daemon host (DMN-021).

/** `fs.complete` params (DMN-021). */
export type CompletePathParams = {
/**
* An absolute path or one starting with `~`: ending with `/`, its children are listed; otherwise the children
* of its parent starting with its last segment.
*/
path: string;
};
/** `fs.complete` result: directories sorted by name, at most 200. */
export type PathCompletions = {
entries: PathEntry[];
};
/** A child directory on the daemon host, offered while typing a path (DMN-021). */
export type PathEntry = {
/** The directory is the root of a git repository. */
isGitRoot: boolean;
name: string;
/** Absolute path, `~` expanded. */
path: string;
};