Skip to content

Commit 361cb60

Browse files
Don't rate limit if no CLI is installed
1 parent deb2b83 commit 361cb60

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)