gandm / language-babel

ES2017, flow, React JSX and GraphQL grammar and transpilation for ATOM
https://atom.io/packages/language-babel
MIT License
476 stars 83 forks source link

Disable auto-complete for CSS #465

Open axhamre opened 6 years ago

axhamre commented 6 years ago

Thanks for an incredibly useful package! But I wonder about a thing. When writing styles in styled-components or a CSS-file, this auto-complete box appears:

screenshot 2017-12-26 23 32 34

I'd like to turn that box if possible because:

  1. Irrelevant suggestions. I know I can write javascript in styled-components, but Promise and Prototype?
  2. I don't need a link to CSS documentation every time I write a property
gandm commented 6 years ago
  1. was added to support the use of snippets inside css. https://github.com/gandm/language-babel/issues/362 prior to this change I used to just show css completes.
  2. I don't think the help option gets in the way much.

Just to be clear. You want a flag to turn off autocomplete inside css completely?

axhamre commented 6 years ago

In my opinion CSS autocomplete is still very valuable. But if it comes at the cost of a too much/irrelevant information (as in the screenshot) - then yes, it would be nice to be able to turn off autocomplete completely inside CSS.