Skip to content

Commit ff70e08

Browse files
authored
Fixes label update bug. (microsoft#158346)
1 parent 49f372e commit ff70e08

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ export class ResultCodeEditorView extends CodeEditorView {
123123
);
124124

125125
this._register(autorun('update remainingConflicts label', reader => {
126+
// this is a bit of a hack, but it's the easiest way to get the label to update
127+
// when the view model updates, as the the base class resets the label in the setModel call.
128+
this.viewModel.read(reader);
129+
126130
const model = this.model.read(reader);
127131
if (!model) {
128132
return;

0 commit comments

Comments
 (0)