()
| 62 | } |
| 63 | |
| 64 | async getCredentials(): Promise<Credentials[]> { |
| 65 | if (this.loadedCredentials === undefined) { |
| 66 | await this.reloadCredentialsFromDisk() |
| 67 | } |
| 68 | return this.loadedCredentials || [] |
| 69 | } |
| 70 | |
| 71 | async getCredentialsForWorkspace(workspaceId: string): Promise<Credentials | undefined> { |
| 72 | return (await this.getCredentials()).filter((c) => c.workspaceId === workspaceId)[0] |
no test coverage detected