File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/webviews/commitDetails Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1242,7 +1242,10 @@ export class CommitDetailsWebviewProvider
12421242 includeRichContent : current . richStateLoaded ,
12431243 autolinkedIssues : current . autolinkedIssues ?. map ( serializeIssueOrPullRequest ) ,
12441244 autolinksEnabled : configuration . get ( 'views.commitDetails.autolinks.enabled' ) ?? false ,
1245- pullRequest : current . pullRequest != null ? serializePullRequest ( current . pullRequest ) : undefined ,
1245+ pullRequest :
1246+ configuration . get ( 'views.commitDetails.autolinks.enabled' ) && current . pullRequest != null
1247+ ? serializePullRequest ( current . pullRequest )
1248+ : undefined ,
12461249 wip : serializeWipContext ( wip ) ,
12471250 orgSettings : current . orgSettings ,
12481251 inReview : current . inReview ,
@@ -1427,6 +1430,7 @@ export class CommitDetailsWebviewProvider
14271430 configuration . get ( 'views.commitDetails.autolinks.enhanced' )
14281431 ? pauseOnCancelOrTimeoutMapTuplePromise ( commit . getEnrichedAutolinks ( remote ) )
14291432 : undefined ,
1433+ configuration . get ( 'views.commitDetails.autolinks.enabled' ) &&
14301434 configuration . get ( 'views.commitDetails.pullRequests.enabled' )
14311435 ? commit . getAssociatedPullRequest ( remote )
14321436 : undefined ,
You can’t perform that action at this time.
0 commit comments