From 9ec461b6423bbfaf2ebca79da2bdab09be713325 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sun, 29 Jan 2023 03:45:27 -0500 Subject: [PATCH] Respects commit details view pinning --- src/webviews/commitDetails/commitDetailsWebviewView.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/webviews/commitDetails/commitDetailsWebviewView.ts b/src/webviews/commitDetails/commitDetailsWebviewView.ts index 21b7f76..29eaade 100644 --- a/src/webviews/commitDetails/commitDetailsWebviewView.ts +++ b/src/webviews/commitDetails/commitDetailsWebviewView.ts @@ -130,6 +130,8 @@ export class CommitDetailsWebviewView extends WebviewViewBase { + if (this._pinned && !options?.pin && this.visible) return; + if (options != null) { let commit; let pin;