-
Notifications
You must be signed in to change notification settings - Fork 591
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
[JavaScript] Move JSON out of the JavaScript package #1805
Conversation
I think you're right about not needing the redirect, and I'm glad you checked the existing packages. In the unlikely event that this goes out in a dev build and breaks something, it would be extremely easy to put in a quick patch before the next build. |
As suggested in issue sublimehq#1771 this commit moves the JSON syntax into a dedicated package in order to be able to disable either JavaScript or JSON independently. This commit does not yet create the suggested compatibility redirection within the JavaScript package. The decision about it is left to the core devs right now 1. as it would cause a duplicated syntax file 2. a quick search within packagecontrol.io did not reveal any packages depending on the builtin JavaScript/JSON.sublime-syntax 3. the location of the sublime-syntax file should not be too important if it is imported via `scope:source.json` or its name `JSON.sublime-syntax` only. Conflicts would be caused only if it was imported via `Packages/JavaScript/JSON.sublime-syntax` which is easy to fix.
593dbbd
to
d7bf5d6
Compare
I think we are going to take a swing at this as part of the next dev cycle. There will be some changes in the C++ codebase to ensure things don't go wonky for people with open files that reference the old syntax path, hence it will be put "on hold" for now and resolved at release time. |
relevant here: 9c44e60 |
Note from wbond: initial work on splitting JSON happened in 9c44e60, this ties up some loose ends. As suggested in issue sublimehq#1771 this commit moves the JSON syntax into a dedicated package in order to be able to disable either JavaScript or JSON independently. This commit does not yet create the suggested compatibility redirection within the JavaScript package. The decision about it is left to the core devs right now 1. as it would cause a duplicated syntax file 2. a quick search within packagecontrol.io did not reveal any packages depending on the builtin JavaScript/JSON.sublime-syntax 3. the location of the sublime-syntax file should not be too important if it is imported via `scope:source.json` or its name `JSON.sublime-syntax` only. Conflicts would be caused only if it was imported via `Packages/JavaScript/JSON.sublime-syntax` which is easy to fix.
As suggested in issue #1771 this commit moves the JSON syntax into a dedicated package in order to be able to disable either JavaScript or JSON independently.
This commit does not yet create the suggested compatibility redirection within the JavaScript package.
The decision about it is left to the core devs right now
scope:source.json
or its nameJSON.sublime-syntax
only. Conflicts would be caused only if it was imported viaPackages/JavaScript/JSON.sublime-syntax
which is easy to fix.