File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -393,9 +393,10 @@ export class ReviewManager implements vscode.DecorationProvider {
393
393
394
394
const data = await this . _prManager . getPullRequestChangedFiles ( pr ) ;
395
395
await this . _prManager . fullfillPullRequestCommitInfo ( pr ) ;
396
- let baseSha = pr . base . sha ;
397
396
let headSha = pr . head . sha ;
398
- const contentChanges = await parseDiff ( data , this . _repository , baseSha ) ;
397
+ let mergeBase = await this . _prManager . getPullRequestMergeBase ( pr ) ;
398
+
399
+ const contentChanges = await parseDiff ( data , this . _repository , mergeBase ) ;
399
400
this . _localFileChanges = contentChanges . map ( change => {
400
401
if ( change instanceof SlimFileChange ) {
401
402
return new RemoteFileChangeNode (
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ export class PRNode extends TreeNode {
138
138
const data = await this . _prManager . getPullRequestChangedFiles ( this . pullRequestModel ) ;
139
139
await this . _prManager . fullfillPullRequestCommitInfo ( this . pullRequestModel ) ;
140
140
let mergeBase = await this . _prManager . getPullRequestMergeBase ( this . pullRequestModel ) ;
141
- const rawChanges = await parseDiff ( data , this . repository , mergeBase || this . pullRequestModel . base . sha ) ;
141
+ const rawChanges = await parseDiff ( data , this . repository , mergeBase ) ;
142
142
this . _contentChanges = rawChanges . map ( change => {
143
143
if ( change instanceof SlimFileChange ) {
144
144
return new RemoteFileChangeNode (
You can’t perform that action at this time.
0 commit comments