Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(view as any).updateState = function(state: EditorState) {
warnOnce();
Cast(state).scrollToSelection = 0;
EditorView.prototype.updateState.apply(this, [state]);
};