Thom1729 / Sublime-JS-Custom

Customizable JavaScript syntax highlighting for Sublime Text.
MIT License
137 stars 9 forks source link

Syntaxes appear in different places in menu depending on whether you have one configuration or several configurations #101

Open Thom1729 opened 3 years ago

Thom1729 commented 3 years ago

Reported in https://github.com/sublimehq/Packages/issues/179.

When you have multiple JS Custom configurations, they appear under the User submenu (because this is where the compiled syntax definitions are placed), but when there is only one configuration it will appear in the top level of the menu. This is inconsistent and confusing, and the documentation only addresses the multiple-syntax case (because I didn't think about the single-syntax case).

The best solution is probably to keep the compiled syntaxes under Packages/JSCustom somewhere. I've considered this in the past, but rejected it because it seemed a bit sketchy to be modifying files under the package directory. But it would make the behavior of the Syntax menu a lot more consistent, which is probably worth the minor sketchiness.

Thom1729 commented 3 years ago

As a bonus, moving the compiled syntaxes under Packages/JSCustom would mean that disabling the package would also disable compiled syntaxes.