Thom1729/Sublime-JS-Custom

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

Thom1729 opened this issue · 1 comments

Reported in sublimehq/Packages#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.

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