mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-09-24 11:00:43 +02:00
15 lines
356 B
TypeScript
15 lines
356 B
TypeScript
import { EditorView } from '@codemirror/view';
|
|
|
|
/**
|
|
* Simulate user action to force parser to catch up during scroll.
|
|
*/
|
|
export function forceParse(_: Event, view: EditorView) {
|
|
view.dispatch({
|
|
changes: { from: view.viewport.to, insert: '_' },
|
|
});
|
|
|
|
view.dispatch({
|
|
changes: { from: view.viewport.to - 1, to: view.viewport.to, insert: '' },
|
|
});
|
|
}
|