Skip to content

Commit

Permalink
Fixes review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nzaytsev committed Jan 17, 2025
1 parent bdabe95 commit 93ae6b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/webviews/commitDetails/commitDetailsWebview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,10 @@ export class CommitDetailsWebviewProvider
includeRichContent: current.richStateLoaded,
autolinkedIssues: current.autolinkedIssues?.map(serializeIssueOrPullRequest),
autolinksEnabled: configuration.get('views.commitDetails.autolinks.enabled') ?? false,
pullRequest: current.pullRequest != null ? serializePullRequest(current.pullRequest) : undefined,
pullRequest:
configuration.get('views.commitDetails.autolinks.enabled') && current.pullRequest != null
? serializePullRequest(current.pullRequest)
: undefined,
wip: serializeWipContext(wip),
orgSettings: current.orgSettings,
inReview: current.inReview,
Expand Down Expand Up @@ -1425,6 +1428,7 @@ export class CommitDetailsWebviewProvider
configuration.get('views.commitDetails.autolinks.enhanced')
? pauseOnCancelOrTimeoutMapTuplePromise(commit.getEnrichedAutolinks(remote))
: undefined,
configuration.get('views.commitDetails.autolinks.enabled') &&
configuration.get('views.commitDetails.pullRequests.enabled')
? commit.getAssociatedPullRequest(remote)
: undefined,
Expand Down

0 comments on commit 93ae6b4

Please sign in to comment.