Changesets · Branches · Tags · Compare
| Changeset | 00b26f16aa2927a57d405993036cbfaabe80a1d8520526867959f25adf75e72e |
|---|---|
| Author | Dallin Romney <dallinromney@gmail.com> · 2025-07-02 13:56 -07:00 |
| Committer | Dallin Romney <dallinromney@gmail.com> · 2025-07-02 13:56 -07:00 |
| Parents | 62fae3dacbb3 |
4 files changed
modified core/core.ts +0 −1
| @@ -558,7 +558,6 @@ | ||
| 558 | 558 | : undefined, |
| 559 | 559 | input: data.input, |
| 560 | 560 | language: data.language, |
| 561 | - onlyOneInsertion: false, | |
| 562 | 561 | overridePrompt: undefined, |
| 563 | 562 | abortController, |
| 564 | 563 | }); |
modified core/edit/streamDiffLines.ts +0 −8
| @@ -66,7 +66,6 @@ | ||
| 66 | 66 | abortController, |
| 67 | 67 | input, |
| 68 | 68 | language, |
| 69 | - onlyOneInsertion, | |
| 70 | 69 | overridePrompt, |
| 71 | 70 | rulesToInclude, |
| 72 | 71 | }: { |
| @@ -77,7 +76,6 @@ | ||
| 77 | 76 | abortController: AbortController; |
| 78 | 77 | input: string; |
| 79 | 78 | language: string | undefined; |
| 80 | - onlyOneInsertion: boolean; | |
| 81 | 79 | overridePrompt: ChatMessage[] | undefined; |
| 82 | 80 | rulesToInclude: RuleWithSource[] | undefined; |
| 83 | 81 | }): AsyncGenerator<DiffLine> { |
| @@ -182,13 +180,7 @@ | ||
| 182 | 180 | diffLines = addIndentation(diffLines, indentation); |
| 183 | 181 | } |
| 184 | 182 | |
| 185 | - let seenGreen = false; | |
| 186 | 183 | for await (const diffLine of diffLines) { |
| 187 | 184 | yield diffLine; |
| 188 | - if (diffLine.type === "new") { | |
| 189 | - seenGreen = true; | |
| 190 | - } else if (onlyOneInsertion && seenGreen && diffLine.type === "same") { | |
| 191 | - break; | |
| 192 | - } | |
| 193 | 185 | } |
| 194 | 186 | } |
modified extensions/vscode/src/commands.ts +1 −5
| @@ -142,14 +142,12 @@ | ||
| 142 | 142 | * |
| 143 | 143 | * @param promptName - The key for the prompt in the context menu configuration. |
| 144 | 144 | * @param fallbackPrompt - The prompt to use if the configured prompt is not available. |
| 145 | - * @param [onlyOneInsertion] - Optional. If true, only one insertion will be made. | |
| 146 | 145 | * @param [range] - Optional. The range to edit if provided. |
| 147 | 146 | * @returns |
| 148 | 147 | */ |
| 149 | 148 | async function streamInlineEdit( |
| 150 | 149 | promptName: keyof ContextMenuConfig, |
| 151 | 150 | fallbackPrompt: string, |
| 152 | - onlyOneInsertion?: boolean, | |
| 153 | 151 | range?: vscode.Range, |
| 154 | 152 | ) { |
| 155 | 153 | const { config } = await configHandler.loadConfig(); |
| @@ -170,7 +168,6 @@ | ||
| 170 | 168 | input: |
| 171 | 169 | config.experimental?.contextMenuPrompts?.[promptName] ?? fallbackPrompt, |
| 172 | 170 | llm, |
| 173 | - onlyOneInsertion, | |
| 174 | 171 | range, |
| 175 | 172 | rulesToInclude: config.rules, |
| 176 | 173 | }); |
| @@ -243,7 +240,7 @@ | ||
| 243 | 240 | ) => { |
| 244 | 241 | captureCommandTelemetry("customQuickActionStreamInlineEdit"); |
| 245 | 242 | |
| 246 | - streamInlineEdit("docstring", prompt, false, range); | |
| 243 | + streamInlineEdit("docstring", prompt, range); | |
| 247 | 244 | }, |
| 248 | 245 | "continue.codebaseForceReIndex": async () => { |
| 249 | 246 | core.invoke("index/forceReIndex", undefined); |
| @@ -358,7 +355,6 @@ | ||
| 358 | 355 | void streamInlineEdit( |
| 359 | 356 | "docstring", |
| 360 | 357 | "Write a docstring for this code. Do not change anything about the code itself.", |
| 361 | - false, | |
| 362 | 358 | ); |
| 363 | 359 | }, |
| 364 | 360 | "continue.fixCode": async () => { |
modified extensions/vscode/src/diff/vertical/manager.ts +0 −3
| @@ -287,7 +287,6 @@ | ||
| 287 | 287 | input, |
| 288 | 288 | llm, |
| 289 | 289 | streamId, |
| 290 | - onlyOneInsertion, | |
| 291 | 290 | quickEdit, |
| 292 | 291 | range, |
| 293 | 292 | newCode, |
| @@ -297,7 +296,6 @@ | ||
| 297 | 296 | input: string; |
| 298 | 297 | llm: ILLM; |
| 299 | 298 | streamId?: string; |
| 300 | - onlyOneInsertion?: boolean; | |
| 301 | 299 | quickEdit?: string; |
| 302 | 300 | range?: vscode.Range; |
| 303 | 301 | newCode?: string; |
| @@ -466,7 +464,6 @@ | ||
| 466 | 464 | rulesToInclude, |
| 467 | 465 | input, |
| 468 | 466 | language: getMarkdownLanguageTagForFile(fileUri), |
| 469 | - onlyOneInsertion: !!onlyOneInsertion, | |
| 470 | 467 | overridePrompt, |
| 471 | 468 | abortController, |
| 472 | 469 | }); |