Skip to content

Commit 048428b

Browse files
Merge pull request #2294 from github/robertbrignull/no_distribution_install
Don't rate limit if no CLI is installed
2 parents 957f71c + 361cb60 commit 048428b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

extensions/ql-vscode/src/distribution.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ export class DistributionManager implements DistributionProvider {
215215
minSecondsSinceLastUpdateCheck: number,
216216
): Promise<DistributionUpdateCheckResult> {
217217
const distribution = await this.getDistributionWithoutVersionCheck();
218+
if (distribution === undefined) {
219+
minSecondsSinceLastUpdateCheck = 0;
220+
}
218221
const extensionManagedCodeQlPath =
219222
await this.extensionSpecificDistributionManager.getCodeQlPathWithoutVersionCheck();
220223
if (distribution?.codeQlPath !== extensionManagedCodeQlPath) {

0 commit comments

Comments
 (0)