瀏覽代碼

Removes sha from view title

main
Keith Daulton 2 年之前
父節點
當前提交
e8a17c8d6d
共有 1 個文件被更改,包括 0 次插入5 次删除
  1. +0
    -5
      src/webviews/commitDetails/commitDetailsWebviewView.ts

+ 0
- 5
src/webviews/commitDetails/commitDetailsWebviewView.ts 查看文件

@ -32,14 +32,12 @@ import {
} from './protocol';
export class CommitDetailsWebviewView extends WebviewViewBase<State> {
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<void> {
@ -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 })

Loading…
取消
儲存