From e8a17c8d6d129dfb9cb6cbfeaa83ec7ea7003325 Mon Sep 17 00:00:00 2001 From: Keith Daulton Date: Thu, 4 Aug 2022 22:09:19 -0400 Subject: [PATCH] Removes sha from view title --- src/webviews/commitDetails/commitDetailsWebviewView.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/webviews/commitDetails/commitDetailsWebviewView.ts b/src/webviews/commitDetails/commitDetailsWebviewView.ts index 86a4f67..8022cd0 100644 --- a/src/webviews/commitDetails/commitDetailsWebviewView.ts +++ b/src/webviews/commitDetails/commitDetailsWebviewView.ts @@ -32,14 +32,12 @@ import { } from './protocol'; export class CommitDetailsWebviewView extends WebviewViewBase { - private originalTitle?: string; private commits?: GitCommit[]; private selectedCommit?: GitCommit; private loadedOnce = false; constructor(container: Container) { super(container, 'gitlens.views.commitDetails', 'commitDetails.html', 'Commit Details'); - this.originalTitle = this.title; } override async show(options?: { commit?: GitCommit; preserveFocus?: boolean | undefined }): Promise { @@ -257,9 +255,6 @@ export class CommitDetailsWebviewView extends WebviewViewBase { private selectCommit(commit: GitCommit) { this.commits = [commit]; this.selectedCommit = commit; - this.title = `${this.originalTitle}${ - this.selectedCommit !== undefined ? `: ${this.selectedCommit.shortSha}` : '' - }`; } @debug({ args: false })