MCPcopy Create free account
hub / github.com/chhoumann/quickadd / constructor

Method constructor

src/gui/ModelDirectoryModal.ts:21–32  ·  view source on GitHub ↗
(app: App, provider: AIProvider)

Source from the content-addressed store, hash-verified

19 private loadError: string | null = null;
20
21 constructor(app: App, provider: AIProvider) {
22 super(app);
23 this.provider = provider;
24
25 this.waitForClose = new Promise((resolve, reject) => {
26 this.resolvePromise = resolve;
27 this.rejectPromise = reject;
28 });
29
30 this.open();
31 void this.loadData().then(() => this.display());
32 }
33
34 private async loadData() {
35 try {

Callers

nothing calls this directly

Calls 4

loadDataMethod · 0.95
displayMethod · 0.95
thenMethod · 0.80
openMethod · 0.45

Tested by

no test coverage detected