Skip to content

Commit 022e0ab

Browse files
authored
Merge pull request microsoft#138428 from microsoft/roblou/fixCellEditorFocus
Always fire onDidChangeState when focusMode is set
2 parents d09289a + b5ae100 commit 022e0ab

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,8 @@ export abstract class BaseCellViewModel extends Disposable {
104104
return this._focusMode;
105105
}
106106
set focusMode(newMode: CellFocusMode) {
107-
if (this._focusMode !== newMode) {
108-
this._focusMode = newMode;
109-
this._onDidChangeState.fire({ focusModeChanged: true });
110-
}
107+
this._focusMode = newMode;
108+
this._onDidChangeState.fire({ focusModeChanged: true });
111109
}
112110

113111
protected _textEditor?: ICodeEditor;

0 commit comments

Comments
 (0)