atom / autocomplete-emojis

autocomplete+ emoji autocompletion
https://atom.io/packages/autocomplete-emojis
MIT License
74 stars 20 forks source link

Not selecting markdown grammars #16

Closed avonmoll closed 7 years ago

avonmoll commented 7 years ago

For some reason, the package is not activating for markdown grammars. I normally use the language-pfm package which overrides the source.gfm scope name. autocomplete-emojis doesn't activate even when I disable language-pfm and activate language-gfm. I verified the scope name is correct by opening a MD document ("Pandoc Markdown" shows in the bottom right corner) and typing the following into the devtools console:

textEditor = atom.workspace.getActiveTextEditor()
textEditor.getGrammar()

Which outputs:

Grammar {registry: GrammarRegistry, name: "Pandoc Markdown", fileTypes: Array[9], scopeName: "source.gfm", foldingStopMarker: undefined…}
eqot commented 7 years ago

Would you like to use this autocomplete for Pandoc Markdown documents? I can add "*.pmd" to the scope which makes sense.

avonmoll commented 7 years ago

I discovered, long after I submitted this issue, that the root cause is with autocomplete-plus itself. See https://github.com/atom/autocomplete-plus/issues/824 for details. As of now, it still hasn't been resolved.

eqot commented 7 years ago

Thank you very much for the information. I did not know the issue in autocomplete-plus.