Skip to content

Commit

Permalink
Merge pull request #2294 from github/robertbrignull/no_distribution_i…
Browse files Browse the repository at this point in the history
…nstall

Don't rate limit if no CLI is installed
  • Loading branch information
robertbrignull authored Apr 11, 2023
2 parents 957f71c + 361cb60 commit 048428b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extensions/ql-vscode/src/distribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ export class DistributionManager implements DistributionProvider {
minSecondsSinceLastUpdateCheck: number,
): Promise<DistributionUpdateCheckResult> {
const distribution = await this.getDistributionWithoutVersionCheck();
if (distribution === undefined) {
minSecondsSinceLastUpdateCheck = 0;
}
const extensionManagedCodeQlPath =
await this.extensionSpecificDistributionManager.getCodeQlPathWithoutVersionCheck();
if (distribution?.codeQlPath !== extensionManagedCodeQlPath) {
Expand Down

0 comments on commit 048428b

Please sign in to comment.