emmetio / sublime-text-plugin

The essential toolkit for web-developers
https://emmet.io
MIT License
253 stars 29 forks source link

Broken css completion since update #161

Open BB-000 opened 3 years ago

BB-000 commented 3 years ago

Hi, unfortunately since the update this plugin seems to have become quite troublesome.

The 'fuzzy' autocompletion used to work almost perfectly, now it comes out with outrageous suggestions.

Not sure if there is some kind of clash with core sublime settings? I have minimal plugins (a few themes, syntax highlighting, text diff) so am sure it is not clashing with any of these. Is there some sublime setting I need to change? I have restarted sublime and still the same issue occurs.

Screenshot of one example attached.

Help much appreciated as this is driving me a bit 🥜!

really
sergeche commented 3 years ago

The idea Emmet itself is to use shortcuts for CSS properties (in your case, bc to produce border-color). If you type full CSS property, you don’t need Emmet at all, you can hit Esc to reset Emmet completion.

In your example, Emmet tried to match border agains known snippets, color in this case was used as value since - is a character used to separate values in abbreviation. The first closest match for border abbreviation was the one that expands to background-origin