Skip to content

Update to Codemirror v6#4152

Open
khanniie wants to merge 152 commits into
developfrom
develop-codemirror-v6
Open

Update to Codemirror v6#4152
khanniie wants to merge 152 commits into
developfrom
develop-codemirror-v6

Conversation

@khanniie
Copy link
Copy Markdown
Member

@khanniie khanniie commented Jun 4, 2026

Issue:

Fixes #3814

Changes:

Updates Codemirror 5 to Codemirror 6!

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • has no test errors (npm run test)
  • has no typecheck errors (npm run typecheck)
  • is from a uniquely-named feature branch and is up to date with the develop branch.
  • is descriptively named and links to an issue number, i.e. Fixes #123
  • meets the standards outlined in the accessibility guidelines

khanniie and others added 30 commits January 24, 2025 00:15
…t-file

Editor file splitting: create new hint file
…ls-tidy

Moves the tidier code and file mode utils out of editor file
I'm fairly certain that we can remove ```
      if (!prevProps?.unsavedChanges) {
        setTimeout(() => setUnsavedChanges(false), 400);
      }
```

I looked at the git blame and it looks like the intention was to stop setting unsavedchanges to false when the files switched, but i think the solve that was implemented 9 years ago did something like "if c == false, c = false" and we should be able to safely remove it instead.

reference commit: 77e2f5b
…itoff-codemirror

Convert Editor to functional, splits off CodeMirror code into its own file
khanniie and others added 26 commits May 30, 2026 08:59
…g-cm6

fix: restored p5.js keyword highlighting for CM6 #3868
…ybind

fix: Add Keyboard Shortcut for the Color Picker #3867
renames p5CompletionPreview because it's more of a generic preview and not p5 specific. prep for an eventual folder reorganizing
…sistency

fix: restore CM6 editor visual consistency#4144
also pulled the keymap and styling specific files out of the stateUtils file, which was getting too big.
@release-com
Copy link
Copy Markdown

release-com Bot commented Jun 4, 2026

Release Environments

This Environment is provided by Release, learn more!
To see the status of the Environment click on Environment Status below.

🔧Environment Status : https://app.release.com/public/Processing%20Foundation/env-5557d12d6d

@khanniie khanniie requested a review from raclim June 4, 2026 18:53
@release-com release-com Bot deployed to p5.js-web-editor: rachel-develop-codemirror-v6 (tedc8aa) June 4, 2026 19:07 Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CodeMirror 6 Feature Branch