Skip to content

Commit 6b47932

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Combine and output final autofix results
1 parent 2c12d71 commit 6b47932

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

extensions/ql-vscode/src/variant-analysis/view-autofixes.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { unlink, mkdtemp, readFile, writeFile } from "fs/promises";
2424
import { tmpdir } from "os";
2525
import { spawn } from "child_process";
2626
import type { execFileSync } from "child_process";
27+
import { tryOpenExternalFile } from "../common/vscode/external-files";
2728

2829
// Limit to three repos when generating autofixes so not sending
2930
// too many requests to autofix. Since we only need to validate
@@ -96,7 +97,16 @@ export async function viewAutofixesForVariantAnalysisResults(
9697
logger,
9798
);
9899

99-
// TODO
100+
// Output results from all repos to a combined markdown file.
101+
progress(progressUpdate(4, 4, `Finalizing autofix results`));
102+
const combinedOutputMarkdownFile = join(
103+
autofixOutputStoragePath,
104+
"autofix-output.md",
105+
);
106+
await mergeFiles(outputTextFiles, combinedOutputMarkdownFile, false);
107+
108+
// Open the combined markdown file.
109+
await tryOpenExternalFile(app.commands, combinedOutputMarkdownFile);
100110
},
101111
{
102112
title: "Generating Autofixes",

0 commit comments

Comments
 (0)