Skip to content

Commit 42e0cb8

Browse files
committed
fix code generation
1 parent e75875b commit 42e0cb8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/commands/GenerateCode/generateCodeSnippet.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ class GenerateCodeSnippet {
2525
return
2626
}
2727
const response: IJSONRPCResponse = await codeGeneration(langServer, 2, currentFilePath, lang, cli)
28+
console.log("response02", response)
2829
let { result } = response
29-
if (result === "false" || result === false || result.includes("Error")) {
30+
console.log("result", result)
31+
if (result === "false" || result === false) {
3032
vscode.window.showInformationMessage("Something went wrong. Retry.")
3133
} else {
3234
if (result.includes("Code copied to clipboard")) {

src/lsp/request/generalRequest.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ function handleProcessResponse(process: any, resolve: any, reject: any) {
5858
// console.log("data", data);
5959
chunks.push(data)
6060
const responseData = Buffer.concat(chunks).toString()
61-
console.log("responseData", responseData)
6261
try {
6362
// Extract the second JSON from responseData
6463
const secondJsonStart = responseData.lastIndexOf('{"id":')

0 commit comments

Comments
 (0)