diff --git a/src/github/githubRepository.ts b/src/github/githubRepository.ts index 324fec5301..89b75e9fc8 100644 --- a/src/github/githubRepository.ts +++ b/src/github/githubRepository.ts @@ -331,7 +331,7 @@ export class GitHubRepository implements IGitHubRepository, vscode.Disposable { Logger.debug(`Fetch mentionable users - enter`, GitHubRepository.ID); const { query, supportsGraphQl, remote } = await this.ensure(); - if (supportsGraphQl) { + if (supportsGraphQl()) { let after = null; let hasNextPage = false; let ret: IAccount[] = []; diff --git a/src/github/pullRequestManager.ts b/src/github/pullRequestManager.ts index 3e3ed9684e..72d041d877 100644 --- a/src/github/pullRequestManager.ts +++ b/src/github/pullRequestManager.ts @@ -584,7 +584,7 @@ export class PullRequestManager { async getPullRequestComments(pullRequest: PullRequestModel): Promise { const { supportsGraphQl } = pullRequest.githubRepository; - return supportsGraphQl + return supportsGraphQl() ? this.getAllPullRequestReviewComments(pullRequest) : this.getPullRequestReviewComments(pullRequest); }