fix: prevent lines removal on docstring insertion

This commit is contained in:
uinstinct 2025-07-01 13:23:03 +05:30
parent 79668ebb00
commit 6af61eb301

View file

@ -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 () => {