File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
src/vs/workbench/contrib/chat/browser Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -770,15 +770,11 @@ export class CodeCompareBlockPart extends Disposable {
770
770
} ) ;
771
771
772
772
dom . reset ( this . messageElement , message ) ;
773
-
774
773
}
775
774
776
775
const diffData = await data . diffData ;
777
- if ( ! diffData ) {
778
- return ;
779
- }
780
776
781
- if ( ! isEditApplied ) {
777
+ if ( ! isEditApplied && diffData ) {
782
778
const viewModel = this . diffEditor . createViewModel ( {
783
779
original : diffData . original ,
784
780
modified : diffData . modified
@@ -801,6 +797,7 @@ export class CodeCompareBlockPart extends Disposable {
801
797
} else {
802
798
this . diffEditor . setModel ( null ) ;
803
799
this . _lastDiffEditorViewModel . value = undefined ;
800
+ this . _onDidChangeContentHeight . fire ( ) ;
804
801
}
805
802
806
803
this . toolbar . context = {
You can’t perform that action at this time.
0 commit comments