Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve request logging for get solution
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Bolton <[email protected]>
ibolton336 committed Dec 11, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 7f72e18 commit cfb209e
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions vscode/src/client/analyzerClient.ts
Original file line number Diff line number Diff line change
@@ -356,20 +356,21 @@ export class AnalyzerClient {
const maxIterations = getConfigMaxIterations();

try {
this.outputChannel.appendLine(`Sending 'getCodeplanAgentSolution' with:
max_priority: ${maxPriority},
max_depth: ${maxDepth},
max_iterations: ${maxIterations}`);
const request = {
file_path: "",
incidents: [enhancedIncident],
max_priority: maxPriority,
max_depth: maxDepth,
max_iterations: maxIterations,
};

this.outputChannel.appendLine(
`getCodeplanAgentSolution request: ${JSON.stringify(request, null, 2)}`,
);

const response: SolutionResponse = await this.rpcConnection!.sendRequest(
"getCodeplanAgentSolution",
{
file_path: "",
incidents: [enhancedIncident],
max_priority: maxPriority,
max_depth: maxDepth,
max_iterations: maxIterations,
},
request,
);

vscode.commands.executeCommand("konveyor.loadSolution", response, {

0 comments on commit cfb209e

Please sign in to comment.