@@ -62,6 +62,12 @@ export class PullRequestTitlesNode extends AbstractBaseNode {
62
62
item . iconPath = vscode . Uri . parse ( this . pr . data ! . author ! . avatarUrl ) ;
63
63
item . contextValue = PullRequestContextValue ;
64
64
item . resourceUri = vscode . Uri . parse ( this . pr . data . url ) ;
65
+ item . command = {
66
+ command : Commands . BitbucketShowPullRequestDetails ,
67
+ title : 'Open pull request details' ,
68
+ arguments : [ this . pr ] ,
69
+ } ;
70
+
65
71
let dateString = '' ;
66
72
if ( typeof this . pr . data . updatedTs === 'number' ) {
67
73
dateString = formatDistanceToNow ( new Date ( this . pr . data . updatedTs ) , {
@@ -100,7 +106,6 @@ export class PullRequestTitlesNode extends AbstractBaseNode {
100
106
fileChangedNodes = await createFileChangesNodes ( this . pr , comments , files , [ ] , [ ] ) ;
101
107
// update loadedChildren with critical data without commits
102
108
this . loadedChildren = [
103
- new DescriptionNode ( this . pr , this ) ,
104
109
...( this . pr . site . details . isCloud ? [ new CommitSectionNode ( this . pr , [ ] , true ) ] : [ ] ) ,
105
110
new FilesRootNode ( fileChangedNodes , this ) ,
106
111
] ;
@@ -129,7 +134,6 @@ export class PullRequestTitlesNode extends AbstractBaseNode {
129
134
] ) ;
130
135
// update loadedChildren with additional data
131
136
this . loadedChildren = [
132
- new DescriptionNode ( this . pr , this ) ,
133
137
...( this . pr . site . details . isCloud ? [ new CommitSectionNode ( this . pr , commits ) ] : [ ] ) ,
134
138
...jiraIssueNodes ,
135
139
...bbIssueNodes ,
@@ -148,7 +152,7 @@ export class PullRequestTitlesNode extends AbstractBaseNode {
148
152
}
149
153
150
154
this . isLoading = true ;
151
- this . loadedChildren = [ new DescriptionNode ( this . pr , this ) , new SimpleNode ( 'Loading...' ) ] ;
155
+ this . loadedChildren = [ new SimpleNode ( 'Loading...' ) ] ;
152
156
this . refresh ( ) ; // Show initial structure
153
157
154
158
try {
@@ -169,7 +173,6 @@ export class PullRequestTitlesNode extends AbstractBaseNode {
169
173
const commits = await commitsPromise ;
170
174
// update loadedChildren with commits data
171
175
this . loadedChildren = [
172
- new DescriptionNode ( this . pr , this ) ,
173
176
...( this . pr . site . details . isCloud ? [ new CommitSectionNode ( this . pr , commits ) ] : [ ] ) ,
174
177
new FilesRootNode ( fileChangedNodes , this ) ,
175
178
] ;
0 commit comments