( profile: PersistedRemoteWorkspaceProfile, connection: PersistedRemoteWorkspaceConfig, vaultPath: string | null )
| 1146 | } |
| 1147 | |
| 1148 | function profileMatchesConnection( |
| 1149 | profile: PersistedRemoteWorkspaceProfile, |
| 1150 | connection: PersistedRemoteWorkspaceConfig, |
| 1151 | vaultPath: string | null |
| 1152 | ): boolean { |
| 1153 | return ( |
| 1154 | normalizeRemoteBaseUrl(profile.baseUrl) === normalizeRemoteBaseUrl(connection.baseUrl) && |
| 1155 | (profile.vaultPath ?? null) === (vaultPath ?? null) |
| 1156 | ) |
| 1157 | } |
| 1158 | |
| 1159 | function findRemoteProfileById( |
| 1160 | profiles: PersistedRemoteWorkspaceProfile[], |
no test coverage detected