fix: prevent lines removal on docstring insertion
This commit is contained in:
parent
79668ebb00
commit
6af61eb301
1 changed files with 4 additions and 2 deletions
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue