We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5dfaf3f commit 03585afCopy full SHA for 03585af
1 file changed
extensions/ql-vscode/src/variant-analysis/view-autofixes.ts
@@ -542,3 +542,29 @@ async function getRepoStoragePaths(
542
),
543
};
544
}
545
+
546
+/**
547
+ * Creates autofix arguments that vary depending on the run.
548
+ */
549
+function createVarAutofixArgs(
550
+ outputTextFilePath: string,
551
+ fixDescriptionFilePath: string,
552
+ transcriptFilePath: string,
553
+ alertNumber?: number, // Optional parameter for specific alert
554
+): string[] {
555
+ const args = [
556
+ "--output",
557
+ outputTextFilePath,
558
+ "--fix-description",
559
+ fixDescriptionFilePath,
560
+ "--transcript",
561
+ transcriptFilePath,
562
+ ];
563
564
+ // Add alert number argument if provided
565
+ if (alertNumber !== undefined) {
566
+ args.push("--only-alert-number", alertNumber.toString());
567
+ }
568
569
+ return args;
570
+}
0 commit comments