Skip to content

Commit 5bea3ee

Browse files
committed
Render chat changes in editor if diff is available
1 parent e0dc1d7 commit 5bea3ee

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

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

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -147,17 +147,14 @@ export class ChatEditingCodeEditorIntegration implements IModifiedFileEntryEdito
147147
}
148148

149149
// done: render diff
150-
if (!_entry.isCurrentlyBeingModifiedBy.read(r)) {
150+
const isDiffEditor = this._editor.getOption(EditorOption.inDiffEditor);
151151

152-
const isDiffEditor = this._editor.getOption(EditorOption.inDiffEditor);
152+
codeEditorObs.getOption(EditorOption.fontInfo).read(r);
153+
codeEditorObs.getOption(EditorOption.lineHeight).read(r);
153154

154-
codeEditorObs.getOption(EditorOption.fontInfo).read(r);
155-
codeEditorObs.getOption(EditorOption.lineHeight).read(r);
156-
157-
const reviewMode = _entry.reviewMode.read(r);
158-
const diff = documentDiffInfo.read(r);
159-
this._updateDiffRendering(diff, reviewMode, isDiffEditor);
160-
}
155+
const reviewMode = _entry.reviewMode.read(r);
156+
const diff = documentDiffInfo.read(r);
157+
this._updateDiffRendering(diff, reviewMode, isDiffEditor);
161158
}));
162159

163160

0 commit comments

Comments
 (0)