We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c9d6bfd + 1d4cbde commit 008d7b3Copy full SHA for 008d7b3
1 file changed
extensions/ql-vscode/src/remote-queries/shared/variant-analysis.ts
@@ -165,13 +165,15 @@ export async function isVariantAnalysisComplete(
165
repo: VariantAnalysisScannedRepository,
166
) => Promise<boolean>,
167
): Promise<boolean> {
168
- // It's only acceptable to have no scanned repos if the variant analysis is not in a final state.
169
- // Otherwise it means the analysis hit some kind of internal error or there were no repos to scan.
+ if (!isFinalVariantAnalysisStatus(variantAnalysis.status)) {
+ return false;
170
+ }
171
+
172
if (
173
variantAnalysis.scannedRepos === undefined ||
174
variantAnalysis.scannedRepos.length === 0
175
) {
- return variantAnalysis.status !== VariantAnalysisStatus.InProgress;
176
+ return true;
177
}
178
179
return (
0 commit comments