julien-lang / atom-shebang-set-grammar

Atom package: detect grammar from file's first line when looks like shebang (#! /bin/...)
MIT License
6 stars 6 forks source link

Module does not work when opening a file and atom is not opened yet #1

Closed julien-lang closed 8 years ago

julien-lang commented 8 years ago

The module work when Atom is already started and I open a file: File -> Open and / or from my desktop -> open with -> Atom. But it does not always work when Atom is not opened yet and, from my desktop, I open with -> Atom.

From what I see, it seems that's because this module is executed before all the language-* are loaded. I can see that by listings the Grammars from the API.