Skip to content

Commit 9e0a5ba

Browse files
committed
Remove details section
1 parent 1066d7c commit 9e0a5ba

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/views/pullrequest/pullRequestNode.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ export class PullRequestTitlesNode extends AbstractBaseNode {
6262
item.iconPath = vscode.Uri.parse(this.pr.data!.author!.avatarUrl);
6363
item.contextValue = PullRequestContextValue;
6464
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+
6571
let dateString = '';
6672
if (typeof this.pr.data.updatedTs === 'number') {
6773
dateString = formatDistanceToNow(new Date(this.pr.data.updatedTs), {
@@ -100,7 +106,6 @@ export class PullRequestTitlesNode extends AbstractBaseNode {
100106
fileChangedNodes = await createFileChangesNodes(this.pr, comments, files, [], []);
101107
// update loadedChildren with critical data without commits
102108
this.loadedChildren = [
103-
new DescriptionNode(this.pr, this),
104109
...(this.pr.site.details.isCloud ? [new CommitSectionNode(this.pr, [], true)] : []),
105110
new FilesRootNode(fileChangedNodes, this),
106111
];
@@ -129,7 +134,6 @@ export class PullRequestTitlesNode extends AbstractBaseNode {
129134
]);
130135
// update loadedChildren with additional data
131136
this.loadedChildren = [
132-
new DescriptionNode(this.pr, this),
133137
...(this.pr.site.details.isCloud ? [new CommitSectionNode(this.pr, commits)] : []),
134138
...jiraIssueNodes,
135139
...bbIssueNodes,
@@ -148,7 +152,7 @@ export class PullRequestTitlesNode extends AbstractBaseNode {
148152
}
149153

150154
this.isLoading = true;
151-
this.loadedChildren = [new DescriptionNode(this.pr, this), new SimpleNode('Loading...')];
155+
this.loadedChildren = [new SimpleNode('Loading...')];
152156
this.refresh(); // Show initial structure
153157

154158
try {
@@ -169,7 +173,6 @@ export class PullRequestTitlesNode extends AbstractBaseNode {
169173
const commits = await commitsPromise;
170174
// update loadedChildren with commits data
171175
this.loadedChildren = [
172-
new DescriptionNode(this.pr, this),
173176
...(this.pr.site.details.isCloud ? [new CommitSectionNode(this.pr, commits)] : []),
174177
new FilesRootNode(fileChangedNodes, this),
175178
];

0 commit comments

Comments
 (0)