-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
draft: JENKINS-71527 - Update CodeMirror to v6 #8399
base: master
Are you sure you want to change the base?
Conversation
Interesting comparison: I don't see a reason we need two, I assume codemirror was missing features at the time. |
script console size should start larger |
Just for script console or for all CodeMirror editors? |
probably all |
Not a blocker but I think the theme the dark-theme is using is easier to read on code mirror 4: |
Please take a moment and address the merge conflicts of your pull request. Thanks! |
Given the title, is this supposed to be in the draft state? |
Please take a moment and address the merge conflicts of your pull request. Thanks! |
textarea.style.display = "none"; | ||
if (textarea.form) { | ||
textarea.form.addEventListener("submit", () => { | ||
textarea.value = view.state.doc.toString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesn't seem to be working, at least for shell steps on freestyle builds.
It gets called but the new value isn't submitted.
Also doesn't get called at all on Apply button clicks
Please take a moment and address the merge conflicts of your pull request. Thanks! |
Will come back to this. |
See JENKINS-71527.
Jenkins relies on https://github.com/stapler/stapler-adjunct-codemirror to utilize code mirror.
This library is almost 10 years out of date and ships an ancient version of codemirror 2 (6 is the newest while writing this). Upgrading to v6 allows us to stop our usages of the above library as well as make use of all the new features in CodeMirror since then. There's now autocomplete, better accessibility, colours now use Jenkins variables and a whole load of other changes in the last ten years.
Draft as there's a lot of questions around this/work to do.
textarea
parametercodemirror-config
will work the same way as before. What's the best option to handle this?Things to do
Testing done
Proposed changelog entries
Proposed upgrade guidelines
N/A
Submitter checklist
Desired reviewers
@jenkinsci/sig-ux
Before the changes are marked as
ready-for-merge
:Maintainer checklist