A little more than a year ago, I wrote a package that included a language (cson in a grammar directory) and a theme (less in a stylesheets directory). It worked briefly - for files with a particular extension, the grammar and the stylesheet loaded automatically, and for other files, it didn’t. An Atom update broke the package.
I’ve since rewritten it to work, but now, it seems I have to have two separate packages - one for the language and one for the theme; when “theme” : “syntax” is present in package.json, Atom ignores the grammar, and when it’s absent, Atom ignores the theme.
Is there any way to include both of these in the same package, or is this now impossible?
Further, with two packages, while the grammar loads correctly, but the theme only loads if I choose it explicitly; and when it is chosen, it styles all editor windows, rather than only the windows for those with the appropriate extension. Is there any way to limit the theme to the particular extension, or must it always apply to all extension?