|
@ -128,7 +128,8 @@ export class GraphWebview extends WebviewBase { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.updateState(); |
|
|
|
|
|
|
|
|
this.setSelectedRows(args.sha); |
|
|
|
|
|
void this.onGetMoreCommits(args.sha); |
|
|
} |
|
|
} |
|
|
}), |
|
|
}), |
|
|
); |
|
|
); |
|
@ -193,7 +194,7 @@ export class GraphWebview extends WebviewBase { |
|
|
onIpc(GetMissingAvatarsCommandType, e, params => this.onGetMissingAvatars(params.emails)); |
|
|
onIpc(GetMissingAvatarsCommandType, e, params => this.onGetMissingAvatars(params.emails)); |
|
|
break; |
|
|
break; |
|
|
case GetMoreCommitsCommandType.method: |
|
|
case GetMoreCommitsCommandType.method: |
|
|
onIpc(GetMoreCommitsCommandType, e, () => this.onGetMoreCommits()); |
|
|
|
|
|
|
|
|
onIpc(GetMoreCommitsCommandType, e, params => this.onGetMoreCommits(params.sha)); |
|
|
break; |
|
|
break; |
|
|
case UpdateColumnCommandType.method: |
|
|
case UpdateColumnCommandType.method: |
|
|
onIpc(UpdateColumnCommandType, e, params => this.onColumnUpdated(params.name, params.config)); |
|
|
onIpc(UpdateColumnCommandType, e, params => this.onColumnUpdated(params.name, params.config)); |
|
@ -362,7 +363,7 @@ export class GraphWebview extends WebviewBase { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@gate() |
|
|
@gate() |
|
|
private async onGetMoreCommits() { |
|
|
|
|
|
|
|
|
private async onGetMoreCommits(sha?: string)
{ |
|
|
if (this._graph?.more == null || this._repository?.etag !== this._etagRepository) { |
|
|
if (this._graph?.more == null || this._repository?.etag !== this._etagRepository) { |
|
|
this.updateState(true); |
|
|
this.updateState(true); |
|
|
|
|
|
|
|
@ -370,7 +371,7 @@ export class GraphWebview extends WebviewBase { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const { defaultItemLimit, pageItemLimit } = configuration.get('graph'); |
|
|
const { defaultItemLimit, pageItemLimit } = configuration.get('graph'); |
|
|
const newGraph = await this._graph.more(pageItemLimit ?? defaultItemLimit); |
|
|
|
|
|
|
|
|
const newGraph = await this._graph.more(pageItemLimit ?? defaultItemLimit, sha); |
|
|
if (newGraph != null) { |
|
|
if (newGraph != null) { |
|
|
this.setGraph(newGraph); |
|
|
this.setGraph(newGraph); |
|
|
} else { |
|
|
} else { |
|
@ -505,6 +506,7 @@ export class GraphWebview extends WebviewBase { |
|
|
success = await this.notify(DidChangeCommitsNotificationType, { |
|
|
success = await this.notify(DidChangeCommitsNotificationType, { |
|
|
rows: data.rows, |
|
|
rows: data.rows, |
|
|
avatars: Object.fromEntries(data.avatars), |
|
|
avatars: Object.fromEntries(data.avatars), |
|
|
|
|
|
selectedRows: this._selectedRows, |
|
|
paging: { |
|
|
paging: { |
|
|
startingCursor: data.paging?.startingCursor, |
|
|
startingCursor: data.paging?.startingCursor, |
|
|
more: data.paging?.more ?? false, |
|
|
more: data.paging?.more ?? false, |
|
|