Skip to content

Commit 97b2fe2

Browse files
committed
show git repo details
1 parent cb14c96 commit 97b2fe2

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

extensions/git/src/api/git.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ export interface Repository {
192192

193193
export interface RemoteSource {
194194
readonly name: string;
195+
readonly description?: string;
195196
readonly url: string | string[];
196197
}
197198

extensions/git/src/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ class RemoteSourceProviderQuickPick {
281281
} else {
282282
this.quickpick.items = remoteSources.map(remoteSource => ({
283283
label: remoteSource.name,
284-
description: typeof remoteSource.url === 'string' ? remoteSource.url : '',
284+
description: remoteSource.description || (typeof remoteSource.url === 'string' ? remoteSource.url : remoteSource.url[0]),
285285
remoteSource
286286
}));
287287
}

0 commit comments

Comments
 (0)