atom-haskell-archive / autocomplete-haskell

Atom autocomplete-plus provider for haskell
https://atom.io/packages/autocomplete-haskell
MIT License
23 stars 1 forks source link

Completion hint panel should only appear for Haskell files #6

Closed ncreep closed 9 years ago

ncreep commented 9 years ago

Hi,

I was surprised to see this empty panel appearing in Atom no matter what file/folder I was opening. Took me a bit of time to trace it back to autocomplete-haskell.

My question is, is it possible to make the panel appear only for Haskell source files?

Adding:

"activationHooks": [
   "language-haskell:grammar-used"
 ]

to the package.json file, works for non-Haskell folder (i.e. the panel doesn't appear), but when I try to open a Haskell folder, the whole editor hangs.

lierdakil commented 9 years ago

That's an interesting case. Apparently, grammar-used activation hook goes into a feedback loop, if package creates a text editor during activation. Probably should be reported to upstream.

Anyway, I found a workaround. It's somewhat clunky, but it should work. I'll push new version shortly.

ncreep commented 9 years ago

Thanks, it works now