Skip to content
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

Merged
merged 4 commits into from
Nov 15, 2019

Conversation

deathaxe
Copy link
Collaborator

@deathaxe deathaxe commented Dec 8, 2018

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

  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.

JavaScript/Comments.tmPreferences Show resolved Hide resolved
@Thom1729
Copy link
Collaborator

Thom1729 commented Dec 8, 2018

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.
@wbond wbond added the on hold Something that can't be done, or done correctly, right now label Oct 24, 2019
@wbond
Copy link
Member

wbond commented Oct 24, 2019

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.

@jrappen
Copy link
Contributor

jrappen commented Nov 15, 2019

relevant here: 9c44e60

@wbond wbond merged commit 5ce2296 into sublimehq:master Nov 15, 2019
@deathaxe deathaxe deleted the pr/json-move branch November 21, 2019 18:39
mitranim pushed a commit to mitranim/Packages that referenced this pull request Mar 25, 2022
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
on hold Something that can't be done, or done correctly, right now
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants