|
@ -42,7 +42,6 @@ export class TimelineWebview extends WebviewBase { |
|
|
private _context: Context; |
|
|
private _context: Context; |
|
|
/** The context the webview should have */ |
|
|
/** The context the webview should have */ |
|
|
private _pendingContext: Partial<Context> | undefined; |
|
|
private _pendingContext: Partial<Context> | undefined; |
|
|
private _originalTitle: string; |
|
|
|
|
|
|
|
|
|
|
|
constructor(container: Container) { |
|
|
constructor(container: Container) { |
|
|
super( |
|
|
super( |
|
@ -53,7 +52,6 @@ export class TimelineWebview extends WebviewBase { |
|
|
'Visual File History', |
|
|
'Visual File History', |
|
|
Commands.ShowTimelinePage, |
|
|
Commands.ShowTimelinePage, |
|
|
); |
|
|
); |
|
|
this._originalTitle = this.title; |
|
|
|
|
|
this._context = { |
|
|
this._context = { |
|
|
uri: undefined, |
|
|
uri: undefined, |
|
|
period: defaultPeriod, |
|
|
period: defaultPeriod, |
|
@ -235,7 +233,7 @@ export class TimelineWebview extends WebviewBase { |
|
|
const repoPath = gitUri.repoPath!; |
|
|
const repoPath = gitUri.repoPath!; |
|
|
const title = gitUri.relativePath; |
|
|
const title = gitUri.relativePath; |
|
|
|
|
|
|
|
|
this.title = `${this._originalTitle}: ${gitUri.fileName}`; |
|
|
|
|
|
|
|
|
this.title = `${this.originalTitle}: ${gitUri.fileName}`; |
|
|
|
|
|
|
|
|
const [currentUser, log] = await Promise.all([ |
|
|
const [currentUser, log] = await Promise.all([ |
|
|
this.container.git.getCurrentUser(repoPath), |
|
|
this.container.git.getCurrentUser(repoPath), |
|
|