( name: string, profile: ProviderSettings, activate: boolean = true, )
| 531 | } |
| 532 | |
| 533 | public async updateProfile( |
| 534 | name: string, |
| 535 | profile: ProviderSettings, |
| 536 | activate: boolean = true, |
| 537 | ): Promise<string | undefined> { |
| 538 | const entry = this.getProfileEntry(name) |
| 539 | |
| 540 | if (!entry) { |
| 541 | throw new Error(`Profile with name "${name}" does not exist`) |
| 542 | } |
| 543 | |
| 544 | const id = await this.sidebarProvider.upsertProviderProfile(name, profile, activate) |
| 545 | |
| 546 | if (!id) { |
| 547 | throw new Error(`Failed to update profile with name "${name}"`) |
| 548 | } |
| 549 | |
| 550 | return id |
| 551 | } |
| 552 | |
| 553 | public async upsertProfile( |
| 554 | name: string, |
nothing calls this directly
no test coverage detected