-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Codemirror to version 6 #10370
Comments
Pinging @mlucool |
cc @dmonad |
This was brought up in the JupyterLab accessibility meeting on June 2 and the JupyterLab team meeting on June 9. There weren't any community members who spoke against this at either meeting, though it should be noted neither meeting represents all active members of the JupyterLab community. If you think I missed something, please add it to this issue! To summarize the discussion: Accessibility reasons for CM6
RTC reasons for CM6(Paraphrased from @dmonad)
How should this be done?
Is it the right time?
This sounds like a go-ahead to me (correct me if I'm wrong). In case it needs to be said, I am personally in favor of this update even though I don't have the skill to do the work. |
@isabela-pf - thank you so much for summarizing the discussion. I think a good set of next steps would be:
Likely this will break many extensions, but since our abstract editor interface closely tracked the codemirror api, hopefully it won't be too hard to update existing extensions. |
It seems that some of the default modes got simplified: codemirror/dev#284 compared to v5. |
cc @JohanMabille who has been looking into that recently |
Hi folks, I have started hacking aroud this, now I am going to do something more serious. I will open a draft PR for the upgrade to codemirror 6 when I have something acceptable. I planned to drop the codeeditor abstraction in a dedicated PR, once the migration is done, what do you think? |
@JohanMabille I just wanted to say something in case you didn't see the thumbs up. I know a ton of people super excited for this. Have a couple lined up to test it for accessibility once you get it to that point too. Please know there is great support for this. Please feel free to @ (at) me in the merge request when you get there and I'll test it and ping other people to test it. |
FYI, @JohanMabille opened a draft PR to explore moving to CodeMirror 6 at #11638 |
There's an interesting new blog post comparing CodeMirror 6 to Ace and Monaco here: |
Just consolidating info for future reference:
and on accessibility:
|
Just a note that vim-mode is not available in Code Mirror 6 by default, but the people at replit has made a CM6 wrapper for the vim-mode from CM5. |
Problem
Currently codemirror (5.x) presents some performance and accessibility issues which have been addressed in the new version CodeMirror Next ( https://codemirror.net/6/)
Proposed Solution
Update to use the new version
Additional context
This version is backwards incompatible, so this would go into JLab 4.x
Performance
@echarles worked on some performance benchmarks:
The text was updated successfully, but these errors were encountered: