|
@ -27,7 +27,7 @@ import type { GitRevisionReference } from '../../git/models/reference'; |
|
|
import { createReference, getReferenceFromRevision, shortenRevision } from '../../git/models/reference'; |
|
|
import { createReference, getReferenceFromRevision, shortenRevision } from '../../git/models/reference'; |
|
|
import type { GitRemote } from '../../git/models/remote'; |
|
|
import type { GitRemote } from '../../git/models/remote'; |
|
|
import type { ShowInCommitGraphCommandArgs } from '../../plus/webviews/graph/protocol'; |
|
|
import type { ShowInCommitGraphCommandArgs } from '../../plus/webviews/graph/protocol'; |
|
|
import { executeCommand, executeCoreCommand } from '../../system/command'; |
|
|
|
|
|
|
|
|
import { executeCommand, executeCoreCommand, registerCommand } from '../../system/command'; |
|
|
import { configuration } from '../../system/configuration'; |
|
|
import { configuration } from '../../system/configuration'; |
|
|
import { getContext } from '../../system/context'; |
|
|
import { getContext } from '../../system/context'; |
|
|
import type { DateTimeFormat } from '../../system/date'; |
|
|
import type { DateTimeFormat } from '../../system/date'; |
|
@ -197,6 +197,19 @@ export class CommitDetailsWebviewProvider implements WebviewProvider |
|
|
return true; |
|
|
return true; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
includeBootstrap(): Promise<Serialized<State>> { |
|
|
|
|
|
this._bootstraping = true; |
|
|
|
|
|
|
|
|
|
|
|
this._context = { ...this._context, ...this._pendingContext }; |
|
|
|
|
|
this._pendingContext = undefined; |
|
|
|
|
|
|
|
|
|
|
|
return this.getState(this._context); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
registerCommands(): Disposable[] { |
|
|
|
|
|
return [registerCommand(`${this.host.id}.refresh`, () => this.host.refresh(true))]; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
private onCommitSelected(e: CommitSelectedEvent) { |
|
|
private onCommitSelected(e: CommitSelectedEvent) { |
|
|
if ( |
|
|
if ( |
|
|
e.data == null || |
|
|
e.data == null || |
|
@ -214,15 +227,6 @@ export class CommitDetailsWebviewProvider implements WebviewProvider |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
includeBootstrap(): Promise<Serialized<State>> { |
|
|
|
|
|
this._bootstraping = true; |
|
|
|
|
|
|
|
|
|
|
|
this._context = { ...this._context, ...this._pendingContext }; |
|
|
|
|
|
this._pendingContext = undefined; |
|
|
|
|
|
|
|
|
|
|
|
return this.getState(this._context); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
onFocusChanged(focused: boolean): void { |
|
|
onFocusChanged(focused: boolean): void { |
|
|
if (this._focused === focused) return; |
|
|
if (this._focused === focused) return; |
|
|
|
|
|
|
|
|