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

Method constructor

tabby-web-demo/src/buttonProvider.ts:9–16  ·  view source on GitHub ↗
(
        private app: AppService,
    )

Source from the content-addressed store, hash-verified

7@Injectable()
8export class ButtonProvider extends ToolbarButtonProvider {
9 constructor (
10 private app: AppService,
11 ) {
12 super()
13 this.app.ready$.subscribe(() => {
14 this.app.openNewTab({ type: DemoTerminalTabComponent })
15 })
16 }
17
18 provide (): ToolbarButton[] {
19 return [

Callers

nothing calls this directly

Calls 2

openNewTabMethod · 0.80
subscribeMethod · 0.45

Tested by

no test coverage detected