From 6af61eb301bf20cc3d47b519c96d5cb0d7e60979 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Tue, 1 Jul 2025 13:23:03 +0530 Subject: [PATCH] fix: prevent lines removal on docstring insertion --- extensions/vscode/src/commands.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index c1f3aacbe..ee81255a6 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -157,6 +157,8 @@ const getCommandsMap: ( throw new Error("Config not loaded"); } + console.log("debug1 onlyOneInsertion", onlyOneInsertion); + const llm = config.selectedModelByRole.edit ?? config.selectedModelByRole.chat; @@ -355,10 +357,10 @@ const getCommandsMap: ( "continue.writeDocstringForCode": async () => { captureCommandTelemetry("writeDocstringForCode"); - streamInlineEdit( + void streamInlineEdit( "docstring", "Write a docstring for this code. Do not change anything about the code itself.", - true, + false, ); }, "continue.fixCode": async () => {