-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Rename CodeMirror2 folder to CodeMirror #11150
Conversation
b1acfef to
c38bcac
Compare
|
I too had been contemplating updating the CodeMirror submodule name and its side-effects. Merging the changes. |
Rename CodeMirror2 folder to CodeMirror
|
We could have delayed this merge till the next release and give a heads-up in this release about the impending change; This could be a breaking change with some extensions. Also the three issues mentioned by marcel had to be verified before this change was merged. |
|
There's one extension that uses Knowing this, I think we don't need to revert the changes. Miguel is probably pretty fast in updating his extension so it checks whether Point 2: We don't really need them (it's a "nice to have" and nothing else) as we can simply leave the requirejs rerouting in. Point 3: That's just our infrastructure and it's very easy and non-breaking to do. |
|
@marcelgerber Thanks for roping me in. I will change update as soon as this is merged in. :) Thanks for the heads up. |
|
Thanks Marcel, i'll run a search for the usage of |
|
Alright, I just created a PR that's ready to be merged in when this is merged. MiguelCastillo/Brackets-Themes#115 |
|
@MiguelCastillo This PR is already merged, but it's not yet part of a Brackets Release. @abose That's actually what I already did, but nothing to say against a second pair of eyes :) |
|
@marcelgerber oh man, I must be going crazy. I could not find the merged comment! I see it now that I went through the thread in more details... I wondering why I couldn't see the merge button :) |
|
@MiguelCastillo Notice though that your PR will only work in Brackets, so better set your That's why I suggested conditionally detecting what path to use above: It will still work for both versions post- and pre-1.4. |
|
@marcelgerber Thanks for fixing this. This was a very good observation. And thanks to @MiguelCastillo and @abose for collaborating on making sure this won't effect the other modules. Since these are all architectural changes I feel we should use our slack channel to bring these up so that everyone can put in their opinions before merging these kind of changes to master. |
|
@marcel, I ran a search on the extension registry for CodeMirro2 and it seems that all of them except Miguel's extension is using Bracket.getModule("path?Codemirror2/file") format. So this change would be safe for this release as you said. |
Now that we use CodeMirror 5, it's a little misleading our submodule is still called
CodeMirror2. Thus, in this PR, I've renamed it toCodeMirror.There are some things to keep in mind, though:
CodeMirror2(FileSystem, node) won't work. Look out for those.CodeMirror2through anything else than arequire(FileSystem, node, ...)