-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Don't do auto-close in comments #3246
Comments
Reviewed, low priority. |
I'm currently working on this issue, and I'm wondering whether changes to third-party addon scripts (e.g. Additionally, I've noticed that the extension automatch-pairs interferes with the fix because it auto-closes braces independently of CodeMirror. Is there anything we are going to do/willing to do about this? |
If you want to change something in CodeMirror, you need to submit a pull request to the CodeMirror project: https://github.com/marijnh/CodeMirror. The submodule in Brackets is updated regularly, so the changed there land in Brackets soon enough. That extension was done before this feature was added to the core, so it might not be needed anymore. |
Make exception for auto-closing single apostrophes in comments, as per adobe/brackets#3246
Change merged into codemirror/codemirror5@c1b7ea4, needs submodule update. |
Submodule updated, and the new code should now be in Brackets. If everything works, the issue can be closed. |
FBNC to me. Marking sprint 23 just so I remember to regress it soon :) |
Confirmed, closing. |
// TODO: don't do this
Result: The
'
is auto-closed, so you get an extra apostrophe.Expected: Shouldn't auto-close in comments, at least for single-quotes. (Double quotes and parens/braces/brackets are arguably still useful, but you could argue that we should turn off all auto-closing in comments anyway.)
The text was updated successfully, but these errors were encountered: