We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb71df8 commit 5521c00Copy full SHA for 5521c00
1 file changed
extensions/ql-vscode/src/variant-analysis/variant-analysis-manager.ts
@@ -327,6 +327,17 @@ export class VariantAnalysisManager
327
);
328
}
329
330
+ // It's not possible to interpret a BQRS file to SARIF without an id property.
331
+ if (
332
+ queryMetadata?.kind &&
333
+ ["problem", "path-problem"].includes(queryMetadata.kind) &&
334
+ !queryMetadata.id
335
+ ) {
336
+ throw new UserCancellationException(
337
+ `${firstQueryFile} does not have the required @id property for a ${queryMetadata.kind} query.`,
338
+ );
339
+ }
340
+
341
const {
342
actionBranch,
343
base64Pack,
0 commit comments