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
| Name | Type | Required | Description |
|---|---|---|---|
getSelected | () => FileEntry[] | yes | Get currently selected files |
isSelected | (file: FileEntry) => boolean | yes | Check if a file is selected |
select | (file: FileEntry) => void | yes | Select a file |
clearSelection | () => void | yes | Clear selection |