made context menu extensible

This commit is contained in:
Eugene Pankov
2018-12-24 19:41:27 +01:00
parent fe31131fc1
commit 524550f6e3
4 changed files with 128 additions and 75 deletions

View File

@@ -41,6 +41,12 @@ export abstract class TerminalColorSchemeProvider {
abstract async getSchemes (): Promise<ITerminalColorScheme[]>
}
export abstract class TerminalContextMenuItemProvider {
weight: number
abstract async getItems (tab: TerminalTabComponent): Promise<Electron.MenuItemConstructorOptions[]>
}
export interface IShell {
id: string
name?: string