From 610240cef7410fe8686001990c5e11a6ebb2a693 Mon Sep 17 00:00:00 2001 From: hitesh-1997 Date: Tue, 5 Nov 2024 01:30:46 +0530 Subject: [PATCH] pr comments --- vscode/src/autoedits/providers/cody-gateway.ts | 2 +- vscode/src/autoedits/providers/fireworks.ts | 2 +- vscode/src/autoedits/providers/openai.ts | 2 +- vscode/src/main.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vscode/src/autoedits/providers/cody-gateway.ts b/vscode/src/autoedits/providers/cody-gateway.ts index 8dcd5943b4c..5112cf64d81 100644 --- a/vscode/src/autoedits/providers/cody-gateway.ts +++ b/vscode/src/autoedits/providers/cody-gateway.ts @@ -36,7 +36,7 @@ export class CodyGatewayPromptProvider implements PromptProvider { }, ] return { - codeToReplace: codeToReplace, + codeToReplace, promptResponse: prompt, } } diff --git a/vscode/src/autoedits/providers/fireworks.ts b/vscode/src/autoedits/providers/fireworks.ts index b9422eadfc6..c36d50ad368 100644 --- a/vscode/src/autoedits/providers/fireworks.ts +++ b/vscode/src/autoedits/providers/fireworks.ts @@ -36,7 +36,7 @@ export class FireworksPromptProvider implements PromptProvider { }, ] return { - codeToReplace: codeToReplace, + codeToReplace, promptResponse: prompt, } } diff --git a/vscode/src/autoedits/providers/openai.ts b/vscode/src/autoedits/providers/openai.ts index 769ef5b56d1..135bd29a3b0 100644 --- a/vscode/src/autoedits/providers/openai.ts +++ b/vscode/src/autoedits/providers/openai.ts @@ -35,7 +35,7 @@ export class OpenAIPromptProvider implements PromptProvider { }, ] return { - codeToReplace: codeToReplace, + codeToReplace, promptResponse: prompt, } } diff --git a/vscode/src/main.ts b/vscode/src/main.ts index 4679c416922..0c9a6f4e033 100644 --- a/vscode/src/main.ts +++ b/vscode/src/main.ts @@ -721,7 +721,7 @@ function registerAutoEdits(disposables: vscode.Disposable[]): void { enableFeature( ({ configuration }) => { return ( - configuration.experimentalAutoeditsEnabled !== undefined && + configuration.experimentalAutoeditsEnabled === true && configuration.autocomplete === false ) },