We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e964ce6 commit 32fb4e5Copy full SHA for 32fb4e5
1 file changed
extensions/ql-vscode/src/variant-analysis/variant-analysis-manager.ts
@@ -77,6 +77,8 @@ import {
77
import { GITHUB_AUTH_PROVIDER_ID } from "../common/vscode/authentication";
78
import { FetchError } from "node-fetch";
79
80
+const maxRetryCount = 3;
81
+
82
export class VariantAnalysisManager
83
extends DisposableObject
84
implements VariantAnalysisViewManager<VariantAnalysisView>
@@ -626,7 +628,7 @@ export class VariantAnalysisManager
626
628
break;
627
629
} catch (e) {
630
if (
- retry++ < 3 &&
631
+ retry++ < maxRetryCount &&
632
e instanceof FetchError &&
633
(e.code === "ETIMEDOUT" || e.code === "ECONNRESET")
634
) {
0 commit comments