Skip to content

Commit

Permalink
After making a change to a PR that was made on a fork the "Files" tre…
Browse files Browse the repository at this point in the history
…e is empty

Part of  #3294
  • Loading branch information
alexr00 committed Feb 4, 2022
1 parent ba2019e commit 7398918
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/view/treeNodes/filesCategoryNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ export class FilesCategoryNode extends TreeNode implements vscode.TreeItem {
) {
super();
this.collapsibleState = vscode.TreeItemCollapsibleState.Expanded;
this._reviewModel.onDidChangeLocalFileChanges(() => this.refresh(this));
this._pullRequestModel.onDidChangeReviewThreads(() => this.refresh(this));
this._pullRequestModel.onDidChangeComments(() => this.refresh(this));
}

getTreeItem(): vscode.TreeItem {
Expand Down
4 changes: 4 additions & 0 deletions src/view/treeNodes/repositoryChangesNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ export class RepositoryChangesNode extends DescriptionNode implements vscode.Tre
this._disposables.push(_pullRequest.onDidInvalidate(() => {
this.refresh();
}));

this._disposables.push(this._reviewModel.onDidChangeLocalFileChanges(() => this.refresh(this)));
this._disposables.push(this._pullRequest.onDidChangeReviewThreads(() => this.refresh(this)));
this._disposables.push(this._pullRequest.onDidChangeComments(() => this.refresh(this)));
}

private revealActiveEditorInTree(activeEditorUri: string | undefined): void {
Expand Down

0 comments on commit 7398918

Please sign in to comment.