mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-25 09:06:21 +01:00
reduce context key update.
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user