mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
* 👕 Move `consistent-type-imports` to top level * 👕 Apply lintfixes * 👕 Apply more lintfixes * 👕 More lintfixes * 👕 More lintfixes
15 lines
361 B
TypeScript
15 lines
361 B
TypeScript
import type { 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: '' },
|
|
});
|
|
}
|