@@ -415,14 +415,16 @@ export class StartWorkCommand extends QuickCommand<State> {
415
415
) : StepResultGenerator < StartWorkItem | StartWorkTypeItem > {
416
416
const buildIssueItem = ( i : StartWorkItem ) => {
417
417
const buttons = i . item . issue . url ? [ OpenOnGitHubQuickInputButton ] : [ ] ;
418
+ const hoverContent = i . item . issue . body ? `${ repeatSpaces ( 200 ) } \n\n${ i . item . issue . body } ` : '' ;
418
419
return {
419
420
label :
420
421
i . item . issue . title . length > 60 ? `${ i . item . issue . title . substring ( 0 , 60 ) } ...` : i . item . issue . title ,
421
422
// description: `${i.repoAndOwner}#${i.id}, by @${i.author}`,
422
423
description : `\u00a0 ${
423
424
i . item . issue . repository ? `${ i . item . issue . repository . owner } /${ i . item . issue . repository . repo } #` : ''
424
425
} ${ i . item . issue . id } \u00a0`,
425
- detail : ` ${ fromNow ( i . item . issue . updatedDate ) } by @${ i . item . issue . author . name } ` ,
426
+ // The spacing here at the beginning is used to align the description with the title. Otherwise it starts under the avatar icon:
427
+ detail : ` ${ fromNow ( i . item . issue . updatedDate ) } by @${ i . item . issue . author . name } ${ hoverContent } ` ,
426
428
iconPath : i . item . issue . author ?. avatarUrl != null ? Uri . parse ( i . item . issue . author . avatarUrl ) : undefined ,
427
429
item : i ,
428
430
picked : i . item . issue . id === state . item ?. item ?. issue . id ,
@@ -567,6 +569,10 @@ function isStartWorkTypeItem(item: unknown): item is StartWorkTypeItem {
567
569
return item != null && typeof item === 'object' && 'type' in item ;
568
570
}
569
571
572
+ function repeatSpaces ( count : number ) {
573
+ return ' ' . repeat ( count ) ;
574
+ }
575
+
570
576
export function getStartWorkItemIdHash ( item : StartWorkItem ) {
571
577
return md5 ( item . item . issue . id ) ;
572
578
}
0 commit comments