Skip to content

Commit

Permalink
Diff Comment with HEAD button in Comments view sometimes disappears (#…
Browse files Browse the repository at this point in the history
…6197)

Fixes #6157
  • Loading branch information
alexr00 authored Sep 6, 2024
1 parent 02cfd4c commit 0c44612
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/github/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ export function updateThread(context: vscode.ExtensionContext, vscodeThread: GHP
vscodeThread.contextValue = 'canUnresolve';
}

if (reviewThread.isOutdated) {
vscodeThread.contextValue += 'outdated';
}

const newResolvedState = isResolvedToResolvedState(reviewThread.isResolved);
if (vscodeThread.state?.resolved !== newResolvedState) {
vscodeThread.state = {
Expand Down

0 comments on commit 0c44612

Please sign in to comment.