reduce context key update.

This commit is contained in:
rebornix
2020-09-02 12:13:20 -07:00
parent e0cc75a2da
commit c8c19aa7cd
@@ -224,8 +224,10 @@ export class CodeCellViewModel extends BaseCellViewModel implements ICellViewMod
this.textModel = ref.object.textEditorModel;
this._register(ref);
this._register(this.textModel.onDidChangeContent(() => {
this.editState = CellEditState.Editing;
this._onDidChangeState.fire({ contentChanged: true });
if (this.editState !== CellEditState.Editing) {
this.editState = CellEditState.Editing;
this._onDidChangeState.fire({ contentChanged: true });
}
}));
}