MCPcopy
hub / github.com/Eugeny/tabby / constructor

Method constructor

tabby-settings/src/buttonProvider.ts:9–23  ·  view source on GitHub ↗
(
        hostApp: HostAppService,
        hotkeys: HotkeysService,
        private app: AppService,
        private translate: TranslateService,
    )

Source from the content-addressed store, hash-verified

7@Injectable()
8export class ButtonProvider extends ToolbarButtonProvider {
9 constructor (
10 hostApp: HostAppService,
11 hotkeys: HotkeysService,
12 private app: AppService,
13 private translate: TranslateService,
14 ) {
15 super()
16 hostApp.settingsUIRequest$.subscribe(() => this.open())
17
18 hotkeys.hotkey$.subscribe(async (hotkey) => {
19 if (hotkey === 'settings') {
20 this.open()
21 }
22 })
23 }
24
25 provide (): ToolbarButton[] {
26 return [{

Callers

nothing calls this directly

Calls 2

openMethod · 0.95
subscribeMethod · 0.45

Tested by

no test coverage detected