Re-integrate Emmet Auto-Rename Tag
Notes This issue is part of the ongoing work to upgrade CodeMirror from v5 to v6 (see the parent issue for additional context). This also references the develop-codemirror-v6 branch for development, and not the main develop branch.
You can also gain a better understanding of how CodeMirror v6 works by referring to their Reference Manual.
Background and Implementation
In the current p5.js editor, when a user edits an HTML tag the opening and closing tags would be automatically updated to match. This behavior is missing in the CodeMirror v6 branch.
We probably want to update the portion around line 357 in the stateUtils.js file to implement the automatic tag renaming.
Suggestions to Start
- Check if CodeMirror v6 or Emmet potentially provides a helper extension to handle this.
Hi @raclim!
I'd love to work on this issue and submit the fix for it.
I've made a PR that fixes this issue.
Hi @Nishthajain7 ! Although the PR looks solid, I've noticed you jumped the queue on this and filed a PR without assignment, and despite another contributor volunteering first. Please don't do this in the future, that would be really appreciated! Thanks so much for your work and patience
@ksen0 I’ll follow the process going forward and make sure I’m assigned to the issue before submitting a PR.