Skip to content

Commit 9463e56

Browse files
authored
1 parent 796eeff commit 9463e56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ export class ChatEditingCodeEditorIntegration implements IModifiedFileEntryEdito
339339
// Note, this is a workaround for the `LineRange.isEmpty()` in diffEntry.original being `false` for newly inserted content
340340
const isCreatedContent = decorations.length === 1 && decorations[0].range.isEmpty() && diffEntry.original.startLineNumber === 1;
341341

342-
if (!diffEntry.modified.isEmpty && !(isCreatedContent && (diffEntry.modified.endLineNumberExclusive - 1) === editorLineCount)) {
342+
if (!diffEntry.modified.isEmpty) {
343343
modifiedVisualDecorations.push({
344344
range: diffEntry.modified.toInclusiveRange()!,
345345
options: chatDiffWholeLineAddDecoration

0 commit comments

Comments
 (0)