( profiles: PersistedRemoteWorkspaceProfile[], id: string | null )
| 1157 | } |
| 1158 | |
| 1159 | function findRemoteProfileById( |
| 1160 | profiles: PersistedRemoteWorkspaceProfile[], |
| 1161 | id: string | null |
| 1162 | ): PersistedRemoteWorkspaceProfile | null { |
| 1163 | if (!id) return null |
| 1164 | return profiles.find((entry) => entry.id === id) ?? null |
| 1165 | } |
| 1166 | |
| 1167 | async function migrateLegacyRemoteWorkspaceSecrets(): Promise<void> { |
| 1168 | const cfg = await loadConfig() |
no outgoing calls
no test coverage detected