Phials developer documentation
User guide
AI Notice: Most documentation right now was auto-generated by an LLM. Handwritten documentation will be implemented over time on the road to 1.0

SelectionAPI

Selection API for context providers

Signature

interface SelectionAPI {
    getSelected(): FileEntry[];
    isSelected(file: FileEntry): boolean;
    select(file: FileEntry): void;
    clearSelection(): void;
}

Members

NameTypeRequiredDescription
getSelected() => FileEntry[]yesGet currently selected files
isSelected(file: FileEntry) => booleanyesCheck if a file is selected
select(file: FileEntry) => voidyesSelect a file
clearSelection() => voidyesClear selection