Browse Source

Fixes graph search for virtual GitHub repos

main
Eric Amodio 2 years ago
parent
commit
e2bcdc11bf
2 changed files with 3 additions and 9 deletions
  1. +1
    -1
      src/plus/github/githubGitProvider.ts
  2. +2
    -8
      src/plus/webviews/graph/graphWebview.ts

+ 1
- 1
src/plus/github/githubGitProvider.ts View File

@ -2768,7 +2768,7 @@ export class GitHubGitProvider implements GitProvider, Disposable {
for (const commit of result.values) {
results.set(commit.sha, {
i: results.size - 1,
i: results.size,
date: Number(options?.ordering === 'author-date' ? commit.authorDate : commit.committerDate),
});
}

+ 2
- 8
src/plus/webviews/graph/graphWebview.ts View File

@ -491,14 +491,7 @@ export class GraphWebview extends WebviewBase {
@debug()
private async onEnsureRow(e: EnsureRowParams, completionId?: string) {
if (this._graph?.more == null || this._repository?.etag !== this._etagRepository) {
this.updateState(true);
if (completionId != null) {
void this.notify(DidEnsureRowNotificationType, {}, completionId);
}
return;
}
if (this._graph == null) return;
let id: string | undefined;
if (!this._graph.skippedIds?.has(e.id)) {
@ -543,6 +536,7 @@ export class GraphWebview extends WebviewBase {
@gate()
@debug()
private async onGetMoreRows(e: GetMoreRowsParams, sendSelectedRows: boolean = false) {
if (this._graph?.paging == null) return;
if (this._graph?.more == null || this._repository?.etag !== this._etagRepository) {
this.updateState(true);

Loading…
Cancel
Save