Open krassowski opened 11 months ago
Here is a previous bug of this nature that was filled against CM6 by yours truly: https://discuss.codemirror.net/t/how-to-add-decoration-without-focusing-the-editor-on-dispatch/6283
Ok, I do not see a downstream solution. JupyterLab 4.1 might help here because it will make it impossible to focus on the notebook node but not sure if this will fix the issue. Manual refocusing nor any attempt to partially disable the updates does not solve the issue. The way forward is to create reproducer and report this upstream.
Cannot reproduce it yet in the latest playground it is possible that we just need to update codemirror vesions.
Description
Code mirror integration has some peculiar issue which means that when a diagnostic or highlight is applied it focuses the cell. This means that transition to next cell after shift + enter may be undone.
Reproduce
This was reported upstream in https://github.com/jupyterlab/jupyterlab/issues/15227
Disabling diagnostics (after a local fix for disabling logic) and disabling highlights solves it. Disabling one or the other alleviates the problem but the other part still contributes. At a first glance this looks like an upstream code mirror problem because diagnostics use
@codemirror/linter
while highlights use range marks so two different mechanisms give the same problem.Expected behavior
No jumping.