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

Method constructor

tabby-settings/src/index.ts:69–83  ·  view source on GitHub ↗
(
        public configSync: ConfigSyncService,
        app: AppService,
        hotkeys: HotkeysService,
    )

Source from the content-addressed store, hash-verified

67})
68export default class SettingsModule {
69 constructor (
70 public configSync: ConfigSyncService,
71 app: AppService,
72 hotkeys: HotkeysService,
73 ) {
74 hotkeys.hotkey$.subscribe(async hotkey => {
75 if (hotkey.startsWith('settings-tab.')) {
76 const id = hotkey.substring(hotkey.indexOf('.') + 1)
77 app.openNewTabRaw({
78 type: SettingsTabComponent,
79 inputs: { activeTab: id },
80 })
81 }
82 })
83 }
84}
85
86export * from './api'

Callers

nothing calls this directly

Calls 2

openNewTabRawMethod · 0.80
subscribeMethod · 0.45

Tested by

no test coverage detected