diff --git a/extensions/git/src/api/git.d.ts b/extensions/git/src/api/git.d.ts index e82ea8283a75..fbee1a6943d0 100644 --- a/extensions/git/src/api/git.d.ts +++ b/extensions/git/src/api/git.d.ts @@ -192,6 +192,7 @@ export interface Repository { export interface RemoteSource { readonly name: string; + readonly description?: string; readonly url: string | string[]; } diff --git a/extensions/git/src/commands.ts b/extensions/git/src/commands.ts index 86104684e214..2db5ef05632d 100644 --- a/extensions/git/src/commands.ts +++ b/extensions/git/src/commands.ts @@ -281,7 +281,7 @@ class RemoteSourceProviderQuickPick { } else { this.quickpick.items = remoteSources.map(remoteSource => ({ label: remoteSource.name, - description: typeof remoteSource.url === 'string' ? remoteSource.url : '', + description: remoteSource.description || (typeof remoteSource.url === 'string' ? remoteSource.url : remoteSource.url[0]), remoteSource })); }