mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-11-04 17:45:24 +00:00
feat: add host sections, tab embeds and the operations client to the plugin ui
This commit is contained in:
1 parent
cc725c7889
commit
631f6ac9f7
12 files changed
+184
-3
No files matched your search
@@ -670,6 +670,22 @@ export type HostStatusIndicatorContribution = HostBadgeContribution;
|
||||
/** A control in the host editor's toolbar. */
|
||||
export type HostEditorToolbarItemContribution = HostBadgeContribution;
|
||||
|
||||
export interface HostSectionProps {
|
||||
host: PluginHostRecord;
|
||||
isVisible: boolean;
|
||||
shell: ShellApi;
|
||||
}
|
||||
|
||||
export interface HostSectionContribution {
|
||||
/** Declare it in manifest contributes.hostSections too. */
|
||||
id: string;
|
||||
titleKey: string;
|
||||
/** Lower sorts first. */
|
||||
order?: number;
|
||||
when?: (host: PluginHostRecord) => boolean;
|
||||
component: ComponentType<HostSectionProps>;
|
||||
}
|
||||
|
||||
export interface HostContextMenuItemContribution {
|
||||
id: string;
|
||||
titleKey: string;
|
||||
@@ -1172,6 +1188,11 @@ export interface TermixApp extends TermixAppInfo {
|
||||
registerHostContextMenuItem: (
|
||||
item: HostContextMenuItemContribution,
|
||||
) => Disposer;
|
||||
/**
|
||||
* A card on the host page. Core 26.11.1 and newer; call it as
|
||||
* app.registerHostSection?.(...) if your plugin allows older cores.
|
||||
*/
|
||||
registerHostSection: (section: HostSectionContribution) => Disposer;
|
||||
registerPaletteEntry: (entry: PaletteEntryContribution) => Disposer;
|
||||
registerPaletteGroup: (group: PaletteGroupContribution) => Disposer;
|
||||
registerKeybindingAction: (action: KeybindingActionContribution) => Disposer;
|
||||
|
||||
Reference in new issue
Block a user