Browse Source

Allows showing the view even when pinned

main
Eric Amodio 1 year ago
parent
commit
6146862ee4
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/webviews/commitDetails/commitDetailsWebview.ts

+ 3
- 3
src/webviews/commitDetails/commitDetailsWebview.ts View File

@ -150,9 +150,9 @@ export class CommitDetailsWebviewProvider implements WebviewProvider
}
if (commit == null) {
if (this._pinned) return false;
commit = this.getBestCommitOrStash();
if (!this._pinned) {
commit = this.getBestCommitOrStash();
}
}
if (commit != null && !this._context.commit?.ref.startsWith(commit.ref)) {
await this.updateCommit(commit, { pinned: false });

Loading…
Cancel
Save